Skip to content

Commit 66f99ad

Browse files
committed
Implement "|>>" Operator
1 parent 1eca3f3 commit 66f99ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

IHP/HaskellSupport.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Copyright: (c) digitally induced GmbH, 2020
77
-}
88
module IHP.HaskellSupport
99
( (|>)
10+
, (|>>)
1011
, whenEmpty
1112
, whenNonEmpty
1213
, get
@@ -56,6 +57,10 @@ infixl 8 |>
5657
a |> f = f a
5758
{-# INLINE (|>) #-}
5859

60+
infixl 8 |>>
61+
a |>> b = a <&> b
62+
{-# INLINABLE (|>>) #-}
63+
5964
-- | Used by 'nonEmpty' and 'isEmptyValue' to check for emptyness
6065
class IsEmpty value where
6166
-- | Returns True when the value is an empty string, empty list, zero UUID, etc.

0 commit comments

Comments
 (0)