@@ -732,7 +732,9 @@ apply_elab n args =
732checkPiGoal :: Name -> Elab' aux ()
732checkPiGoal :: Name -> Elab' aux ()
733checkPiGoal n
733checkPiGoal n
734 = do g <- goal
734 = do g <- goal
735− case g of
737+ case (normalise ctxt env g) of
736 Bind _ (Pi _ _ _) _ -> return ()
738 Bind _ (Pi _ _ _) _ -> return ()
737 _ -> do a <- getNameFrom (sMN 0 "__pargTy")
739 _ -> do a <- getNameFrom (sMN 0 "__pargTy")
738 b <- getNameFrom (sMN 0 "__pretTy")
740 b <- getNameFrom (sMN 0 "__pretTy")