on master help sign in
Put document structure in nicer location
8a255deEvan Czaplicki
libraries/Graphics/Input.elm+9−12
@@ -1,16 +1,6 @@
1module Graphics.Input where
1module Graphics.Input where
2
2
3−import Basics (String)
4−import Signal (Signal,lift,dropRepeats)
5−import Native.Graphics.Input
6−import List
7−import Graphics.Element (Element)
8−import Maybe (Maybe)
9−import JavaScript (JSString)
10−
11−{-| DOCUMENT STRUCTURE
12−
13−This module is for creating standard input widgets such as buttons and
3+{-| This module is for creating standard input widgets such as buttons and
14text boxes. In general, functions in this library return a signal representing
4text boxes. In general, functions in this library return a signal representing
15events from the user.
5events from the user.
16
6
@@ -34,9 +24,16 @@ two-way inputs.
34
24
35# Mouse Hover
25# Mouse Hover
36@docs hoverable, hoverables
26@docs hoverable, hoverables
37−
38-}
27-}
39
28
29+import Basics (String)
30+import Signal (Signal,lift,dropRepeats)
31+import Native.Graphics.Input
32+import List
33+import Graphics.Element (Element)
34+import Maybe (Maybe)
35+import JavaScript (JSString)
36+
40id x = x
37id x = x
41
38
42{-| Create a group of buttons.
39{-| Create a group of buttons.
libraries/List.elm+5−9
@@ -1,13 +1,7 @@
1−
2module List where
1module List where
3
2
4−import open Basics
5−import Native.List
6−
7−{-| DOCUMENT STRUCTURE
8−
9−A library for manipulating lists of values. Every value in a list must have
3+{-| A library for manipulating lists of values. Every value in a
10−the same type.
4+list must have the same type.
11
5
12# Basics
6# Basics
13@docs (::), (++), length, reverse, map
7@docs (::), (++), length, reverse, map
@@ -26,9 +20,11 @@ the same type.
26
20
27# Special Folds
21# Special Folds
28@docs susm, product, maximum, minimum, all, any, and, or
22@docs susm, product, maximum, minimum, all, any, and, or
29−
30-}
23-}
31
24
25+import open Basics
26+import Native.List
27+
32{-| Add an element to the front of a list `(1 :: [2,3] == [1,2,3])` -}
28{-| Add an element to the front of a list `(1 :: [2,3] == [1,2,3])` -}
33(::) : a -> [a] -> [a]
29(::) : a -> [a] -> [a]
34(::) = Native.List.cons
30(::) = Native.List.cons