on master help sign in
Add the correct infix annotations
c56c630Evan Czaplicki
libraries/List.elm+3
@@ -37,6 +37,9 @@ import Native.List
37(++) : appendable -> appendable -> appendable
37(++) : appendable -> appendable -> appendable
38(++) = Native.List.append
38(++) = Native.List.append
39
39
40+infixr 5 ::
41+infixr 5 ++
42+
40{-| Extract the first element of a list. List must be non-empty.
43{-| Extract the first element of a list. List must be non-empty.
41`(head [1,2,3] == 1)`
44`(head [1,2,3] == 1)`
42-}
45-}
libraries/Signal.elm+4−1
@@ -139,4 +139,7 @@ f <~ s = Native.Signal.lift f s
139-- scene <~ Window.dimensions ~ Mouse.position
139-- scene <~ Window.dimensions ~ Mouse.position
140-- lift2 scene Window.dimensions Mouse.position
140-- lift2 scene Window.dimensions Mouse.position
141(~) : Signal (a -> b) -> Signal a -> Signal b
141(~) : 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 ~