extra 1.6.4 → 1.6.5
raw patch · 4 files changed
+11/−16 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGES.txt +2/−0
- README.md +1/−12
- extra.cabal +2/−2
- test/TestUtil.hs +6/−2
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for Extra +1.6.5, released 2018-03-24+ #33, improve error messages on test suite failures 1.6.4, released 2018-02-23 Add dropPrefix and dropSuffix 1.6.3, released 2018-01-26
README.md view
@@ -9,7 +9,6 @@ The module `Extra` documents all functions provided by this library. Modules such as `Data.List.Extra` provide extra functions over `Data.List` and also reexport `Data.List`. Users are recommended to replace `Data.List` imports with `Data.List.Extra` if they need the extra functionality. - ## Which functions? When producing a library of extra functions I have been guided by a few principles. I encourage others with small useful utility functions contribute them here, perhaps as a temporary stop before proposing they join the standard libraries.@@ -19,16 +18,6 @@ * Most of the functions have trivial implementations. If a beginner couldn't write the function, it probably doesn't belong here. * I have defined only a few new data types or type aliases. It's a package for defining new utilities on existing types, not new types or concepts. - ## Base versions -The following GHC versions correspond to the following base library versions:--* base 4.9 == GHC 8.0-* base 4.8 == GHC 7.10-* base 4.7 == GHC 7.8-* base 4.6 == GHC 7.6-* base 4.5 == GHC 7.4-* base 4.4 == GHC 7.2--A more complete list can be found [here](https://wiki.haskell.org/Base_package#Versions).+A mapping between `base` versions and GHC compiler versions can be found [here](https://wiki.haskell.org/Base_package#Versions).
extra.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.18 build-type: Simple name: extra-version: 1.6.4+version: 1.6.5 license: BSD3 license-file: LICENSE category: Development@@ -15,7 +15,7 @@ The module "Extra" documents all functions provided by this library. Modules such as "Data.List.Extra" provide extra functions over "Data.List" and also reexport "Data.List". Users are recommended to replace "Data.List" imports with "Data.List.Extra" if they need the extra functionality. homepage: https://github.com/ndmitchell/extra#readme bug-reports: https://github.com/ndmitchell/extra/issues-tested-with: GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2+tested-with: GHC==8.4.1, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2 extra-doc-files: CHANGES.txt
test/TestUtil.hs view
@@ -79,11 +79,15 @@ instance Testable a => Testable (IO a) where property = property . unsafePerformIO -instance Eq a => Eq (IO a) where+-- We only use this property to assert equality as a property+-- And the Show instance is useless (since it may be non-deterministic)+-- So we print out full information on failure+instance (Show a, Eq a) => Eq (IO a) where a == b = unsafePerformIO $ do a <- try_ $ captureOutput a b <- try_ $ captureOutput b- return $ a == b+ if a == b then return True else+ error $ show ("IO values not equal", a, b) instance Show (IO a) where show _ = "<<IO>>"