on master help sign in
be more precise when to emit a warning (still a workaround - fix involves to not parse the string)
commitd6d56348ee31e82652a6a0f1be83b2dd7aa71503 authorHannes Mehnert <hannes@mehnert.org> dateMon 13 May 2013, 11:29 (13 years ago) parentb51bbe2
1 file changed+4−3
src/Idris/AbsSyntax.hs+4−3
src/Idris/AbsSyntax.hs+4−3
@@ -270,10 +270,11 @@ iputStrLn s = do i <- getIState
270270 IdeSlave n ->
271271 case span (/=':') s of
272272 (fn, ':':rest) -> case span isDigit rest of
273− ([], ':':msg) -> iWarn (FC fn 0) msg
274− ([], msg) -> iWarn (FC fn 0) msg
273+ ([], ':':msg) -> write
274+ ([], msg) -> write
275275 (num, ':':msg) -> iWarn (FC fn (read num)) msg
276− _ -> liftIO $ putStrLn $ convSExp "write-string" s n
276+ _ -> write
277+ where write = liftIO $ putStrLn $ convSExp "write-string" s n
277278
278279iWarn :: FC -> String -> Idris ()
279280iWarn fc err = do i <- getIState