ref: 1b99562a5aeb6a360c9a45aa83cf2739607cffd4
parent: b926e7cec8da4e1a8db81866840a9783e146f285
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Dec 8 12:36:38 EST 2023
Slightly less buggy parser
--- a/lib/Data/Complex.hs
+++ b/lib/Data/Complex.hs
@@ -6,7 +6,7 @@
data Complex a = !a :+ !a
instance forall a . Eq a => Eq (Complex a) where
- (:+) x y == (:+) x' y' = x == x' && y == y' -- parser bug
+ (x :+ y) == (x' :+ y') = x == x' && y == y' -- parser bug
instance forall a . Show a => Show (Complex a) where
show (x :+ y) = show x ++ " :+ " ++ show y
--
⑨