filtrable 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+11/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Filtrable.hs +9/−0
- filtrable.cabal +2/−1
Data/Filtrable.hs view
@@ -7,6 +7,15 @@ import Data.Proxy import Data.Traversable +-- | Laws:+--+-- * @'mapMaybe' 'Just' = id@+--+-- * @'mapMaybe' f = 'catMaybes' ∘ 'fmap' f@+--+-- * @'catMaybes' = 'mapMaybe' id@+--+-- * @'filter' f = 'mapMaybe' ('liftA2' ('<$') id ('guard' ∘ f))@ class Functor f => Filtrable f where {-# MINIMAL mapMaybe | catMaybes #-}
filtrable.cabal view
@@ -1,6 +1,7 @@ name: filtrable-version: 0.1.0.1+version: 0.1.0.2 synopsis: Class of filtrable containers+homepage: https://github.com/strake/filtrable.hs license: OtherLicense license-file: LICENSE author: M Farkas-Dyck