Closed
Description
As title. The following code produces parse errors if you hit tab after the last line:
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
So does this code:
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
But this code doesn't produce a parse error (though the tab stop produced is a little odd)
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
Same with all of these code samples:
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
main :: IO ()
main = do
putStrLn "\
\foo\
\bar"
All the examples above are compiled by GHC without complaint.