Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 4f704f5f45
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.306 kB
module Compiler (compile) where
import KNormal
import PatternMatching
import Syntax
import TypeInference
compile :: Expr -> Either String KExpr
compile expr = case typeOfExpression emptyEnv expr of
Left er -> Left er
Right _ -> Right . convertToKNormal . compilePatternMatching $ expr
Jump to Line
Something went wrong with that request. Please try again.