Create Utils module for (|>) operator
For the past 3-4 Haskell projects on which I've worked, I've tried to habituate the usage of the (&) operator, but I find that -- as petty as it may sound -- I don't like the way that it looks, and I end up avoiding using it as a result. This time around, I'm aliasing it to (|>) (i.e. Elixir style), and I'm hoping to use it more.
This commit is contained in:
parent
191205acac
commit
90a521c78f
6 changed files with 16 additions and 10 deletions
8
src/Utils.hs
Normal file
8
src/Utils.hs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--------------------------------------------------------------------------------
|
||||
module Utils where
|
||||
--------------------------------------------------------------------------------
|
||||
import Data.Function ((&))
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
-- | Prefer this operator to the ampersand for stylistic reasons.
|
||||
(|>) = (&)
|
||||
Loading…
Add table
Add a link
Reference in a new issue