@@ -204,37 +204,37 @@ collage : Int -> Int -> [Form] -> Element
204204collage = Native.Graphics.Collage.collage
205205
206206
207−type Path = [(number,number)]
207+type Path = [(Float,Float)]
208208
209209{-| Create a path that follows a sequence of points. -}
210−path : [(number,number)] -> Path
210+path : [(Float,Float)] -> Path
211211path ps = ps
212212
213213{-| Create a path along a given line segment. -}
214−segment : (number,number) -> (number,number) -> Path
214+segment : (Float,Float) -> (Float,Float) -> Path
215215segment p1 p2 = [p1,p2]
216216
217−type Shape = [(number,number)]
217+type Shape = [(Float,Float)]
218218
219219{-| Create an arbitrary polygon by specifying its corners in order.
220220`polygon` will automatically close all shapes, so the given list
221221of points does not need to start and end with the same position.
222222-}
223−polygon : [(number,number)] -> Shape
223+polygon : [(Float,Float)] -> Shape
224224polygon points = points
225225
226226{-| A rectangle with a given width and height. -}
227−rect : number -> number -> Shape
227+rect : Float -> Float -> Shape
228228rect w h = let hw = w/2
229229 hh = h/2
230230 in [ (0-hw,0-hh), (0-hw,hh), (hw,hh), (hw,0-hh) ]
231231
232232{-| A square with a given edge length. -}
233−square : number -> Shape
233+square : Float -> Shape
234234square n = rect n n
235235
236236{-| An oval with a given width and height. -}
237−oval : number -> number -> Shape
237+oval : Float -> Float -> Shape
238238oval w h =
239239 let n = 50
240240 t = 2 * pi / n
@@ -244,7 +244,7 @@ oval w h =
244244 in List.map f [0..n-1]
245245
246246{-| A circle with a given radius. -}
247−circle : number -> Shape
247+circle : Float -> Shape
248248circle r = oval (2*r) (2*r)
249249
250250{-| A regular polygon with N sides. The first argument specifies the number
@@ -253,7 +253,7 @@ of sides and the second is the radius. So to create a pentagon with radius
253253
254254 ngon 5 30
255255-}
256−ngon : Int -> number -> Shape
256+ngon : Int -> Float -> Shape
257257ngon n r =
258258 let m = toFloat n
259259 t = 2 * pi / m