extra 1.5.1 → 1.5.2
raw patch · 7 files changed
+17/−7 lines, 7 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Tuple.Extra: infixr 3 &&&
- Data.Typeable.Extra: [Refl] :: (:~:) k a a
- Extra: [Refl] :: (:~:) k a a
- Extra: infixr 3 &&&
+ Control.Exception.Extra: errorWithoutStackTrace :: String -> a
+ Data.Typeable.Extra: Refl :: (:~:) k b b
+ Extra: Refl :: (:~:) k b b
+ Extra: errorWithoutStackTrace :: String -> a
+ System.Directory.Extra: withCurrentDirectory :: FilePath -> IO a -> IO a
- Data.Typeable.Extra: Proxy :: Proxy k
+ Data.Typeable.Extra: Proxy :: Proxy
- Data.Typeable.Extra: data (:~:) k (a :: k) (b :: k) :: forall k. k -> k -> *
+ Data.Typeable.Extra: data (:~:) (a :: k) (b :: k) :: k -> k -> *
- Data.Typeable.Extra: data Proxy k (t :: k) :: forall k. k -> *
+ Data.Typeable.Extra: data Proxy (t :: k) :: k -> *
- Extra: Proxy :: Proxy k
+ Extra: Proxy :: Proxy
- Extra: data (:~:) k (a :: k) (b :: k) :: forall k. k -> k -> *
+ Extra: data (:~:) (a :: k) (b :: k) :: k -> k -> *
- Extra: data Proxy k (t :: k) :: forall k. k -> *
+ Extra: data Proxy (t :: k) :: k -> *
Files
- CHANGES.txt +2/−0
- LICENSE +1/−1
- extra.cabal +4/−4
- src/Control/Concurrent/Extra.hs +1/−1
- src/Control/Exception/Extra.hs +7/−0
- src/Extra.hs +1/−1
- src/System/Directory/Extra.hs +1/−0
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for Extra +1.5.2+ Add errorWithoutStackTrace to Control.Exception.Extra 1.5.1 #25, add zipFrom and zipWithFrom #24, add eitherToMaybe and maybeToEither
LICENSE view
@@ -1,4 +1,4 @@-Copyright Neil Mitchell 2014-2016.+Copyright Neil Mitchell 2014-2017. All rights reserved. Redistribution and use in source and binary forms, with or without
extra.cabal view
@@ -1,13 +1,13 @@ cabal-version: >= 1.18 build-type: Simple name: extra-version: 1.5.1+version: 1.5.2 license: BSD3 license-file: LICENSE category: Development author: Neil Mitchell <ndmitchell@gmail.com> maintainer: Neil Mitchell <ndmitchell@gmail.com>-copyright: Neil Mitchell 2014-2016+copyright: Neil Mitchell 2014-2017 synopsis: Extra functions I use. description: A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.2.@@ -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.0.1, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2+tested-with: 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@@ -73,7 +73,7 @@ if !os(windows) build-depends: unix hs-source-dirs: test- ghc-options: -main-is Test -threaded -with-rtsopts=-N4+ ghc-options: -main-is Test -threaded "-with-rtsopts=-N4 -K1K" main-is: Test.hs other-modules: TestCustom
src/Control/Concurrent/Extra.hs view
@@ -241,7 +241,7 @@ x <- readVar var case x of Right res -> return res- Left bar -> error "Cortex.Concurrent.Extra, internal invariant violated in Barrier"+ Left bar -> error "Control.Concurrent.Extra, internal invariant violated in Barrier" -- | A version of 'waitBarrier' that never blocks, returning 'Nothing'
src/Control/Exception/Extra.hs view
@@ -7,6 +7,7 @@ module Control.Exception.Extra( module Control.Exception, retry, retryBool,+ errorWithoutStackTrace, showException, stringException, errorIO, displayException, -- * Exception catching/ignoring@@ -49,6 +50,12 @@ -- Part of the 'Exception' class in GHC 7.10 onwards. displayException :: Exception e => e -> String displayException = show+#endif++#if __GLASGOW_HASKELL__ < 800+-- | A variant of 'error' that does not produce a stack trace.+errorWithoutStackTrace :: String -> a+errorWithoutStackTrace = error #endif
src/Extra.hs view
@@ -11,7 +11,7 @@ getNumCapabilities, setNumCapabilities, withNumCapabilities, forkFinally, once, onceFork, Lock, newLock, withLock, withLockTry, Var, newVar, readVar, writeVar, modifyVar, modifyVar_, withVar, Barrier, newBarrier, signalBarrier, waitBarrier, waitBarrierMaybe, -- * Control.Exception.Extra -- | Extra functions available in @"Control.Exception.Extra"@.- retry, retryBool, showException, stringException, errorIO, displayException, ignore, catch_, handle_, try_, catchJust_, handleJust_, tryJust_, catchBool, handleBool, tryBool,+ retry, retryBool, errorWithoutStackTrace, showException, stringException, errorIO, displayException, ignore, catch_, handle_, try_, catchJust_, handleJust_, tryJust_, catchBool, handleBool, tryBool, -- * Control.Monad.Extra -- | Extra functions available in @"Control.Monad.Extra"@. whenJust, whenJustM, unit, maybeM, eitherM, loopM, whileM, partitionM, concatMapM, concatForM, mconcatMapM, mapMaybeM, findM, firstJustM, whenM, unlessM, ifM, notM, (||^), (&&^), orM, andM, anyM, allM,
src/System/Directory/Extra.hs view
@@ -68,6 +68,7 @@ -- | Like 'listFiles', but goes recursively through all subdirectories.+-- This function will follow symlinks, and if they form a loop, this function will not terminate. -- -- > listTest listFilesRecursive ["bar.txt","zoo","foo" </> "baz.txt"] ["bar.txt","zoo","foo" </> "baz.txt"] listFilesRecursive :: FilePath -> IO [FilePath]