I’m new here, so hello to everyone
I’ve been slowly going through the book and found myself confused by one of the excercises.
The only module I found (that seems to be fit for purpose) is ‘Data.Generic.Rep’.
I’ve tried using ‘from’ method, but the output does not match expected test results.
derive instance genericShape :: Generic Shape _ instance showShape :: Show Shape where show a = show $ from a
Am I even using the right ‘Generic’ module, and if yes, how would I go about reformatting the result?