Last active
September 1, 2017 12:31
-
-
Save deque-blog/87853ab4010c0b38786c82acdd5afc6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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