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.
8 lines
367 B
Haskell
8 lines
367 B
Haskell
--------------------------------------------------------------------------------
|
|
module Utils where
|
|
--------------------------------------------------------------------------------
|
|
import Data.Function ((&))
|
|
--------------------------------------------------------------------------------
|
|
|
|
-- | Prefer this operator to the ampersand for stylistic reasons.
|
|
(|>) = (&)
|