@@ -24,7 +24,6 @@
25module Control.Monad.Unify where
25module Control.Monad.Unify where
28import Data.String (IsString)
27import Data.String (IsString)
29import Data.Monoid
28import Data.Monoid
@@ -89,7 +88,7 @@ defaultUnifyState = UnifyState 0 mempty
89-- The type checking monad, which provides the state of the type checker, and error reporting capabilities
88-- The type checking monad, which provides the state of the type checker, and error reporting capabilities
91newtype UnifyT t m a = UnifyT { unUnify :: (StateT (UnifyState t) m) a }
90newtype UnifyT t m a = UnifyT { unUnify :: (StateT (UnifyState t) m) a }
92− deriving (Functor, Monad, Applicative, MonadPlus)
91+ deriving (Functor, Monad, Applicative, Alternative, MonadPlus)
94instance (MonadState s m) => MonadState s (UnifyT t m) where
93instance (MonadState s m) => MonadState s (UnifyT t m) where
95 get = UnifyT . lift $ get
94 get = UnifyT . lift $ get