about summary refs log tree commit diff
path: root/src/Xanthous
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-12-31T16·28-0500
committerGriffin Smith <root@gws.fyi>2019-12-31T16·28-0500
commit14997bc1a3501cb3b759dc6dff7a2604deb6648b (patch)
tree26b062cf223679a587b1a7dbe3d36c5018f79003 /src/Xanthous
parent0373e06c02d16a30e1cc39da9962618c066d14e7 (diff)
Fix ambiguity error in Opposite tests
For some reason cabal wasn't properly recompiling this file locally to
pick up the introduction of an ambiguity error.
Diffstat (limited to 'src/Xanthous')
-rw-r--r--src/Xanthous/Data.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Xanthous/Data.hs b/src/Xanthous/Data.hs
index 8a8a62d0ee08..5e451695825f 100644
--- a/src/Xanthous/Data.hs
+++ b/src/Xanthous/Data.hs
@@ -334,6 +334,7 @@ data Corner
   | BottomLeft
   | BottomRight
   deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
+  deriving Arbitrary via GenericArbitrary Corner
 
 instance Opposite Corner where
   opposite TopLeft = BottomRight
@@ -347,6 +348,7 @@ data Edge
   | RightEdge
   | BottomEdge
   deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
+  deriving Arbitrary via GenericArbitrary Edge
 
 instance Opposite Edge where
   opposite TopEdge = BottomEdge