Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 1, 2017 12: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/87853ab4010c0b38786c82acdd5afc6a to your computer and use it in GitHub Desktop.
Save deque-blog/87853ab4010c0b38786c82acdd5afc6a to your computer and use it in GitHub Desktop.
-- Function which takes a Schema and returns a function Type
SchemaType : Schema -> Type
SchemaType [] = String
SchemaType (IntVar :: xs) = Int -> SchemaType xs
SchemaType (StrVar :: xs) = String -> SchemaType xs
SchemaType (_ :: xs) = SchemaType xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment