j
k
j a
j l
...type Point = (Int, Int)
type Point = (Int, Int)
2. using "type" (instead of "data") is generally a bad idea.
and in this case, using "data Point ..." would allow to define a "smart constructor" that can at least check at run-time whether the bounds are met. - J.W.
Attachments:
Back to the thread
Back to the list