Skip to content

Instantly share code, notes, and snippets.



Last active Sep 1, 2017
What would you like to do?
-- 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