list-t 0.4.4 → 0.4.5
raw patch · 2 files changed
+8/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ ListT: fromMVar :: (MonadCons m, MonadIO m) => MVar (Maybe a) -> m a
Files
- library/ListT.hs +7/−0
- list-t.cabal +1/−1
library/ListT.hs view
@@ -17,6 +17,7 @@ splitAt, -- * Construction utilities fromFoldable,+ fromMVar, unfold, repeat, -- * Transformation utilities@@ -277,6 +278,12 @@ fromFoldable :: (MonadCons m, Foldable f) => f a -> m a fromFoldable = foldr cons mzero++-- |+-- Construct from an MVar, interpreting a value of Nothing as an end.+fromMVar :: (MonadCons m, MonadIO m) => MVar (Maybe a) -> m a+fromMVar v =+ fix $ \loop -> liftIO (takeMVar v) >>= maybe mzero (flip cons loop) -- | -- Construct by unfolding a pure data structure.
list-t.cabal view
@@ -1,7 +1,7 @@ name: list-t version:- 0.4.4+ 0.4.5 synopsis: ListT done right description: