[Haskell-cafe] stack on Windows and C Preprocessor

Jeremy O'Donoghue jeremy.odonoghue at gmail.com
Tue Dec 20 22:38:34 UTC 2016

C preprocessor on Windows expects \n\r as line ending, so what you think is a line break is being treated as a single line by CPP.

Run your file through a unix to dos file tool or configure your version control system to retrieve files in local format.


Sent from my iPhone

> On 20 Dec 2016, at 10:44, Olaf Klinke <olf at aatal-apotheke.de> wrote:
> Dear Cafe, 
> not sure who the culprit is, thus trying on this list: 
> My project builds fine with stack on Linux. I installed the latest (1.3.0 x86_64) stack on a Windows box and ran 'stack.exe setup' inside my project's directory. The build fails at the depencency HaXml-1.25.3 with a lexer error on line 34 of this file:
> http://hackage.haskell.org/package/HaXml-1.25.3/docs/src/Text-XML-HaXml-Wrappers.html
> lexical error in string/character literal at character '\r'
> It seems the line (VERSION) is processed by the C preprocessor which somehow messes it up. Unfortunately, stack deletes its temporary files after running into the error, which deprives me of handles to further debug this. Does anyone have an idea how to continue from here?
> Thanks, Olaf
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.

More information about the Haskell-Cafe mailing list