mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 23:55:35 +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.Trans.Class (lift)
|
||||
import Control.Monad.Trans.Either (hoistEither, left, right, runEitherT)
|
||||
import Foreign
|
||||
|
||||
import Prelude hiding (until)
|
||||
import Data.ByteString (ByteString, pack)
|
||||
import Foreign
|
||||
import Prelude hiding (until)
|
||||
|
||||
import Unicorn.Internal.Core
|
||||
import Unicorn.Internal.Unicorn
|
||||
|
@ -76,7 +75,7 @@ open :: Architecture -- ^ CPU architecture
|
|||
open arch mode = do
|
||||
(err, ucPtr) <- lift $ ucOpen arch mode
|
||||
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
|
||||
lift $ mkEngine ucPtr
|
||||
else
|
||||
|
|
|
@ -38,11 +38,10 @@ module Unicorn.Internal.Unicorn (
|
|||
ucStrerror,
|
||||
) where
|
||||
|
||||
import Foreign
|
||||
import Foreign.C
|
||||
|
||||
import Control.Applicative
|
||||
import Data.ByteString (ByteString, useAsCStringLen)
|
||||
import Foreign
|
||||
import Foreign.C
|
||||
import Prelude hiding (until)
|
||||
|
||||
import Unicorn.Internal.Util
|
||||
|
|
|
@ -6,7 +6,6 @@ License : GPL-2
|
|||
-}
|
||||
module Unicorn.Internal.Util where
|
||||
|
||||
import Control.Applicative
|
||||
import Data.Bits
|
||||
import Foreign
|
||||
|
||||
|
|
Loading…
Reference in a new issue