lukexi / halive

Live recompiler for Haskell
BSD 2-Clause "Simplified" License
263 stars 18 forks source link

errors are printed twice #4

Closed gelisam closed 9 years ago

gelisam commented 9 years ago
$ cat src/Main.hs
main :: IO ()
main = putStrLn "incomplete string
$ halive src/Main.hs src/
██╗  ██╗ █████╗ ██╗     ██╗██╗   ██╗███████╗
██║  ██║██╔══██╗██║     ██║██║   ██║██╔════╝
███████║███████║██║     ██║██║   ██║█████╗  
██╔══██║██╔══██║██║     ██║╚██╗ ██╔╝██╔══╝  
██║  ██║██║  ██║███████╗██║ ╚████╔╝ ███████╗
╚═╝  ╚═╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝  ╚══════╝
                  engaged

src/Main.hs:2:35:
    lexical error in string/character literal at character '\n'

src/Main.hs:2:35:
    lexical error in string/character literal at character '\n'

This is important to me because I usually want to focus on the first error, which is now twice as far back in the history (I have a simple custom patch which prints "===" between runs so I can see where the first error is)

lukexi commented 9 years ago

Thanks, that's annoying me too! I'll get it sorted.

lukexi commented 9 years ago

Let me know if that does the trick for you too!