classy-prelude 0.12.0.1 → 0.12.1
raw patch · 3 files changed
+30/−2 lines, 3 filesdep ~basic-preludenew-uploaderPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: basic-prelude
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- ClassyPrelude.hs +24/−0
- classy-prelude.cabal +2/−2
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.12.2++add `errorM`, `terrorM`, and `terror`+ ## 0.12.0 * Drop system-filepath
ClassyPrelude.hs view
@@ -609,3 +609,27 @@ applyDList :: DList a -> [a] -> [a] applyDList = DList.apply {-# INLINE applyDList #-}++-- | Throw a monadic exception from a String+--+-- > erroM = throwM . userError+--+-- Since 0.12.1+errorM :: (MonadThrow m) => String -> m a+errorM = throwM . userError++-- | Throw a monadic exception from a Text+--+-- > terroM = errorM . unpack+--+-- Since 0.12.1+terrorM :: (MonadThrow m) => Text -> m a+terrorM = errorM . unpack++-- | Throw an error from a Text+--+-- > terror = error . unpack+--+-- Since 0.12.1+terror :: Text -> a+terror = error . unpack
classy-prelude.cabal view
@@ -1,5 +1,5 @@ name: classy-prelude-version: 0.12.0.1+version: 0.12.1 synopsis: A typeclass-based Prelude. description: Modern best practices without name collisions. No partial functions are exposed, but modern data structures are, without requiring import lists. Qualified modules also are not needed: instead operations are based on type-classes from the mono-traversable package. @@ -16,7 +16,7 @@ library exposed-modules: ClassyPrelude build-depends: base >= 4 && < 5- , basic-prelude >= 0.4 && < 0.6+ , basic-prelude >= 0.4 && < 0.5 , transformers , containers >= 0.4.2 , text