Question: Explain why we derive the instance from typeclass Eq. data Person = Person { firstName :: String , lastName :: String , age :: Int
Explain why we derive the instance from typeclass Eq.
data Person = Person { firstName :: String
, lastName :: String
, age :: Int
} deriving (Eq)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
