You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
I noticed that the following type declarations don't parse:
data Tree a = Tree a [Tree a]
data Point = Point (Number, Number)
Is there a way, then, to define data constructors that take arrays or tuples? It seems like the former can be hacked in just by defining a syntactically sugar-free synonym for [a]. Then we can write:
data Tree a = Tree a (List (Tree a))
However, I can't find any such synonym in the docs or examples.