module Triangle (TriangleType(..), triangleType) where data TriangleType = Equilateral | Isosceles | Scalene | Illegal deriving (Eq, Show) triangleType = error "You need to implement this function."