fix backwards compart for ($!)
This commit is contained in:
+6
-1
@@ -6,6 +6,7 @@ module Protolude (
|
|||||||
identity,
|
identity,
|
||||||
bool,
|
bool,
|
||||||
(&),
|
(&),
|
||||||
|
($!),
|
||||||
uncons,
|
uncons,
|
||||||
applyN,
|
applyN,
|
||||||
print,
|
print,
|
||||||
@@ -160,7 +161,6 @@ import GHC.Exts as X (
|
|||||||
)
|
)
|
||||||
import GHC.Base as X (
|
import GHC.Base as X (
|
||||||
(++)
|
(++)
|
||||||
, ($!)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
-- Genericss
|
-- Genericss
|
||||||
@@ -247,6 +247,11 @@ infixl 1 &
|
|||||||
(&) :: a -> (a -> b) -> b
|
(&) :: a -> (a -> b) -> b
|
||||||
x & f = f x
|
x & f = f x
|
||||||
|
|
||||||
|
infixr 0 $!
|
||||||
|
|
||||||
|
($!) :: (a -> b) -> a -> b
|
||||||
|
($!) = (P.$!)
|
||||||
|
|
||||||
bool :: a -> a -> Bool -> a
|
bool :: a -> a -> Bool -> a
|
||||||
bool f t b = if b then t else f
|
bool f t b = if b then t else f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user