on master help sign in
Fix IDESlave reporting of ProofSearchFail
commit723d972b2609ad78d3d870ace125192b08128f49 authorDavid Raymond Christiansen <david@davidchristiansen.dk> dateFri 23 May 2014, 21:17 (12 years ago) parentb664815
1 file changed+4−2
src/Idris/Error.hs+4−2
src/Idris/Error.hs+4−2
@@ -43,11 +43,13 @@ idrisCatch = catchError
4343setAndReport :: Err -> Idris ()
4444setAndReport e = do ist <- getIState
4545 let h = idris_outh ist
46− case e of
46+ case (e) of
4747 At fc e -> do setErrSpan fc
4848 ihWarn h fc $ pprintErr ist e
4949 _ -> do setErrSpan (getErrSpan e)
50− ihputStrLn h $ pshow ist e
50+ ihWarn h emptyFC $ pprintErr ist e
51+ where unwrap (ProofSearchFail e) = e -- remove bookkeeping constructor
52+ unwrap e = e
5153
5254ifail :: String -> Idris a
5355ifail = throwError . Msg