free 5.1.1 → 5.1.2
raw patch · 3 files changed
+8/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.markdown +5/−0
- free.cabal +1/−1
- src/Control/Alternative/Free/Final.hs +2/−0
CHANGELOG.markdown view
@@ -1,3 +1,8 @@+5.1.2 [2019.08.27]+------------------+* Implement more performant versions of `some` and `many` in the `Alternative`+ instance for the final `Alt` encoding.+ 5.1.1 [2019.05.02] ------------------ * Allow building with `base-4.13` (GHC 8.8).
free.cabal view
@@ -1,6 +1,6 @@ name: free category: Control, Monads-version: 5.1.1+version: 5.1.2 license: BSD3 cabal-version: 1.18 license-file: LICENSE
src/Control/Alternative/Free/Final.hs view
@@ -48,6 +48,8 @@ instance Alternative (Alt f) where empty = Alt (\_ -> empty) Alt x <|> Alt y = Alt (\k -> x k <|> y k)+ some (Alt x) = Alt $ \k -> some (x k)+ many (Alt x) = Alt $ \k -> many (x k) instance Semigroup (Alt f a) where (<>) = (<|>)