ListLike 4.7.8 → 4.7.8.1
raw patch · 5 files changed
+31/−18 lines, 5 filesdep ~containersdep ~textPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: containers, text
API changes (from Hackage documentation)
Files
- CHANGELOG.md +12/−0
- ListLike.cabal +6/−5
- src/Data/ListLike.hs +7/−7
- src/Data/ListLike/Instances.hs +4/−4
- src/Data/ListLike/UTF8.hs +2/−2
CHANGELOG.md view
@@ -1,6 +1,18 @@ CHANGES ======= +#### 4.7.8.1 (2023-07-12)++ - allow `bytestring-0.12` and fix its deprecation warnings+ - tested with GHC 7.10 - 9.6++### 4.7.8 (2022-11-15)++ - change default `insertBy` implementation to work better with dlists+ ([#18](https://github.com/ddssff/listlike/pull/18))+ - allow `vector-0.13`+ - tested with GHC 7.10 - 9.4+ ### 4.7.7 (2022-05-26) - methods `sequence` and `mapM`: relax `Monad` constraint to `Applicative`
ListLike.cabal view
@@ -1,5 +1,5 @@ Name: ListLike-Version: 4.7.8+Version: 4.7.8.1 License: BSD3 Maintainer: David Fox <dsf@seereason.com>, Andreas Abel Author: John Goerzen@@ -23,8 +23,9 @@ Stability: Stable Tested-With:- GHC == 9.4.1- GHC == 9.2.2+ GHC == 9.6.2+ GHC == 9.4.5+ GHC == 9.2.8 GHC == 9.0.2 GHC == 8.10.7 GHC == 8.8.4@@ -66,7 +67,7 @@ -- Other-Modules: Data.ConfigFile.Lexer Build-Depends: base >= 4.8 && < 5 ,containers >= 0.3 && < 0.7- ,bytestring >= 0.9.1 && < 0.12+ ,bytestring >= 0.9.1 && < 0.13 ,array >= 0.3 && < 0.6 ,text >= 0.11 && < 1.3 || == 2.0.* ,vector >= 0.5 && < 0.14@@ -119,4 +120,4 @@ source-repository head type: git- location: git://github.com/ddssff/listlike.git+ location: https://github.com/ddssff/listlike.git
src/Data/ListLike.hs view
@@ -113,14 +113,14 @@ InfiniteListLike ) where-import Prelude hiding (length, head, last, null, tail, map, filter, concat,- any, lookup, init, all, foldl, foldr, foldl1, foldr1,- maximum, minimum, iterate, span, break, takeWhile,+import Prelude hiding (Foldable(..), head, last, tail, map, filter, concat,+ any, lookup, init, all,+ iterate, span, break, takeWhile, dropWhile, {-dropWhileEnd,-} reverse, zip, zipWith, sequence,- sequence_, mapM, mapM_, concatMap, and, or, sum,- product, repeat, replicate, cycle, take, drop,- splitAt, elem, notElem, unzip, lines, words,- unlines, unwords, foldMap, show)+ sequence_, mapM, mapM_, concatMap, and, or,+ repeat, replicate, cycle, take, drop,+ splitAt, notElem, unzip, lines, words,+ unlines, unwords, show) import Data.ListLike.Base import Data.ListLike.Chars import Data.ListLike.CharString
src/Data/ListLike/Instances.hs view
@@ -215,13 +215,13 @@ genericReplicate i = BS.replicate (fromIntegral i) instance ListLikeIO BS.ByteString Word8 where- hGetLine = BS.hGetLine+ hGetLine = BSC.hGetLine hGetContents = BS.hGetContents hGet = BS.hGet hGetNonBlocking = BS.hGetNonBlocking hPutStr = BS.hPutStr hPutStrLn = BSC.hPutStrLn- getLine = BS.getLine+ getLine = BSC.getLine getContents = BS.getContents putStr = BS.putStr putStrLn = BSC.putStrLn@@ -345,13 +345,13 @@ strict2lazy :: BS.ByteString -> IO BSL.ByteString strict2lazy b = return (BSL.fromChunks [b]) instance ListLikeIO BSL.ByteString Word8 where- hGetLine h = BS.hGetLine h >>= strict2lazy+ hGetLine h = BSC.hGetLine h >>= strict2lazy hGetContents = BSL.hGetContents hGet = BSL.hGet hGetNonBlocking = BSL.hGetNonBlocking hPutStr = BSL.hPut -- hPutStrLn = BSLC.hPutStrLn- getLine = BS.getLine >>= strict2lazy+ getLine = BSC.getLine >>= strict2lazy getContents = BSL.getContents putStr = BSL.putStr putStrLn = BSLC.putStrLn
src/Data/ListLike/UTF8.hs view
@@ -135,7 +135,7 @@ -- genericReplicate i = UTF8.replicate (fromIntegral i) instance ListLikeIO (UTF8 BS.ByteString) Char where- hGetLine h = UTF8.fromRep <$> BS.hGetLine h+ hGetLine h = UTF8.fromRep <$> BSC.hGetLine h hGetContents h = UTF8.fromRep <$> BS.hGetContents h hGet h n = UTF8.fromRep <$> BS.hGet h n hGetNonBlocking h n = UTF8.fromRep <$> BS.hGetNonBlocking h n@@ -258,7 +258,7 @@ -- genericReplicate i = UTF8.replicate (fromIntegral i) instance ListLikeIO (UTF8 BSL.ByteString) Char where- hGetLine h = (UTF8.fromRep . BSL.fromStrict) <$> BS.hGetLine h+ hGetLine h = (UTF8.fromRep . BSL.fromStrict) <$> BSC.hGetLine h hGetContents h = (UTF8.fromRep) <$> BSL.hGetContents h hGet h n = UTF8.fromRep <$> BSL.hGet h n hGetNonBlocking h n = UTF8.fromRep <$> BSL.hGetNonBlocking h n