Help, how to coerce an Int into a Number?

In the playground package, Number is defined as a type alias to Float: Playground - elm-playground 1.0.3

So you need a Float rather than an Int. In this case you could just change the type signature of printDown to be Float -> String -> Shape, or you could use the toFloat : Int -> Float function.

2 Likes