classy-prelude 1.2.0 → 1.2.0.1
raw patch · 3 files changed
+13/−1 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- ClassyPrelude: undefined :: a
+ ClassyPrelude: undefined :: HasCallStack => a
Files
- ChangeLog.md +4/−0
- ClassyPrelude.hs +8/−0
- classy-prelude.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.2.0.1++* Use `HasCallStack` in `undefined`+ ## 1.2.0 * Don't generalize I/O functions to `IOData`, instead specialize to
ClassyPrelude.hs view
@@ -258,6 +258,10 @@ import Control.Concurrent.STM.TMChan import Control.Concurrent.STM.TMQueue +#if MIN_VERSION_base(4,9,0)+import GHC.Stack (HasCallStack)+#endif+ tshow :: Show a => a -> Text tshow = fromList . Prelude.show @@ -370,7 +374,11 @@ -- @"Prelude".'Prelude.undefined'@. -- -- Since 0.5.5+#if MIN_VERSION_base(4,9,0)+undefined :: HasCallStack => a+#else undefined :: a+#endif undefined = error "ClassyPrelude.undefined" {-# DEPRECATED undefined "It is highly recommended that you either avoid partial functions or provide meaningful error messages" #-}
classy-prelude.cabal view
@@ -1,5 +1,5 @@ name: classy-prelude-version: 1.2.0+version: 1.2.0.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.