@@ -207,11 +207,12 @@ elabCon info syn tn (n, t_in, fc)
207207 mapM_ (elabCaseBlock info) is
208208 ctxt <- getContext
209209 (cty, _) <- recheckC fc [] t'
210− tyIs cty
211− logLvl 2 $ "---> " ++ show n ++ " : " ++ show cty
210+ let cty' = normaliseC ctxt [] cty
211+ tyIs cty'
212+ logLvl 2 $ "---> " ++ show n ++ " : " ++ show cty'
212213 addIBC (IBCDef n)
213− forceArgs n cty
214− return (n, cty)
214+ forceArgs n cty'
215+ return (n, cty')
215216 where
216217 tyIs (Bind n b sc) = tyIs sc
217218 tyIs t | (P _ n' _, _) <- unApply t
@@ -801,6 +802,7 @@ decorateid decorate (PClauses f o n cs)
801802 dappname (PApp fc (PRef fc' n) as) = PApp fc (PRef fc' (decorate n)) as
802803 dappname t = t
803804
805+
804806pbinds (Bind n (PVar t) sc) = do attack; patbind n
805807 pbinds sc
806808pbinds tm = return ()
@@ -862,7 +864,6 @@ elabDecl' info (PDSL n dsl)
862864 = do i <- get
863865 put (i { idris_dsls = addDef n dsl (idris_dsls i) })
864866 addIBC (IBCDSL n)
865−
866867elabDecl' info (PDirective i) = i
867868
868869elabCaseBlock info d@(PClauses f o n ps)