packages feed

contstuff 0.2.1 → 0.2.2

raw patch · 2 files changed

+3/−4 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Control.ContStuff: instance (Alternative m) => Alternative (ContT r m)
+ Control.ContStuff: instance (Alternative m, Monad m) => Alternative (ContT r m)

Files

Control/ContStuff.hs view
@@ -180,10 +180,9 @@   type Result (ContT r m) = r   abort = ContT . const . pure -instance Alternative m => Alternative (ContT r m) where+instance (Alternative m, Monad m) => Alternative (ContT r m) where   empty = ContT $ const empty-  ContT c <|> ContT d =-    ContT $ \k -> c (\x -> d (\y -> k x <|> k y))+  ContT c <|> ContT d = ContT $ \k -> c k <|> d k  instance Applicative (ContT r m) where   pure = return
contstuff.cabal view
@@ -1,5 +1,5 @@ Name:          contstuff-Version:       0.2.1+Version:       0.2.2 Category:      Control, Monads Synopsis:      Easy to use CPS-based monads Maintainer:    Ertugrul Söylemez <es@ertes.de>