Removed redundant import

This commit is contained in:
Adrian Herrera 2016-06-05 11:10:33 +10:00
parent ba50d4667a
commit 71751cede9
3 changed files with 5 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -6,7 +6,6 @@ License : GPL-2
-}
module Unicorn.Internal.Util where
import Control.Applicative
import Data.Bits
import Foreign