extra 1.6.11 → 1.6.12
raw patch · 4 files changed
+16/−5 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Tuple.Extra: curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
+ Data.Tuple.Extra: uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d)
+ Extra: curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
+ Extra: uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d)
Files
- CHANGES.txt +2/−0
- extra.cabal +2/−2
- src/Data/Tuple/Extra.hs +11/−2
- src/Extra.hs +1/−1
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for Extra +1.6.12, released 2018-09-24+ #39, add curry3/uncurry3 1.6.11, released 2018-09-18 #38, make escapeHTML replace ' with ' 1.6.10, released 2018-09-04
extra.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.18 build-type: Simple name: extra-version: 1.6.11+version: 1.6.12 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.4.3, 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.6.1, GHC==8.4.3, 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
src/Data/Tuple/Extra.hs view
@@ -8,8 +8,9 @@ first, second, (***), (&&&), -- * More pair operations dupe, both,- -- * Extract from a triple- fst3, snd3, thd3+ -- * Operations on triple+ fst3, snd3, thd3,+ curry3, uncurry3 ) where import Data.Tuple@@ -66,3 +67,11 @@ -- | Extract the final element of a triple. thd3 :: (a,b,c) -> c thd3 (a,b,c) = c++-- | Converts an uncurried function to a curried function.+curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d+curry3 f a b c = f (a,b,c)++-- | Converts a curried function to a function on a triple.+uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d)+uncurry3 f ~(a,b,c) = f a b c
src/Extra.hs view
@@ -26,7 +26,7 @@ lower, upper, trim, trimStart, trimEnd, word1, line1, escapeHTML, escapeJSON, unescapeHTML, unescapeJSON, dropEnd, takeEnd, splitAtEnd, breakEnd, spanEnd, dropWhileEnd, dropWhileEnd', takeWhileEnd, stripSuffix, stripInfix, stripInfixEnd, dropPrefix, dropSuffix, wordsBy, linesBy, breakOn, breakOnEnd, splitOn, split, chunksOf, notNull, list, uncons, unsnoc, cons, snoc, drop1, mconcatMap, groupSort, groupSortOn, groupSortBy, nubOrd, nubOrdBy, nubOrdOn, nubOn, groupOn, sortOn, nubSort, nubSortBy, nubSortOn, maximumOn, minimumOn, disjoint, allSame, anySame, repeatedly, for, firstJust, concatUnzip, concatUnzip3, zipFrom, zipWithFrom, replace, merge, mergeBy, -- * Data.Tuple.Extra -- | Extra functions available in @"Data.Tuple.Extra"@.- first, second, (***), (&&&), dupe, both, fst3, snd3, thd3,+ first, second, (***), (&&&), dupe, both, fst3, snd3, thd3, curry3, uncurry3, -- * Data.Typeable.Extra -- | Extra functions available in @"Data.Typeable.Extra"@. typeRep, (:~:)(..), Proxy(..),