Skip to content

Commit

Permalink
fix haddock build
Browse files Browse the repository at this point in the history
  • Loading branch information
Péter Diviánszky committed Feb 29, 2016
1 parent 9c354f8 commit d8fb866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/LambdaCube/Compiler/CoreToIR.hs
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ mkEnv xs = {-trace_ ("mk " ++ show (length xs)) $ -} zipWith up [1..] xs

instance Up ExpTV where
up_ n i (ExpTV x xt vs) = error "up @ExpTV" --ExpTV (up_ n i x) (up_ n i xt) (up_ n i <$> vs)
used i (ExpTV x xt vs) = used i x || used i xt -- || any (used i) vs{-?-}
used i (ExpTV x xt vs) = used i x || used i xt -- -|| any (used i) vs{-?-}
fold = error "fold @ExpTV"
maxDB_ (ExpTV a b cs) = maxDB_ a <> maxDB_ b -- <> foldMap maxDB_ cs{-?-}
closedExp (ExpTV a b cs) = ExpTV (closedExp a) (closedExp b) cs
Expand Down
6 changes: 3 additions & 3 deletions src/LambdaCube/Compiler/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,8 @@ compileGuardTree ulend lend adts t = (\x -> traceD (" ! :" ++ ppShow x) x) $ g
guardNode v [w] e = case w of
PVar _ -> {-todo guardNode v (subst x v ws) $ -} varGuardNode 0 v e
PParens p -> guardNode v [p] e
ViewPat f (ParPat p) -> guardNode (f `SAppV` v) p {- $ guardNode v ws -} e
PCon (_, s) ps' -> GuardNode v s ps' {- $ guardNode v ws -} e
ViewPat f (ParPat p) -> guardNode (f `SAppV` v) p {- -$ guardNode v ws -} e
PCon (_, s) ps' -> GuardNode v s ps' {- -$ guardNode v ws -} e

varGuardNode v (SVar _ e) = substGT v e

Expand Down Expand Up @@ -990,7 +990,7 @@ compileFunAlts compilegt ds xs = dsInfo >>= \ge -> case xs of
: as
| (m, t) <- ms
-- , let ts = fst $ getParamsS $ up1 t
, let as = [ FunAlt m p $ Right {- $ SLam Hidden (Wildcard SType) $ up1 -} $ SLet m' e $ SVar mempty 0
, let as = [ FunAlt m p $ Right {- -$ SLam Hidden (Wildcard SType) $ up1 -} $ SLet m' e $ SVar mempty 0
| Instance n' i cstrs alts <- ds, n' == n
, Let m' ~Nothing e <- alts, m' == m
, let p = zip ((,) Hidden <$> ps) i ++ [((Hidden, Wildcard SType), PVar (mempty, ""))]
Expand Down

0 comments on commit d8fb866

Please sign in to comment.