diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-24 15:58:19 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-24 15:58:19 +0200 |
commit | 2fcc441833425f2e013c43fbfd90e0ef2cb67422 (patch) | |
tree | 1d657119ff03f35bde799d9e22c8d7789fdaa1db /src | |
parent | 45981b9a6233df6f53680f6011159ce2631e93da (diff) |
refactoring; add hnf marks
Diffstat (limited to 'src')
-rw-r--r-- | src/LambdaCube/Compiler/Core.hs | 2 | ||||
-rw-r--r-- | src/LambdaCube/Compiler/Pretty.hs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/LambdaCube/Compiler/Core.hs b/src/LambdaCube/Compiler/Core.hs index 6446aeb2..b6a1c1c4 100644 --- a/src/LambdaCube/Compiler/Core.hs +++ b/src/LambdaCube/Compiler/Core.hs | |||
@@ -192,7 +192,7 @@ delta = ELit (LString "<<delta function>>") -- TODO: build an error call | |||
192 | 192 | ||
193 | pattern TConstraint <- TTyCon0 F'Constraint where TConstraint = tTyCon0 F'Constraint $ error "cs 1" | 193 | pattern TConstraint <- TTyCon0 F'Constraint where TConstraint = tTyCon0 F'Constraint $ error "cs 1" |
194 | pattern Unit <- TTyCon0 F'Unit where Unit = tTyCon0 F'Unit [Unit] | 194 | pattern Unit <- TTyCon0 F'Unit where Unit = tTyCon0 F'Unit [Unit] |
195 | pattern TInt <- TTyCon0 F'Int --where TInt = tTyCon0 F'Int $ error "cs 1" | 195 | pattern TInt <- TTyCon0 F'Int where TInt = tTyCon0 F'Int $ error "cs 1" |
196 | pattern TNat <- TTyCon0 F'Nat where TNat = tTyCon0 F'Nat $ error "cs 3" | 196 | pattern TNat <- TTyCon0 F'Nat where TNat = tTyCon0 F'Nat $ error "cs 3" |
197 | pattern TBool <- TTyCon0 F'Bool where TBool = tTyCon0 F'Bool $ error "cs 4" | 197 | pattern TBool <- TTyCon0 F'Bool where TBool = tTyCon0 F'Bool $ error "cs 4" |
198 | pattern TFloat <- TTyCon0 F'Float where TFloat = tTyCon0 F'Float $ error "cs 5" | 198 | pattern TFloat <- TTyCon0 F'Float where TFloat = tTyCon0 F'Float $ error "cs 5" |
diff --git a/src/LambdaCube/Compiler/Pretty.hs b/src/LambdaCube/Compiler/Pretty.hs index a357a9eb..12964b6b 100644 --- a/src/LambdaCube/Compiler/Pretty.hs +++ b/src/LambdaCube/Compiler/Pretty.hs | |||
@@ -280,6 +280,7 @@ isOpName _ = False | |||
280 | red = DFormat P.dullred | 280 | red = DFormat P.dullred |
281 | green = DFormat P.dullgreen | 281 | green = DFormat P.dullgreen |
282 | blue = DFormat P.dullblue | 282 | blue = DFormat P.dullblue |
283 | white = DFormat P.white | ||
283 | onred = DFormat P.ondullred | 284 | onred = DFormat P.ondullred |
284 | ongreen = DFormat P.ondullgreen | 285 | ongreen = DFormat P.ondullgreen |
285 | onblue = DFormat P.ondullblue | 286 | onblue = DFormat P.ondullblue |