git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix warnings in Control.Monad.Unify

MonadPlus without Alternative will become an error in GHC 7.10, so derive it now.

commit09a500b292c45f7c7c9dd2941c8e6f80c3a2729a authorHarry Garrood <harry@garrood.me> dateFri 20 Feb 2015, 00:55 (12 years ago) parent19f13b9
1 file changed+1−2
src/Control/Monad/Unify.hs+1−2
src/Control/Monad/Unify.hs+1−2
@@ -24,7 +24,6 @@
2424
2525module Control.Monad.Unify where
2626
27−import Data.Maybe
2827import Data.String (IsString)
2928import Data.Monoid
3029
@@ -89,7 +88,7 @@ defaultUnifyState = UnifyState 0 mempty
8988-- The type checking monad, which provides the state of the type checker, and error reporting capabilities
9089--
9190newtype UnifyT t m a = UnifyT { unUnify :: (StateT (UnifyState t) m) a }
92− deriving (Functor, Monad, Applicative, MonadPlus)
91+ deriving (Functor, Monad, Applicative, Alternative, MonadPlus)
9392
9493instance (MonadState s m) => MonadState s (UnifyT t m) where
9594 get = UnifyT . lift $ get