Use Data.Function (&) if base>4.8, fixes #33

This commit is contained in:
Stephen Diehl
2017-01-01 23:43:43 +00:00
parent 4a2ea2735b
commit d0e81532af
+9 -1
View File
@@ -10,7 +10,6 @@ module Protolude (
module Base,
identity,
map,
(&),
uncons,
unsnoc,
applyN,
@@ -24,6 +23,9 @@ module Protolude (
guardedA,
LText,
LByteString,
#if !MIN_VERSION_base(4,8,0)
(&),
#endif
) where
import List as X
@@ -305,6 +307,9 @@ import Data.Function as X (
, flip
, fix
, on
#if ( __GLASGOW_HASKELL__ >= 800 )
, (&)
#endif
)
-- Genericss
@@ -419,10 +424,13 @@ import Text.Read as X (
type LText = Data.Text.Lazy.Text
type LByteString = Data.ByteString.Lazy.ByteString
#if !MIN_VERSION_base(4,8,0)
infixl 1 &
(&) :: a -> (a -> b) -> b
x & f = f x
#endif
identity :: a -> a
identity x = x