summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-05-12 01:38:21 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-05-12 01:38:21 +0200
commit9c3e2fee74ae5ae9885aff40154ec4c1db04a646 (patch)
treeb90c13160235feb48a54167854475a4b9f804440 /src
parent25c580d8772e2626c4bcb4988e43450ba9bf9d16 (diff)
fix coverage test
Diffstat (limited to 'src')
-rw-r--r--src/LambdaCube/Compiler/Core.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LambdaCube/Compiler/Core.hs b/src/LambdaCube/Compiler/Core.hs
index b10f6de9..809a8d9c 100644
--- a/src/LambdaCube/Compiler/Core.hs
+++ b/src/LambdaCube/Compiler/Core.hs
@@ -252,14 +252,14 @@ mkFun :: FunName -> [Exp] -> Exp -> Exp
252mkFun f xs e = mkFun_ (foldMap getFreeVars xs) f xs e 252mkFun f xs e = mkFun_ (foldMap getFreeVars xs) f xs e
253 253
254pattern ReducedN y <- Fun _ _ (RHS y) 254pattern ReducedN y <- Fun _ _ (RHS y)
255pattern Reduced y <- (reduce -> Just y) 255pattern Reduced y <- Neut (ReducedN y)
256 256{-
257-- TODO: too much hnf call 257-- TODO: too much hnf call
258reduce (Neut (ReducedN y)) = Just $ hnf y 258reduce (Neut (ReducedN y)) = Just $ hnf y
259reduce (SubstLet x) = Just $ hnf x 259reduce (SubstLet x) = Just $ hnf x
260reduce _ = Nothing 260reduce _ = Nothing
261 261-}
262hnf (reduce -> Just y) = y 262hnf (Reduced y) = y
263hnf a = a 263hnf a = a
264 264
265outputType = tTyCon0 FOutput $ error "cs 9" 265outputType = tTyCon0 FOutput $ error "cs 9"