Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exercises/typeclasses/Typeclasses5.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ data Person = Person String String Int
data Point3 = Point3 Int Int Int
deriving (Show, Read, Eq)

-- logObject (Point3 3 4 5) "Test.hs" -> "Calculated 'Point 3 4 5' from input file Test.hs"
-- compareFromEntry (Point3 3 4 5) (Point3 3 4 5)
-- logObject (Point3 3 4 5) "Test.hs" -> "Calculated 'Point3 3 4 5' from input file Test.hs"
-- compareFromEntry "Point3 3 4 5" (Point3 3 4 5)
-- -> (True, "New Point calculation matches.")
-- compareFromEntry (Point3 3 4 5) (Point3 3 4 5)
-- compareFromEntry "Point3 3 4 5" (Point3 6 8 10)
-- -> (False, "New Point calculation does not match previous.")

-- Fill in this function as a generalization of compareFromEntry
Expand Down