packages feed

protolude 0.3.4 → 0.3.5

raw patch · 3 files changed

+9/−6 lines, 3 filesdep ~basedep ~ghc-primdep ~hashable

Dependency ranges changed: base, ghc-prim, hashable

Files

protolude.cabal view
@@ -1,5 +1,5 @@ name:               protolude-version:            0.3.4+version:            0.3.5 synopsis:           A small prelude. description:        A sensible set of defaults for writing custom Preludes. homepage:           https://github.com/sdiehl/protolude@@ -25,6 +25,9 @@    || ==9.0.1    || ==9.2.2    || ==9.6.1+   || ==9.8.2+   || ==9.10.1+   || ==9.12.1  extra-source-files:   README.md@@ -68,12 +71,12 @@   build-depends:       array                >=0.4  && <0.6     , async                >=2.0  && <2.3-    , base                 >=4.6  && <4.20+    , base                 >=4.6  && <4.22     , bytestring           >=0.10 && <0.13     , containers           >=0.5  && <0.8     , deepseq              >=1.3  && <1.6-    , ghc-prim             >=0.3  && <0.12-    , hashable             >=1.2  && <1.5+    , ghc-prim             >=0.3  && <0.14+    , hashable             >=1.2  && <1.6     , mtl                  >=2.1  && <2.4     , mtl-compat           >=0.2  && <0.3     , stm                  >=2.4  && <2.6
src/Protolude/List.hs view
@@ -20,7 +20,7 @@ import Data.Maybe (Maybe (Nothing)) import Data.Ord (Ord, comparing) import qualified Data.Set as Set-import GHC.Num ((*), (+), Num)+import Prelude ((*), (+), Num)  head :: (Foldable f) => f a -> Maybe a head = foldr (\x _ -> pure x) Nothing
src/Protolude/Safe.hs view
@@ -35,7 +35,7 @@ import Data.Function ((.)) import Data.List (null, head, last, tail, init, maximum, minimum, foldr1, foldl1, foldl1', (++)) -import GHC.Num ((-))+import Prelude ((-)) import GHC.Show (show)  liftMay :: (a -> Bool) -> (a -> b) -> (a -> Maybe b)