Skip to content

Commit

Permalink
Future-proof against potential Prelude.foldl' (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim authored May 22, 2023
1 parent f77759e commit 6641404
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Data/ByteString.hs
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ module Data.ByteString (
) where

import qualified Prelude as P
import Prelude hiding (reverse,head,tail,last,init,null
,length,map,lines,foldl,foldr,unlines
import Prelude hiding (reverse,head,tail,last,init,Foldable(..)
,map,lines,unlines
,concat,any,take,drop,splitAt,takeWhile
,dropWhile,span,break,elem,filter,maximum
,minimum,all,concatMap,foldl1,foldr1
,dropWhile,span,break,filter
,all,concatMap
,scanl,scanl1,scanr,scanr1
,readFile,writeFile,appendFile,replicate
,getContents,getLine,putStr,putStrLn,interact
Expand Down
10 changes: 5 additions & 5 deletions Data/ByteString/Char8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ module Data.ByteString.Char8 (
) where

import qualified Prelude as P
import Prelude hiding (reverse,head,tail,last,init,null
,length,map,lines,foldl,foldr,unlines
import Prelude hiding (reverse,head,tail,last,init,Foldable(..)
,map,lines,unlines
,concat,any,take,drop,splitAt,takeWhile
,dropWhile,span,break,elem,filter,unwords
,words,maximum,minimum,all,concatMap
,dropWhile,span,break,filter,unwords
,words,all,concatMap
,scanl,scanl1,scanr,scanr1
,appendFile,readFile,writeFile
,foldl1,foldr1,replicate
,replicate
,getContents,getLine,putStr,putStrLn,interact
,zip,zipWith,unzip,notElem)

Expand Down
6 changes: 3 additions & 3 deletions Data/ByteString/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ module Data.ByteString.Lazy (
) where

import Prelude hiding
(reverse,head,tail,last,init,null,length,map,lines,foldl,foldr,unlines
,concat,any,take,drop,splitAt,takeWhile,dropWhile,span,break,elem,filter,maximum
,minimum,all,concatMap,foldl1,foldr1,scanl, scanl1, scanr, scanr1
(reverse,head,tail,last,init,Foldable(..),map,lines,unlines
,concat,any,take,drop,splitAt,takeWhile,dropWhile,span,break,filter
,all,concatMap,scanl, scanl1, scanr, scanr1
,repeat, cycle, interact, iterate,readFile,writeFile,appendFile,replicate
,getContents,getLine,putStr,putStrLn ,zip,zipWith,unzip,notElem)

Expand Down
6 changes: 3 additions & 3 deletions Data/ByteString/Lazy/Char8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ import Data.Int (Int64)
import qualified Data.List as List

import Prelude hiding
(reverse,head,tail,last,init,null,length,map,lines,foldl,foldr,unlines
,concat,any,take,drop,splitAt,takeWhile,dropWhile,span,break,elem,filter
,unwords,words,maximum,minimum,all,concatMap,scanl,scanl1,scanr,scanr1,foldl1,foldr1
(reverse,head,tail,last,init,Foldable(..),map,lines,unlines
,concat,any,take,drop,splitAt,takeWhile,dropWhile,span,break,filter
,unwords,words,all,concatMap,scanl,scanl1,scanr,scanr1
,readFile,writeFile,appendFile,replicate,getContents,getLine,putStr,putStrLn
,zip,zipWith,unzip,notElem,repeat,iterate,interact,cycle)

Expand Down

0 comments on commit 6641404

Please sign in to comment.