on master help sign in
Get rid of (<|) and (|>) in Elm.Utils

I don’t really like having this Elm.Utils file in the first place, so the goal would be to remove everything from here eventually.

commitba4c3dfd7c83851c68ee782e3c5a5d697e89f19d authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 13 Dec 2017, 15:27 (9 years ago) parent3b7f6ff
1 file changed+1−24
src/Elm/Utils.hs+1−24
src/Elm/Utils.hs+1−24
@@ -1,7 +1,6 @@
11{-# OPTIONS_GHC -Wall #-}
22module Elm.Utils
3− ( (|>), (<|)
4− , drawCycle
3+ ( drawCycle
54 , nearbyNames
65 , Entry(..)
76 , parseEntry
@@ -12,25 +11,3 @@ module Elm.Utils
1211import Parse.Repl (Entry(..), parseEntry)
1312import Reporting.Helpers (drawCycle, nearbyNames)
1413
15−
16−
17−-- PIPES
18−
19−
20−{-| Forward function application `x |> f == f x`. This function is useful
21−for avoiding parenthesis and writing code in a more natural way.
22−-}
23−(|>) :: a -> (a -> b) -> b
24−x |> f = f x
25−
26−
27−{-| Backward function application `f <| x == f x`. This function is useful for
28−avoiding parenthesis.
29−-}
30−(<|) :: (a -> b) -> a -> b
31−f <| x = f x
32−
33−
34−infixr 0 <|
35−infixl 0 |>
36−