loops 0.2.0.0 → 0.2.0.1
raw patch · 2 files changed
+2/−10 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- loops.cabal +1/−1
- src/Control/Monad/Loop/Internal.hs +1/−9
loops.cabal view
@@ -1,5 +1,5 @@ name: loops-version: 0.2.0.0+version: 0.2.0.1 synopsis: Fast imperative-style loops description: @loops@ is a library for fast, imperative-style loops with a clean syntax.
src/Control/Monad/Loop/Internal.hs view
@@ -33,15 +33,7 @@ -- (for 'exec_'). If @m@ is also 'Foldable', so is @LoopT m@. For any other -- type, you may use 'runLoopT'. newtype LoopT m a = LoopT- { runLoopT- :: forall r. (a -> m r -> m r -> m r)- -- ^ Yield a value to the inner loop. The inner loop will call- -- the second argument to continue and the third argument to- -- break.- -> m r -- ^ Continue- -> m r -- ^ Break- -> m r- }+ { runLoopT :: forall r. (a -> m r -> m r -> m r) -> m r -> m r -> m r } -- | @Loop@ is a pure loop, without side-effects. type Loop = LoopT Identity