tag:blogger.com,1999:blog-10770855.post6067435233168380177..comments2024-03-28T03:20:57.393-04:00Comments on The Little Calculist: Some tools just don't like each otherDave Hermanhttp://www.blogger.com/profile/00405190527081772997noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-10770855.post-27507206597054208422008-03-24T00:59:00.000-04:002008-03-24T00:59:00.000-04:00Watch out. You're just begging for an emacs/vi fla...Watch out. You're just begging for an emacs/vi flame war. Any little thing will set them off :)<BR/><BR/>Great post though. Hope you're doing well.<BR/><BR/>-mikeMike Machenryhttps://www.blogger.com/profile/17140920605069407368noreply@blogger.comtag:blogger.com,1999:blog-10770855.post-68876809983986184802008-03-23T23:29:00.000-04:002008-03-23T23:29:00.000-04:00Yeah, use cpphs. Actually, I think it's quite idio...Yeah, use <A HREF="http://www.cs.york.ac.uk/fp/cpphs/" REL="nofollow">cpphs</A>. Actually, I think it's quite idiomatic to use ++, unwords, unlines, etc.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10770855.post-75639857340266324432008-03-23T21:03:00.000-04:002008-03-23T21:03:00.000-04:00I blame your text editor. *hem*P!I blame your text editor. *hem*<BR/><BR/>P!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10770855.post-43218103710417180432008-03-23T20:18:00.000-04:002008-03-23T20:18:00.000-04:00I've gotten bitten by this stuff when trying to co...I've gotten bitten by this stuff when trying to compile Haskell libraries with multi-line string literals (I can't imagine writing such a thing myself).<BR/><BR/>My solution, IIRC, was to turn the strings into lists of strings that were concat'd.<BR/><BR/>Despite its deprecation, I've seen lots of Haskell code that uses cpp, mostly for conditional compilation.<BR/><BR/>-- PaulPaul Stecklerhttps://www.blogger.com/profile/13416750891822431224noreply@blogger.comtag:blogger.com,1999:blog-10770855.post-18542188165277953142008-03-23T16:48:00.000-04:002008-03-23T16:48:00.000-04:00Oh, fun! I encountered a problem similar to this ...Oh, fun! <BR/><BR/>I encountered a problem similar to this in earlier versions of <A HREF="http://www.neilvandyke.org/quack/" REL="nofollow">Quack</A>. With this bug (since fixed), Quack treated the pipe character as whitespace. So, if you commented out a bunch of PLT Scheme code by putting #| ... |# around it, and if the comment opener was the last thing on its line, Quack and Emacs would delete the pipe, and your comment was suddenly a syntax error!<BR/><BR/>I got around this by adapting the <A HREF="http://catb.org/jargon/html/L/line-eater--the.html" REL="nofollow">line eater food</A> strategy and putting some random stuff after the pipe so that it was no longer trailing whitespace. If GHC allows non-whitespace chars between the backslashes, you can do something similar. It's an annoying, crufty workaround, but it gets you past the original problem.Richard Cobbehttps://www.blogger.com/profile/14142695225678191312noreply@blogger.com