[Haskell-beginners] help me with eroor

kolli kolli nammukolli04 at gmail.com
Fri Oct 14 22:49:04 CEST 2011


namratha at ubuntu:~/Desktop$ runghc Main.hs

<interactive>:1:32: Not in scope: `main'



On Fri, Oct 14, 2011 at 2:45 PM, kolli kolli <nammukolli04 at gmail.com> wrote:

> I am using ubuntu..i am running it in the terminal window....
>
>
> On Fri, Oct 14, 2011 at 2:36 PM, Daniel Fischer <
> daniel.is.fischer at googlemail.com> wrote:
>
>> On Friday 14 October 2011, 22:26:45, you wrote:
>> > i gave
>> > module Main(csvFile, line) where
>> > import Text.ParserCombinators.Parsec
>> >
>> > csvFile = endBy line eol
>> > line = sepBy cell (char ',')
>> > cell = many (noneOf ",\n")
>> > eol = char '\n'
>> >
>> > parseCSV :: String -> Either ParseError [[String]]
>> > parseCSV input = parse csvFile "(unknown)" input
>> >
>> > its giving me the same error
>>
>> Did you try to run main from the ghci prompt?
>> The file loads without problems here.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111014/c45b8434/attachment.htm>


More information about the Beginners mailing list