Skip to content

Commit 09a500b

Browse files
committed
Fix warnings in Control.Monad.Unify
MonadPlus without Alternative will become an error in GHC 7.10, so derive it now.
1 parent 19f13b9 commit 09a500b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Control/Monad/Unify.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
module Control.Monad.Unify where
2626

27-
import Data.Maybe
2827
import Data.String (IsString)
2928
import 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
--
9190
newtype 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

9493
instance (MonadState s m) => MonadState s (UnifyT t m) where
9594
get = UnifyT . lift $ get

0 commit comments

Comments
 (0)