Haskell bindings: use ExceptT instead of deprecated EitherT (#1034)
This commit is contained in:
committed by
Nguyen Anh Quynh
parent
400a0ab309
commit
873fffc505
@@ -14,7 +14,7 @@ way cabal handles ordering of chs files.
|
||||
module Unicorn.Internal.Core where
|
||||
|
||||
import Control.Monad
|
||||
import Control.Monad.Trans.Either (EitherT)
|
||||
import Control.Monad.Trans.Except (ExceptT)
|
||||
import Foreign
|
||||
|
||||
{# context lib = "unicorn" #}
|
||||
@@ -48,7 +48,7 @@ mkEngine ptr =
|
||||
|
||||
-- | The emulator runs in the IO monad and allows for the handling of errors
|
||||
-- "under the hood".
|
||||
type Emulator a = EitherT Error IO a
|
||||
type Emulator a = ExceptT Error IO a
|
||||
|
||||
-- | An architecture-dependent register.
|
||||
class Enum a => Reg a
|
||||
|
||||
Reference in New Issue
Block a user