[Haskell-cafe] parsing a CSV file

Roger Mason rmason at mun.ca
Tue May 21 20:09:14 CEST 2013


Thank you.

Roger

On 05/21/2013 03:15 PM, Roman Cheplyaka wrote:
> So this is the real error. If you read it carefully, it says that it 
> expected [[String]] but got [[[[Char]]]] (i.e. [[[String]]]) as a 
> result of the headerLines parser. I don't have time right now to look 
> closer at your code, but I suggest studying the types of combinators 
> you use (such as endBy) and trying to write down type signatures for 
> the rest of the values you define. This way you'll find the error and 
> better understand your program. A useful trick is to start ghci with 
> -fdefer-type-errors and use ":t" to inspect types of various 
> expressions that you encounter. Roman 


This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php



More information about the Haskell-Cafe mailing list