[Haskell-beginners] strange behavior (SOLVED)

Luca Ciciriello luca_ciciriello at hotmail.com
Wed Jun 16 10:48:25 EDT 2010

Hi Daniel.
I solved the question writing a little function that remove from the input file all the \r chars and all the \n chars. So your first intuition seems be correct.



On Jun 16, 2010, at 3:51 PM, Daniel Fischer wrote:

> On Wednesday 16 June 2010 15:34:15, Luca Ciciriello wrote:
>> Hi All.
>> I'm experimenting a strange behavior. I've wrote in Haskell a tool to
>> automatic generate C++ code. All works fine if I use GHCi or compile
>> with GHC on WIndows, but I see the strange behavior if I use my program
>> on MacOS X 10.6.4
>> Any idea?
> Does snd (makePair x) contain an '\r' character?
> That would explain it.
>> Luca

More information about the Beginners mailing list