on master help sign in
Merge pull request #391 from ivanov/typos
37afd0dEvan Czaplicki
libraries/Basics.elm+1−1
@@ -332,7 +332,7 @@ curry : ((a,b) -> c) -> a -> b -> c
332curry f a b = f (a,b)
332curry f a b = f (a,b)
333
333
334{-| Change how arguments are passed to a function.
334{-| Change how arguments are passed to a function.
335−This combines two arguments into a sigle pair.
335+This combines two arguments into a single pair.
336-}
336-}
337uncurry : (a -> b -> c) -> (a,b) -> c
337uncurry : (a -> b -> c) -> (a,b) -> c
338uncurry f (a,b) = f a b
338uncurry f (a,b) = f a b
libraries/Graphics/Element.elm+1−1
@@ -108,7 +108,7 @@ color c e = let p = e.props in
108
108
109{-| Create an `Element` with a tag. This lets you link directly to it.
109{-| Create an `Element` with a tag. This lets you link directly to it.
110The element `(tag "all-about-badgers" thirdParagraph)` can be reached
110The element `(tag "all-about-badgers" thirdParagraph)` can be reached
111−with a link lik this: `/facts-about-animals.elm#all-about-badgers`
111+with a link like this: `/facts-about-animals.elm#all-about-badgers`
112-}
112-}
113tag : String -> Element -> Element
113tag : String -> Element -> Element
114tag name e = let p = e.props in
114tag name e = let p = e.props in
libraries/Graphics/Input.elm+1−1
@@ -113,7 +113,7 @@ hoverables : a -> { events : Signal a,
113 hoverable : (Bool -> a) -> Element -> Element }
113 hoverable : (Bool -> a) -> Element -> Element }
114hoverables = Native.Graphics.Input.hoverables
114hoverables = Native.Graphics.Input.hoverables
115
115
116−{-| Detect when the mouse is hovering over a specifici `Element`. -}
116+{-| Detect when the mouse is hovering over a specific `Element`. -}
117hoverable : Element -> (Element, Signal Bool)
117hoverable : Element -> (Element, Signal Bool)
118hoverable elem =
118hoverable elem =
119 let pool = hoverables False
119 let pool = hoverables False
libraries/Signal.elm+3−3
@@ -3,7 +3,7 @@ module Signal where
3`lift8` and infix lift operators `<~` and `~`, combinations, filters, and
3`lift8` and infix lift operators `<~` and `~`, combinations, filters, and
4past-dependence.
4past-dependence.
5
5
6−Signals are time-varying values. Lifted functions are reevaluated whenver any of
6+Signals are time-varying values. Lifted functions are reevaluated whenever any of
7their input signals has an event. Signal events may be of the same value as the
7their input signals has an event. Signal events may be of the same value as the
8previous value of the signal. Such signals are useful for timing and
8previous value of the signal. Such signals are useful for timing and
9past-dependence.
9past-dependence.
@@ -95,11 +95,11 @@ combine = foldr (Native.Signal.lift2 (::)) (Native.Signal.constant [])
95 -- fold over non-homogeneous inputs.
95 -- fold over non-homogeneous inputs.
96 -- mergeEither : Signal a -> Signal b -> Signal (Either a b)
96 -- mergeEither : Signal a -> Signal b -> Signal (Either a b)
97
97
98−{-| Count the number of events that have occured. -}
98+{-| Count the number of events that have occurred. -}
99count : Signal a -> Signal Int
99count : Signal a -> Signal Int
100count = Native.Signal.count
100count = Native.Signal.count
101
101
102−{-| Count the number of events that have occured that satisfy a given predicate.
102+{-| Count the number of events that have occurred that satisfy a given predicate.
103-}
103-}
104countIf : (a -> Bool) -> Signal a -> Signal Int
104countIf : (a -> Bool) -> Signal a -> Signal Int
105countIf = Native.Signal.countIf
105countIf = Native.Signal.countIf