protolude 0.2.3 → 0.2.4
raw patch · 7 files changed
+27/−14 lines, 7 filesdep ~basedep ~bytestringdep ~ghc-prim
Dependency ranges changed: base, bytestring, ghc-prim, hashable
Files
- CHANGES.md +6/−1
- LICENSE +1/−1
- README.md +4/−5
- protolude.cabal +6/−5
- src/Protolude.hs +7/−1
- src/Protolude/Applicative.hs +2/−0
- src/Protolude/Error.hs +1/−1
CHANGES.md view
@@ -1,3 +1,8 @@+0.2.4+=====++* GHC 8.8.1 support+ 0.2.3 ===== @@ -23,7 +28,7 @@ `throwE`, `catchE`. * Fix `safe` version bounds for new versions. * Add `mapExceptT and `withExceptT`.-* Export `scanl'` and provide shim for backwards compatability.+* Export `scanl'` and provide shim for backwards compatibility. * Add `putErrLn`. * Expose `RealFloat`. * Expose `GHC.Records` exports for GHC 8.2 and above.
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2016-2017, Stephen Diehl+Copyright (c) 2016-2019, Stephen Diehl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to
README.md view
@@ -44,6 +44,7 @@ * GHC 8.2.1 * GHC 8.4.1 * GHC 8.6.1+ * GHC 8.8.1 Usage -----@@ -80,9 +81,7 @@ Exported Functions ------------------ -The list of exports is given in the [Symbols.md](./Symbols.md) file. Haddock-unfortunately breaks in the presence of module reexports and is unable to render-documentation.+The list of exports can be browsed [here](http://hackage.haskell.org/package/protolude-0.2.3/docs/Protolude.html). Dependencies ------------@@ -151,7 +150,7 @@ Automatic deriving of ``Show`` for your types is still supported since the class is in scope by default. -* **Partial functions like ``undefined`` and ``error`` raise compiler warnings on+* **Partial functions like ``undefined`` raise compiler warnings on usage.** This is by design. For fatal uncatchable errors use the provided ``panic``@@ -173,4 +172,4 @@ ------- Released under the MIT License.-Copyright (c) 2016-2018, Stephen Diehl+Copyright (c) 2016-2019, Stephen Diehl
protolude.cabal view
@@ -1,5 +1,5 @@ name: protolude-version: 0.2.3+version: 0.2.4 synopsis: A small prelude. description: A sensible set of defaults for writing custom Preludes. homepage: https://github.com/sdiehl/protolude@@ -7,7 +7,7 @@ license-file: LICENSE author: Stephen Diehl maintainer: stephen.m.diehl@gmail.com-copyright: 2016-2018 Stephen Diehl+copyright: 2016-2019 Stephen Diehl category: Prelude build-type: Simple cabal-version: >=1.10@@ -26,7 +26,8 @@ GHC == 8.0.1, GHC == 8.2.1, GHC == 8.4.1,- GHC == 8.6.1+ GHC == 8.6.1,+ GHC == 8.8.1 extra-source-files: README.md CHANGES.md Source-Repository head@@ -66,13 +67,13 @@ -fwarn-implicit-prelude build-depends: - base >= 4.6 && <4.13,+ base >= 4.6 && <4.14, array >= 0.4 && <0.6, ghc-prim >= 0.3 && <0.6, async >= 2.0 && <2.3, deepseq >= 1.3 && <1.5, containers >= 0.5 && <0.7,- hashable >= 1.2 && <1.3,+ hashable >= 1.2 && <1.4, transformers >= 0.2 && <0.6, text >= 1.2 && <1.3, stm >= 2.4 && <2.6,
src/Protolude.hs view
@@ -417,7 +417,13 @@ import Data.ByteString as X (ByteString) -- Text-import Data.Text as X (Text)+import Data.Text as X (+ Text+ , lines+ , words+ , unlines+ , unwords+ ) import qualified Data.Text.Lazy import Data.Text.IO as X (
src/Protolude/Applicative.hs view
@@ -31,5 +31,7 @@ liftAA2 :: (Applicative f, Applicative g) => (a -> b -> c) -> f (g a) -> f (g b) -> f (g c) liftAA2 = liftA2 . liftA2 +infixl 4 <<*>>+ (<<*>>) :: (Applicative f, Applicative g) => f (g (a -> b)) -> f (g a) -> f (g b) (<<*>>) = liftA2 (<*>)
src/Protolude/Error.hs view
@@ -27,7 +27,7 @@ {-# WARNING error "'error' remains in code" #-} error :: forall (r :: RuntimeRep) . forall (a :: TYPE r) . HasCallStack => Text -> a-error s = raise# (errorCallWithCallStackException (unpack s) ?callstack)+error s = raise# (errorCallWithCallStackException (unpack s) ?callStack) #elif MIN_VERSION_base(4,7,0) -- Basic Call Stack with callsite.