Use Data.Function (&) if base>4.8, fixes #33
This commit is contained in:
+9
-1
@@ -10,7 +10,6 @@ module Protolude (
|
|||||||
module Base,
|
module Base,
|
||||||
identity,
|
identity,
|
||||||
map,
|
map,
|
||||||
(&),
|
|
||||||
uncons,
|
uncons,
|
||||||
unsnoc,
|
unsnoc,
|
||||||
applyN,
|
applyN,
|
||||||
@@ -24,6 +23,9 @@ module Protolude (
|
|||||||
guardedA,
|
guardedA,
|
||||||
LText,
|
LText,
|
||||||
LByteString,
|
LByteString,
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
|
(&),
|
||||||
|
#endif
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import List as X
|
import List as X
|
||||||
@@ -305,6 +307,9 @@ import Data.Function as X (
|
|||||||
, flip
|
, flip
|
||||||
, fix
|
, fix
|
||||||
, on
|
, on
|
||||||
|
#if ( __GLASGOW_HASKELL__ >= 800 )
|
||||||
|
, (&)
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
|
|
||||||
-- Genericss
|
-- Genericss
|
||||||
@@ -419,10 +424,13 @@ import Text.Read as X (
|
|||||||
type LText = Data.Text.Lazy.Text
|
type LText = Data.Text.Lazy.Text
|
||||||
type LByteString = Data.ByteString.Lazy.ByteString
|
type LByteString = Data.ByteString.Lazy.ByteString
|
||||||
|
|
||||||
|
|
||||||
|
#if !MIN_VERSION_base(4,8,0)
|
||||||
infixl 1 &
|
infixl 1 &
|
||||||
|
|
||||||
(&) :: a -> (a -> b) -> b
|
(&) :: a -> (a -> b) -> b
|
||||||
x & f = f x
|
x & f = f x
|
||||||
|
#endif
|
||||||
|
|
||||||
identity :: a -> a
|
identity :: a -> a
|
||||||
identity x = x
|
identity x = x
|
||||||
|
|||||||
Reference in New Issue
Block a user