@@ -92,7 +92,7 @@ elabPostulate info syn doc fc opts n ty
92 [] -> tclift $ tfail $ (At fc (NoTypeDecl n)) -- can't happen!
92 [] -> tclift $ tfail $ (At fc (NoTypeDecl n)) -- can't happen!
93 [ty] -> return ty
93 [ty] -> return ty
94 ist <- getIState
94 ist <- getIState
95− let (ap, _) = unApply (getRetTy fty)
95+ let (ap, _) = unApply (getRetTy (normalise ctxt [] fty))
96 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
96 logLvl 5 $ "Checking collapsibility of " ++ show (ap, fty)
97 let postOK = case ap of
97 let postOK = case ap of
98 P _ tn _ -> case lookupCtxt Nothing tn
98 P _ tn _ -> case lookupCtxt Nothing tn