1
votes

I'm really new to haskell, and I'm having a problem importing any modules whatsoever.

When I load an .hs file that contains nothing but

import Data.list

it gives me an error of

file.hs:1:8: parse error on input Data.list

I know I must be making a really basic error somewhere, because imports seem to be working for everyone else, even in all the tutorials. Is it because I've changed my directory with :cd? Or is it how my GHCi was downloaded?

2
These are perfect questions for #haskell on IRCJonathan Fischoff

2 Answers

6
votes

Modules start with capital letters

 import Data.List
3
votes

Module names are capitalized.

Capitalize the word "List".

import Data.List