@@ -7,7 +7,7 @@ import Either
77import Native.Matrix2D as Matrix
88import Native.Graphics.Collage as N
99import Graphics.Element
10−import Color as Color
10+import Color
1111
1212type Form = {
1313 theta : Float,
@@ -53,7 +53,7 @@ defaultLine = {
5353 cap = Flat,
5454 join = Sharp 10,
5555 dashing = [],
56− dashOffset = 0,
56+ dashOffset = 0
5757 }
5858
5959-- Create a solid line style with a given color.
@@ -73,11 +73,11 @@ data BasicForm
7373 | FShape (Either LineStyle FillStyle) Shape
7474 | FImage Int Int (Int,Int) String
7575 | FElement Element
76− | FGroup Matrix [Form]
76+ | FGroup Matrix2D [Form]
7777
7878form f = { theta = 0, scale = 1, x = 0, y = 0, form = f }
7979
80−fill style shape = form (FShape (Right style) shape)
80+fill style shape = form (FShape (Either.Right style) shape)
8181
8282-- Create a filled in shape.
8383filled : Color -> Shape -> Form
@@ -94,7 +94,7 @@ gradient grad shape = fill (Gradient grad) shape
9494
9595-- Outline a shape with a given line style.
9696outlined : LineStyle -> Shape -> Form
97−outlined style shape = form (FShape (Left style) shape)
97+outlined style shape = form (FShape (Either.Left style) shape)
9898
9999-- Trace a path with a given line style.
100100traced : LineStyle -> Path -> Form
@@ -186,7 +186,7 @@ oval w h =
186186 hw = w/2
187187 hh = h/2
188188 f i = (hw * Math.cos (t*i), hh * Math.sin (t*i))
189− in map f [0..n-1]
189+ in List.map f [0..n-1]
190190
191191-- A circle with a given radius.
192192circle : Number a -> Shape
@@ -202,4 +202,4 @@ ngon n r =
202202 let m = toFloat n
203203 t = 2 * Math.PI / m
204204 f i = ( r * Math.cos (t*i), r * Math.sin (t*i) )
205− in map f [0..n-1]
205+ in List.map f [0..n-1]