I've just began using haskell.. I tried to run a sample script:
import Data.List
module main where
mylength = foldr (const (+1)) 0
main = print (mylength "haskell")
I get a simple error "modules loaded, none." I have zero idea why this is happening. I'm using GHCi under win7 32bit (if that matters). Am I missing something here? the example doesn't even include the "module main where" but even without that it fails to run.