fix build with old ghc
And add missing (unused) mappend instance
This commit is contained in:
		
					parent
					
						
							
								0b24c0837a
							
						
					
				
			
			
				commit
				
					
						d91eb24b59
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -11,6 +11,8 @@ module Types.Test where | ||||||
| 
 | 
 | ||||||
| #ifdef WITH_TESTSUITE | #ifdef WITH_TESTSUITE | ||||||
| import Test.Tasty.Options | import Test.Tasty.Options | ||||||
|  | import Data.Monoid | ||||||
|  | import Prelude | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifdef WITH_TESTSUITE | #ifdef WITH_TESTSUITE | ||||||
|  | @ -21,6 +23,9 @@ data TestOptions = TestOptions | ||||||
| 
 | 
 | ||||||
| instance Monoid TestOptions where | instance Monoid TestOptions where | ||||||
| 	mempty = TestOptions mempty False | 	mempty = TestOptions mempty False | ||||||
|  | 	mappend a b = TestOptions | ||||||
|  | 		(tastyOptionSet a <> tastyOptionSet b) | ||||||
|  | 		(keepFailuresOption a || keepFailuresOption b) | ||||||
| 
 | 
 | ||||||
| #else | #else | ||||||
| type TestOptions = () | type TestOptions = () | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joey Hess
				Joey Hess