From 70e861818ded7bab467fb3b6ba641a3cb459e080 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Sun, 15 Dec 2013 12:33:29 -0800 Subject: [PATCH 1/3] fix typo in docs --- libraries/Signal.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Signal.elm b/libraries/Signal.elm index d5882d2..eaf6e4e 100644 --- a/libraries/Signal.elm +++ b/libraries/Signal.elm @@ -3,7 +3,7 @@ module Signal where `lift8` and infix lift operators `<~` and `~`, combinations, filters, and past-dependence. -Signals are time-varying values. Lifted functions are reevaluated whenver any of +Signals are time-varying values. Lifted functions are reevaluated whenever any of their input signals has an event. Signal events may be of the same value as the previous value of the signal. Such signals are useful for timing and past-dependence. From bb851314abe7cfc830041e63748c266ff39fbd98 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Tue, 17 Dec 2013 15:44:45 -0800 Subject: [PATCH 2/3] more typos --- libraries/Basics.elm | 2 +- libraries/Signal.elm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/Basics.elm b/libraries/Basics.elm index ec46fcc..6728978 100644 --- a/libraries/Basics.elm +++ b/libraries/Basics.elm @@ -332,7 +332,7 @@ curry : ((a,b) -> c) -> a -> b -> c curry f a b = f (a,b) {-| Change how arguments are passed to a function. -This combines two arguments into a sigle pair. +This combines two arguments into a single pair. -} uncurry : (a -> b -> c) -> (a,b) -> c uncurry f (a,b) = f a b \ No newline at end of file diff --git a/libraries/Signal.elm b/libraries/Signal.elm index eaf6e4e..a3c057b 100644 --- a/libraries/Signal.elm +++ b/libraries/Signal.elm @@ -95,11 +95,11 @@ combine = foldr (Native.Signal.lift2 (::)) (Native.Signal.constant []) -- fold over non-homogeneous inputs. -- mergeEither : Signal a -> Signal b -> Signal (Either a b) -{-| Count the number of events that have occured. -} +{-| Count the number of events that have occurred. -} count : Signal a -> Signal Int count = Native.Signal.count -{-| Count the number of events that have occured that satisfy a given predicate. +{-| Count the number of events that have occurred that satisfy a given predicate. -} countIf : (a -> Bool) -> Signal a -> Signal Int countIf = Native.Signal.countIf From b77fd96d682c19b98cd94b295072d8fc838c13ed Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Tue, 17 Dec 2013 15:28:32 -0800 Subject: [PATCH 3/3] fix typos in Graphics --- libraries/Graphics/Element.elm | 2 +- libraries/Graphics/Input.elm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Graphics/Element.elm b/libraries/Graphics/Element.elm index 92b12cf..4430bdd 100644 --- a/libraries/Graphics/Element.elm +++ b/libraries/Graphics/Element.elm @@ -108,7 +108,7 @@ color c e = let p = e.props in {-| Create an `Element` with a tag. This lets you link directly to it. The element `(tag "all-about-badgers" thirdParagraph)` can be reached -with a link lik this: `/facts-about-animals.elm#all-about-badgers` +with a link like this: `/facts-about-animals.elm#all-about-badgers` -} tag : String -> Element -> Element tag name e = let p = e.props in diff --git a/libraries/Graphics/Input.elm b/libraries/Graphics/Input.elm index b0bfe01..7067246 100644 --- a/libraries/Graphics/Input.elm +++ b/libraries/Graphics/Input.elm @@ -113,7 +113,7 @@ hoverables : a -> { events : Signal a, hoverable : (Bool -> a) -> Element -> Element } hoverables = Native.Graphics.Input.hoverables -{-| Detect when the mouse is hovering over a specifici `Element`. -} +{-| Detect when the mouse is hovering over a specific `Element`. -} hoverable : Element -> (Element, Signal Bool) hoverable elem = let pool = hoverables False