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

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



On Fri, Oct 14, 2011 at 2:45 PM, kolli kolli <nammukolli04@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@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.