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.
This commit is contained in:
		
							parent
							
								
									0373e06c02
								
							
						
					
					
						commit
						14997bc1a3
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -334,6 +334,7 @@ data Corner
 | 
				
			||||||
  | BottomLeft
 | 
					  | BottomLeft
 | 
				
			||||||
  | BottomRight
 | 
					  | BottomRight
 | 
				
			||||||
  deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
 | 
					  deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
 | 
				
			||||||
 | 
					  deriving Arbitrary via GenericArbitrary Corner
 | 
				
			||||||
 | 
					
 | 
				
			||||||
instance Opposite Corner where
 | 
					instance Opposite Corner where
 | 
				
			||||||
  opposite TopLeft = BottomRight
 | 
					  opposite TopLeft = BottomRight
 | 
				
			||||||
| 
						 | 
					@ -347,6 +348,7 @@ data Edge
 | 
				
			||||||
  | RightEdge
 | 
					  | RightEdge
 | 
				
			||||||
  | BottomEdge
 | 
					  | BottomEdge
 | 
				
			||||||
  deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
 | 
					  deriving stock (Show, Eq, Ord, Enum, Bounded, Generic)
 | 
				
			||||||
 | 
					  deriving Arbitrary via GenericArbitrary Edge
 | 
				
			||||||
 | 
					
 | 
				
			||||||
instance Opposite Edge where
 | 
					instance Opposite Edge where
 | 
				
			||||||
  opposite TopEdge = BottomEdge
 | 
					  opposite TopEdge = BottomEdge
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -57,14 +57,14 @@ test = testGroup "Xanthous.Data"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  , testGroup "Corner"
 | 
					  , testGroup "Corner"
 | 
				
			||||||
    [ testGroup "instance Opposite"
 | 
					    [ testGroup "instance Opposite"
 | 
				
			||||||
      [ testProperty "involutive" $ \corner ->
 | 
					      [ testProperty "involutive" $ \(corner :: Corner) ->
 | 
				
			||||||
          opposite (opposite corner) === corner
 | 
					          opposite (opposite corner) === corner
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  , testGroup "Edge"
 | 
					  , testGroup "Edge"
 | 
				
			||||||
    [ testGroup "instance Opposite"
 | 
					    [ testGroup "instance Opposite"
 | 
				
			||||||
      [ testProperty "involutive" $ \edge ->
 | 
					      [ testProperty "involutive" $ \(edge :: Edge) ->
 | 
				
			||||||
          opposite (opposite edge) === edge
 | 
					          opposite (opposite edge) === edge
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue