summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-24 15:58:19 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-24 15:58:19 +0200
commit2fcc441833425f2e013c43fbfd90e0ef2cb67422 (patch)
tree1d657119ff03f35bde799d9e22c8d7789fdaa1db /src
parent45981b9a6233df6f53680f6011159ce2631e93da (diff)
refactoring; add hnf marks
Diffstat (limited to 'src')
-rw-r--r--src/LambdaCube/Compiler/Core.hs2
-rw-r--r--src/LambdaCube/Compiler/Pretty.hs1
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
193pattern TConstraint <- TTyCon0 F'Constraint where TConstraint = tTyCon0 F'Constraint $ error "cs 1" 193pattern TConstraint <- TTyCon0 F'Constraint where TConstraint = tTyCon0 F'Constraint $ error "cs 1"
194pattern Unit <- TTyCon0 F'Unit where Unit = tTyCon0 F'Unit [Unit] 194pattern Unit <- TTyCon0 F'Unit where Unit = tTyCon0 F'Unit [Unit]
195pattern TInt <- TTyCon0 F'Int --where TInt = tTyCon0 F'Int $ error "cs 1" 195pattern TInt <- TTyCon0 F'Int where TInt = tTyCon0 F'Int $ error "cs 1"
196pattern TNat <- TTyCon0 F'Nat where TNat = tTyCon0 F'Nat $ error "cs 3" 196pattern TNat <- TTyCon0 F'Nat where TNat = tTyCon0 F'Nat $ error "cs 3"
197pattern TBool <- TTyCon0 F'Bool where TBool = tTyCon0 F'Bool $ error "cs 4" 197pattern TBool <- TTyCon0 F'Bool where TBool = tTyCon0 F'Bool $ error "cs 4"
198pattern TFloat <- TTyCon0 F'Float where TFloat = tTyCon0 F'Float $ error "cs 5" 198pattern 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
280red = DFormat P.dullred 280red = DFormat P.dullred
281green = DFormat P.dullgreen 281green = DFormat P.dullgreen
282blue = DFormat P.dullblue 282blue = DFormat P.dullblue
283white = DFormat P.white
283onred = DFormat P.ondullred 284onred = DFormat P.ondullred
284ongreen = DFormat P.ondullgreen 285ongreen = DFormat P.ondullgreen
285onblue = DFormat P.ondullblue 286onblue = DFormat P.ondullblue