@@ -2001,7 +2001,7 @@ elabDecls info ds = do mapM_ (elabDecl EAll info) ds
2002elabDecl :: ElabWhat -> ElabInfo -> PDecl -> Idris ()
2002elabDecl :: ElabWhat -> ElabInfo -> PDecl -> Idris ()
2003elabDecl what info d
2003elabDecl what info d
2004− = idrisCatch (elabDecl' what info d) (setAndReport)
2004+ = idrisCatch (withErrorReflection $ elabDecl' what info d) (setAndReport)
2006elabDecl' _ info (PFix _ _ _)
2006elabDecl' _ info (PFix _ _ _)
2007 = return () -- nothing to elaborate
2007 = return () -- nothing to elaborate