prolude 0.0.0.15 → 0.0.0.16
raw patch · 3 files changed
+15/−2 lines, 3 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Prolude.Maybe: hush :: Either a b -> Maybe b
+ Prolude.Maybe: note :: a -> Maybe b -> Either a b
+ Prolude.Servant: type HttpSummary = Summary
Files
- Prolude/Maybe.hs +12/−0
- Prolude/Servant.hs +2/−1
- prolude.cabal +1/−1
Prolude/Maybe.hs view
@@ -1,5 +1,7 @@ module Prolude.Maybe ( module Data.Maybe+ , note+ , hush ) where @@ -14,3 +16,13 @@ , maybe , maybeToList )++{-# INLINE hush #-}+-- | Suppress the 'Left' value of an 'Either'+hush :: Either a b -> Maybe b+hush = either (const Nothing) Just++{-# INLINE note #-}+-- | Tag the 'Nothing' value of a 'Maybe'+note :: a -> Maybe b -> Either a b+note a = maybe (Left a) Right
Prolude/Servant.hs view
@@ -4,6 +4,7 @@ -- * Alias types , HttpDescription , HttpJson+ , HttpSummary ) where @@ -21,10 +22,10 @@ , Put , PutNoContent , ReqBody- , Summary , ToHttpApiData ) import qualified Servant.API as Servant type HttpDescription = Servant.Description type HttpJson = Servant.JSON+type HttpSummary = Servant.Summary
prolude.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.10 name: prolude-version: 0.0.0.15+version: 0.0.0.16 synopsis: ITProTV's custom prelude description: Prolude is ITProTV's custom prelude.