on master help sign in
Get rid of (<|) and (|>) in Elm.Utils
ba4c3dfEvan Czaplicki
src/Elm/Utils.hs+1−24
@@ -1,7 +1,6 @@
1{-# OPTIONS_GHC -Wall #-}
1{-# OPTIONS_GHC -Wall #-}
2module Elm.Utils
2module Elm.Utils
3− ( (|>), (<|)
4− , drawCycle
3+ ( drawCycle
5 , nearbyNames
4 , nearbyNames
6 , Entry(..)
5 , Entry(..)
7 , parseEntry
6 , parseEntry
@@ -12,25 +11,3 @@ module Elm.Utils
12import Parse.Repl (Entry(..), parseEntry)
11import Parse.Repl (Entry(..), parseEntry)
13import Reporting.Helpers (drawCycle, nearbyNames)
12import Reporting.Helpers (drawCycle, nearbyNames)
14
13
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−