Skip to content

Instantly share code, notes, and snippets.

@hughfdjackson
Created June 22, 2014 01:24
Show Gist options
  • Select an option

  • Save hughfdjackson/786ac3d2919fb0f46045 to your computer and use it in GitHub Desktop.

Select an option

Save hughfdjackson/786ac3d2919fb0f46045 to your computer and use it in GitHub Desktop.
data Acceptable = Xable { x: Int } | Yable { y: Int }
list : [Acceptable]
list = [Xable { x = 10 }, Yable { y = 10 }]
main = asText list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment