on master help sign in
Add the correct infix annotations
commitc56c6300c8ea0ed114c5a715eea85c9d09541368 authorEvan Czaplicki <info@elm-lang.org> dateThu 5 Sep 2013, 16:55 (13 years ago) parenteb2a032
2 files changed+7−1
libraries/List.elm+3 libraries/Signal.elm+4−1
libraries/List.elm+3
@@ -37,6 +37,9 @@ import Native.List
3737(++) : appendable -> appendable -> appendable
3838(++) = Native.List.append
3939
40+infixr 5 ::
41+infixr 5 ++
42+
4043{-| Extract the first element of a list. List must be non-empty.
4144`(head [1,2,3] == 1)`
4245-}
libraries/Signal.elm+4−1
@@ -139,4 +139,7 @@ f <~ s = Native.Signal.lift f s
139139-- scene <~ Window.dimensions ~ Mouse.position
140140-- lift2 scene Window.dimensions Mouse.position
141141(~) : Signal (a -> b) -> Signal a -> Signal b
142−sf ~ s = Native.Signal.lift2 (\f x -> f x) sf s
142+sf ~ s = Native.Signal.lift2 (\f x -> f x) sf s
143+
144+infixl 4 <~
145+infixl 4 ~