I am trying to import a Haskell module named Shapes from a file called surface (which compiles fine)
import qualified surface.Shapes as Shapes
surfaceImport :: Shape -> Float
surfaceImport (Circle _ r) = pi * r ^ 2
surfaceImport (Rectangle (Point x1 x2) (Point y1 y2)) = (abs $ x1 - x2) * (abs $ y1 - y2)
I am getting the following error when I try to compile this program
surfaceImport.hs:1:18: error: parse error on input `surface'
Failed, modules loaded: none.
The module I am trying to import is this
module Shapes
(
Point(..),
Shape(..),
surface,
nudge,
baseCircle,
baseRectangle
)
Thanks in advance where