Skip to content

Commit

Permalink
Implement "|>>" Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
s0kil committed Mar 8, 2022
1 parent 1eca3f3 commit 66f99ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions IHP/HaskellSupport.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Copyright: (c) digitally induced GmbH, 2020
-}
module IHP.HaskellSupport
( (|>)
, (|>>)
, whenEmpty
, whenNonEmpty
, get
Expand Down Expand Up @@ -56,6 +57,10 @@ infixl 8 |>
a |> f = f a
{-# INLINE (|>) #-}

infixl 8 |>>
a |>> b = a <&> b
{-# INLINABLE (|>>) #-}

-- | Used by 'nonEmpty' and 'isEmptyValue' to check for emptyness
class IsEmpty value where
-- | Returns True when the value is an empty string, empty list, zero UUID, etc.
Expand Down

0 comments on commit 66f99ad

Please sign in to comment.