[Haskell-cafe] Badly designed Parsec combinators?
Bulat Ziganshin
bulatz at HotPOP.com
Sun Feb 12 09:44:37 EST 2006
Hello Juan,
Sunday, February 12, 2006, 5:22:46 PM, you wrote:
JCAB> The only programs it would break are those that specify it at the end
JCAB> (they'd require an extra "return ()", right?
JCAB> This brings me to wonder also if it'd be possible for the compilers
JCAB> to add a little bit more smarts to the "do" notation syntax, so that
JCAB> it'll add the return () at the end if it's missing
... and break code like this:
readFile name = do h <- openFile name
hGetContents h
--
Best regards,
Bulat mailto:bulatz at HotPOP.com
More information about the Haskell-Cafe
mailing list