on master help sign in
Get standard libraries compiling (now that String is in Basics and Signal is in Signal)
748c608Evan Czaplicki
libraries/Graphics/Collage.elm+2−2
@@ -23,7 +23,7 @@ type Form = {
23data FillStyle
23data FillStyle
24 = Solid Color
24 = Solid Color
25 | Texture String
25 | Texture String
26− | Gradient Gradient
26+ | Grad Gradient
27
27
28-- The shape of the ends of a line.
28-- The shape of the ends of a line.
29data LineCap = Flat | Round | Padded
29data LineCap = Flat | Round | Padded
@@ -94,7 +94,7 @@ textured src shape = fill (Texture src) shape
94
94
95-- Fill a shape with a [gradient](/docs/Color.elm#linear).
95-- Fill a shape with a [gradient](/docs/Color.elm#linear).
96gradient : Gradient -> Shape -> Form
96gradient : Gradient -> Shape -> Form
97−gradient grad shape = fill (Gradient grad) shape
97+gradient grad shape = fill (Grad grad) shape
98
98
99-- Outline a shape with a given line style.
99-- Outline a shape with a given line style.
100outlined : LineStyle -> Shape -> Form
100outlined : LineStyle -> Shape -> Form
libraries/Graphics/Element.elm+1−1
@@ -16,7 +16,7 @@ import open Basics
16import Native.Utils as Native
16import Native.Utils as Native
17import open JavaScript
17import open JavaScript
18import List as List
18import List as List
19−import Color (Color)
19+import open Color
20import Maybe (Maybe, Just, Nothing)
20import Maybe (Maybe, Just, Nothing)
21
21
22type Properties = {
22type Properties = {
libraries/Graphics/Input.elm+2−1
@@ -1,7 +1,8 @@
1
1
2module Graphics.Input where
2module Graphics.Input where
3
3
4+import Basics (String)
4−import Signal (lift,dropRepeats)
5+import Signal (Signal,lift,dropRepeats)
5import Native.Graphics.Input as Native
6import Native.Graphics.Input as Native
6import List
7import List
7import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
8import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
libraries/Json.elm+3−3
@@ -3,8 +3,8 @@
3
3
4module Json where
4module Json where
5
5
6−import Dict (Dict)
6+import open Basics
7−import Dict as Dict
7+import Dict
8import Maybe (Maybe)
8import Maybe (Maybe)
9import JavaScript as JS
9import JavaScript as JS
10import Native.Json as Native
10import Native.Json as Native
@@ -19,7 +19,7 @@ data JsonValue
19 | Boolean Bool
19 | Boolean Bool
20 | Null
20 | Null
21 | Array [JsonValue]
21 | Array [JsonValue]
22− | Object (Dict String JsonValue)
22+ | Object (Dict.Dict String JsonValue)
23
23
24
24
25-- String Converters
25-- String Converters
libraries/Keyboard.elm+1
@@ -1,5 +1,6 @@
1module Keyboard where
1module Keyboard where
2
2
3+import Signal (Signal)
3import Native.Keyboard as Native
4import Native.Keyboard as Native
4
5
5-- Type alias to make it clearer what integers are supposed to represent
6-- Type alias to make it clearer what integers are supposed to represent
libraries/Mouse.elm+1
@@ -1,6 +1,7 @@
1
1
2module Mouse where
2module Mouse where
3
3
4+import Signal (Signal)
4import Native.Mouse as Native
5import Native.Mouse as Native
5
6
6-- The current mouse position.
7-- The current mouse position.
libraries/Random.elm+1
@@ -1,6 +1,7 @@
1
1
2module Random where
2module Random where
3
3
4+import Signal (Signal)
4import Native.Random as Native
5import Native.Random as Native
5
6
6-- Given a range from low to high and a signal of values, this produces
7-- Given a range from low to high and a signal of values, this produces
libraries/Text.elm+1
@@ -1,6 +1,7 @@
1
1
2module Text where
2module Text where
3
3
4+import open Basics
4import Color (Color)
5import Color (Color)
5import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
6import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
6import Maybe (Maybe)
7import Maybe (Maybe)
libraries/Touch.elm+1
@@ -2,6 +2,7 @@
2-- include gestures that would be useful for both games and web-pages.
2-- include gestures that would be useful for both games and web-pages.
3module Touch where
3module Touch where
4
4
5+import Signal (Signal)
5import Native.Touch as Native
6import Native.Touch as Native
6import Time (Time)
7import Time (Time)
7
8
libraries/WebSocket.elm+2
@@ -2,6 +2,8 @@
2-- standard requests like GET, POST, etc.
2-- standard requests like GET, POST, etc.
3module WebSocket where
3module WebSocket where
4
4
5+import Signal (Signal)
6+import Basics (String)
5import Native.WebSocket as Native
7import Native.WebSocket as Native
6
8
7-- Create a web-socket. The first argument is the URL of the desired
9-- Create a web-socket. The first argument is the URL of the desired
libraries/Window.elm+1
@@ -1,6 +1,7 @@
1
1
2module Window where
2module Window where
3
3
4+import Signal (Signal)
4import Native.Window as Native
5import Native.Window as Native
5
6
6-- The current dimensions of the window (i.e. the area viewable to the
7-- The current dimensions of the window (i.e. the area viewable to the