Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 10, 2017 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/eac8f177bf9731bb696d2d09db89afe1 to your computer and use it in GitHub Desktop.
Save deque-blog/eac8f177bf9731bb696d2d09db89afe1 to your computer and use it in GitHub Desktop.
newtype Shape coord = Shape { -- A shape templated on any type of coordinate
isInShape :: coord -> Bool -- Contains a function from a coordinate to a boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment