mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 13:55:39 +00:00
Removed redundant import
This commit is contained in:
parent
ba50d4667a
commit
71751cede9
|
@ -48,10 +48,9 @@ module Unicorn (
|
||||||
import Control.Monad (liftM)
|
import Control.Monad (liftM)
|
||||||
import Control.Monad.Trans.Class (lift)
|
import Control.Monad.Trans.Class (lift)
|
||||||
import Control.Monad.Trans.Either (hoistEither, left, right, runEitherT)
|
import Control.Monad.Trans.Either (hoistEither, left, right, runEitherT)
|
||||||
import Foreign
|
|
||||||
|
|
||||||
import Prelude hiding (until)
|
|
||||||
import Data.ByteString (ByteString, pack)
|
import Data.ByteString (ByteString, pack)
|
||||||
|
import Foreign
|
||||||
|
import Prelude hiding (until)
|
||||||
|
|
||||||
import Unicorn.Internal.Core
|
import Unicorn.Internal.Core
|
||||||
import Unicorn.Internal.Unicorn
|
import Unicorn.Internal.Unicorn
|
||||||
|
@ -76,7 +75,7 @@ open :: Architecture -- ^ CPU architecture
|
||||||
open arch mode = do
|
open arch mode = do
|
||||||
(err, ucPtr) <- lift $ ucOpen arch mode
|
(err, ucPtr) <- lift $ ucOpen arch mode
|
||||||
if err == ErrOk then
|
if err == ErrOk then
|
||||||
-- Return a pointer to the unicorn engine if ucOpen completed
|
-- Return a pointer to the Unicorn engine if ucOpen completed
|
||||||
-- successfully
|
-- successfully
|
||||||
lift $ mkEngine ucPtr
|
lift $ mkEngine ucPtr
|
||||||
else
|
else
|
||||||
|
|
|
@ -38,11 +38,10 @@ module Unicorn.Internal.Unicorn (
|
||||||
ucStrerror,
|
ucStrerror,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Foreign
|
|
||||||
import Foreign.C
|
|
||||||
|
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import Data.ByteString (ByteString, useAsCStringLen)
|
import Data.ByteString (ByteString, useAsCStringLen)
|
||||||
|
import Foreign
|
||||||
|
import Foreign.C
|
||||||
import Prelude hiding (until)
|
import Prelude hiding (until)
|
||||||
|
|
||||||
import Unicorn.Internal.Util
|
import Unicorn.Internal.Util
|
||||||
|
|
|
@ -6,7 +6,6 @@ License : GPL-2
|
||||||
-}
|
-}
|
||||||
module Unicorn.Internal.Util where
|
module Unicorn.Internal.Util where
|
||||||
|
|
||||||
import Control.Applicative
|
|
||||||
import Data.Bits
|
import Data.Bits
|
||||||
import Foreign
|
import Foreign
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue