protolude 0.1.9 → 0.1.10
raw patch · 2 files changed
+3/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- protolude.cabal +1/−1
- src/List.hs +2/−2
protolude.cabal view
@@ -1,5 +1,5 @@ name: protolude-version: 0.1.9+version: 0.1.10 synopsis: A sensible set of defaults for writing custom Preludes. description: A sensible set of defaults for writing custom Preludes. homepage: https://github.com/sdiehl/protolude
src/List.hs view
@@ -18,7 +18,7 @@ import Data.Functor (fmap) import Control.Monad (return) import qualified Data.Set as Set-import GHC.Num (Num, (+))+import GHC.Num (Num, (+), (*)) head :: (Foldable f) => f a -> Maybe a head = foldr (\x _ -> return x) Nothing@@ -43,7 +43,7 @@ {-# INLINE product #-} product :: (Foldable f, Num a) => f a -> a-product = foldl' (+) 1+product = foldl' (*) 1 {-# INLINE sum #-} sum :: (Foldable f, Num a) => f a -> a