[Haskell-cafe] Compiler error in Parsec using ByteString

2013-05-18 Thread mukesh tiwari
Hello all, I am trying to write a small calculator using Parsec. Every thing went fine and I wrote this [1] and now I am trying to use ByteString to make it more faster but getting compiler error which I am not able to figure out. Could some one please tell me what is wrong with this code. In case

Re: [Haskell-cafe] Compiler error in Parsec using ByteString

2013-05-18 Thread Roman Cheplyaka
Hi, General advice here is to put type signatures for all non-trivial definitions. This way you can see exactly where compiler and you disagree on what the type of something should be. In this particular case, by following the above recipe, I see that one problem is that `emptyDef` has type

Re: [Haskell-cafe] Compiler error in Parsec using ByteString

2013-05-18 Thread mukesh tiwari
Hi Roman, Thank you. Now I can see what was going under the hood. I was passing the ByteString and functions were expecting String. Working solution using ByteString[1] Regards, Mukesh Tiwari [1] http://hpaste.org/88156 On Sat, May 18, 2013 at 6:16 PM, Roman Cheplyaka r...@ro-che.info wrote: