diff options
author | Ben Sima <ben@bsima.me> | 2021-01-29 02:37:14 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-01-29 03:22:01 -0500 |
commit | b289dee25ad8ce4c2622fadb2f4c31fb90914b39 (patch) | |
tree | 5511da780cdabbb98c8fbe01f03997d3263e7880 /Alpha.hs | |
parent | 42c7614b6a4bd7504e9bf31e0882db58b85857bc (diff) |
Lint 'return' into 'pure', replace bind operator
Diffstat (limited to 'Alpha.hs')
-rw-r--r-- | Alpha.hs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -41,9 +41,9 @@ module Alpha (</), (<//), - -- * Shoving / binding + -- * inding bind, - (>>=), + (+>), -- * Bool don't, @@ -146,7 +146,7 @@ infixl 1 |> -- | Alias for <&>. Can be read as "and then". Basically does into a -- functor, does some computation, then returns the same kind of --- functor. Could also be defined as `f >>= return <. g` +-- functor. Could also be defined as `f +> return <. g` -- -- Pronunciation: fas-gar (/>) :: Functor f => f a -> (a -> b) -> f b @@ -157,10 +157,10 @@ infixl 1 /> bind :: Monad m => m a -> (a -> m b) -> m b bind a f = a Prelude.>>= f -(>>=) :: Monad m => m a -> (a -> m b) -> m b -a >>= b = a Prelude.>>= b +(+>) :: Monad m => m a -> (a -> m b) -> m b +a +> b = a Prelude.>>= b -infixl 1 >>= +infixl 1 +> -- | Removes newlines from text. chomp :: Text -> Text |