;enable doctest with ghc 8.10
This commit is contained in:
		
							parent
							
								
									d7d003f848
								
							
						
					
					
						commit
						216cf8d596
					
				| @ -176,8 +176,8 @@ tests: | |||||||
|     other-modules: []  # prevent double compilation, https://github.com/sol/hpack/issues/188 |     other-modules: []  # prevent double compilation, https://github.com/sol/hpack/issues/188 | ||||||
|     dependencies: |     dependencies: | ||||||
|     - Glob >=0.7 |     - Glob >=0.7 | ||||||
|     # Need a doctest new enough to support --fast and --verbose. |     # Need a doctest new enough to support --fast and --verbose and ghc 8.10. | ||||||
|     - doctest >=0.16 |     - doctest >=0.16.3 | ||||||
| 
 | 
 | ||||||
|     # ghc 8.4+ on mac needs this workaround (see |     # ghc 8.4+ on mac needs this workaround (see | ||||||
|     # https://github.com/sol/doctest/issues/199, |     # https://github.com/sol/doctest/issues/199, | ||||||
| @ -190,9 +190,8 @@ tests: | |||||||
|     # - condition: os(darwin) && impl(ghc >= 8.4) |     # - condition: os(darwin) && impl(ghc >= 8.4) | ||||||
|     #   buildable: false |     #   buildable: false | ||||||
| 
 | 
 | ||||||
|     # ghc 8.10 isn't supported by doctest yet, https://github.com/sol/doctest/issues/246 |  | ||||||
|     # ghc 8.0 on linux gives Hledger/Read/JournalReader.hs:126: failure in expression `rejp (journalp <* eof) "2015/1/1\n a  0\n"' ... Variable not in scope: rejp :: f0 a0 -> [Char] -> t |     # ghc 8.0 on linux gives Hledger/Read/JournalReader.hs:126: failure in expression `rejp (journalp <* eof) "2015/1/1\n a  0\n"' ... Variable not in scope: rejp :: f0 a0 -> [Char] -> t | ||||||
|     # must use one conditional here, https://github.com/sol/hpack/issues/379 |     # must use one conditional here, https://github.com/sol/hpack/issues/379 | ||||||
|     when: |     when: | ||||||
|     - condition: (impl(ghc < 8.2) || impl(ghc >= 8.10)) |     - condition: (impl(ghc < 8.2)) | ||||||
|       buildable: false |       buildable: false | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ extra-deps: | |||||||
| - cassava-megaparsec-2.0.0 | - cassava-megaparsec-2.0.0 | ||||||
| - config-ini-0.2.3.0 | - config-ini-0.2.3.0 | ||||||
| - criterion-1.4.1.0 | - criterion-1.4.1.0 | ||||||
| - doctest-0.16.0 | # - doctest-0.16.0 | ||||||
| - extra-1.6.17 | - extra-1.6.17 | ||||||
| - fgl-5.5.4.0 | - fgl-5.5.4.0 | ||||||
| - generics-sop-0.3.2.0 | - generics-sop-0.3.2.0 | ||||||
|  | |||||||
| @ -68,6 +68,7 @@ packages: | |||||||
| - hledger-web | - hledger-web | ||||||
| 
 | 
 | ||||||
| extra-deps: | extra-deps: | ||||||
|  | - doctest-0.16.3 | ||||||
| # for hledger-lib: | # for hledger-lib: | ||||||
| # for hledger: | # for hledger: | ||||||
| # for hledger-ui: | # for hledger-ui: | ||||||
|  | |||||||
| @ -24,7 +24,7 @@ extra-deps: | |||||||
| - cassava-megaparsec-2.0.0 | - cassava-megaparsec-2.0.0 | ||||||
| - config-ini-0.2.3.0 | - config-ini-0.2.3.0 | ||||||
| - criterion-1.4.1.0 | - criterion-1.4.1.0 | ||||||
| - doctest-0.16.0 | - doctest-0.16.3 | ||||||
| - megaparsec-7.0.1 | - megaparsec-7.0.1 | ||||||
| - parser-combinators-1.0.0 | - parser-combinators-1.0.0 | ||||||
| - process-1.6.5.1 | - process-1.6.5.1 | ||||||
|  | |||||||
| @ -18,6 +18,7 @@ packages: | |||||||
| extra-deps: | extra-deps: | ||||||
| - cassava-megaparsec-2.0.0 | - cassava-megaparsec-2.0.0 | ||||||
| - config-ini-0.2.3.0 | - config-ini-0.2.3.0 | ||||||
|  | - doctest-0.16.3 | ||||||
| - megaparsec-7.0.2 | - megaparsec-7.0.2 | ||||||
| - tasty-1.2.3 | - tasty-1.2.3 | ||||||
| - tasty-hunit-0.10.0.2 | - tasty-hunit-0.10.0.2 | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ packages: | |||||||
| - hledger-web | - hledger-web | ||||||
| 
 | 
 | ||||||
| extra-deps: | extra-deps: | ||||||
|  | - doctest-0.16.3 | ||||||
| # for Shake.hs (regex doesn't support base-compat-0.11): | # for Shake.hs (regex doesn't support base-compat-0.11): | ||||||
| - regex-1.0.2.0@rev:1 | - regex-1.0.2.0@rev:1 | ||||||
| # for testing base-compat 0.11 compatibility (mutually exclusive with the above): | # for testing base-compat 0.11 compatibility (mutually exclusive with the above): | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ packages: | |||||||
| - hledger-web | - hledger-web | ||||||
| 
 | 
 | ||||||
| extra-deps: | extra-deps: | ||||||
|  | - doctest-0.16.3 | ||||||
| # for hledger-lib: | # for hledger-lib: | ||||||
| # for hledger: | # for hledger: | ||||||
| # for hledger-ui: | # for hledger-ui: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user