@@ -207,11 +207,12 @@ elabCon info syn tn (n, t_in, fc)
207 mapM_ (elabCaseBlock info) is
207 mapM_ (elabCaseBlock info) is
208 ctxt <- getContext
208 ctxt <- getContext
209 (cty, _) <- recheckC fc [] t'
209 (cty, _) <- recheckC fc [] t'
210+ let cty' = normaliseC ctxt [] cty
210− tyIs cty
211+ tyIs cty'
211− logLvl 2 $ "---> " ++ show n ++ " : " ++ show cty
212+ logLvl 2 $ "---> " ++ show n ++ " : " ++ show cty'
212 addIBC (IBCDef n)
213 addIBC (IBCDef n)
213− forceArgs n cty
214+ forceArgs n cty'
214− return (n, cty)
215+ return (n, cty')
216 tyIs (Bind n b sc) = tyIs sc
217 tyIs (Bind n b sc) = tyIs sc
217 tyIs t | (P _ n' _, _) <- unApply t
218 tyIs t | (P _ n' _, _) <- unApply t
@@ -801,6 +802,7 @@ decorateid decorate (PClauses f o n cs)
801 dappname (PApp fc (PRef fc' n) as) = PApp fc (PRef fc' (decorate n)) as
802 dappname (PApp fc (PRef fc' n) as) = PApp fc (PRef fc' (decorate n)) as
802 dappname t = t
803 dappname t = t
804pbinds (Bind n (PVar t) sc) = do attack; patbind n
806pbinds (Bind n (PVar t) sc) = do attack; patbind n
805 pbinds sc
807 pbinds sc
806pbinds tm = return ()
808pbinds tm = return ()
@@ -862,7 +864,6 @@ elabDecl' info (PDSL n dsl)
862 = do i <- get
864 = do i <- get
863 put (i { idris_dsls = addDef n dsl (idris_dsls i) })
865 put (i { idris_dsls = addDef n dsl (idris_dsls i) })
864 addIBC (IBCDSL n)
866 addIBC (IBCDSL n)
866elabDecl' info (PDirective i) = i
867elabDecl' info (PDirective i) = i
868elabCaseBlock info d@(PClauses f o n ps)
869elabCaseBlock info d@(PClauses f o n ps)