mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-11-27 15:20:42 +00:00
Merge pull request #566 from adrianherrera/improvement/haskell-bindings-updates
Very minor formatting updates
This commit is contained in:
commit
ba50d4667a
@ -31,8 +31,7 @@ import Foreign
|
||||
{# pointer *uc_engine as EnginePtr -> Engine #}
|
||||
|
||||
-- | Make a new Unicorn engine out of an engine pointer. The returned Unicorn
|
||||
-- engine will automatically close 'uc_close_wrapper' when it goes out of
|
||||
-- scope.
|
||||
-- engine will automatically call 'uc_close_wrapper' when it goes out of scope.
|
||||
mkEngine :: EnginePtr -> IO Engine
|
||||
mkEngine ptr =
|
||||
liftM Engine (newForeignPtr close ptr)
|
||||
@ -41,7 +40,7 @@ mkEngine ptr =
|
||||
-- 'errno'.
|
||||
{# enum uc_err as Error
|
||||
{underscoreToCase}
|
||||
with prefix = "UC_"
|
||||
with prefix="UC_"
|
||||
deriving (Show, Eq, Bounded) #}
|
||||
|
||||
-- | The emulator runs in the IO monad and allows for the handling of errors
|
||||
|
@ -60,7 +60,7 @@ import Unicorn.Internal.Util
|
||||
-- | CPU architecture.
|
||||
{# enum uc_arch as Architecture
|
||||
{underscoreToCase}
|
||||
with prefix = "UC_"
|
||||
with prefix="UC_"
|
||||
deriving (Show, Eq, Bounded) #}
|
||||
|
||||
-- | CPU hardware mode.
|
||||
|
Loading…
Reference in New Issue
Block a user