I'm new to haskell, and I'm trying to play around with some modules. I wrote this very basic module:
module Cube
(
cubeArea
) where
cubeArea :: Float -> Float
cubeArea sideSize = sideSize * sideSize * sideSize
in a file named "Cube.hs".
Then, I opened ghci in the cmd in the same folder the Cube.hs is.
Now, when I type import Cube.hs, I get this error:
:26:8: error: parse error on input `Cube.hs'
Any idea why?
:l Cube.hsto load a source file. - arrowdimporttakes a module name, not a file name - chi