Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/Shape.hs

Last active Sep 10, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.