Skip to content

Commit

Permalink
Require GHC 8.6.5 for some docs tests (haskell/ghcide#398)
Browse files Browse the repository at this point in the history
These doc tests fail on GHC 8.6.4, so restrict them to 8.6.5 and above. See haskell#22
  • Loading branch information
ndmitchell authored Feb 2, 2020
1 parent c648224 commit a49d828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ completionTests
[complItem "head" (Just CiFunction) (Just "[a] -> a")]
let [CompletionItem { _documentation = headDocs}] = compls
checkDocText "head" headDocs [ "Defined in 'Prelude'"
#if MIN_GHC_API_VERSION(8,6,0)
#if MIN_GHC_API_VERSION(8,6,5)
, "Extract the first element of a list"
#endif
]
Expand Down Expand Up @@ -1415,7 +1415,7 @@ completionTests
let [ CompletionItem { _documentation = boundedDocs},
CompletionItem { _documentation = boolDocs } ] = compls
checkDocText "Bounded" boundedDocs [ "Defined in 'Prelude'"
#if MIN_GHC_API_VERSION(8,6,0)
#if MIN_GHC_API_VERSION(8,6,5)
, "name the upper and lower limits"
#endif
]
Expand All @@ -1430,7 +1430,7 @@ completionTests
[complItem "head" (Just CiFunction) (Just "[a] -> a")]
let [CompletionItem { _documentation = headDocs}] = compls
checkDocText "head" headDocs [ "Defined in 'Prelude'"
#if MIN_GHC_API_VERSION(8,6,0)
#if MIN_GHC_API_VERSION(8,6,5)
, "Extract the first element of a list"
#endif
]
Expand Down

0 comments on commit a49d828

Please sign in to comment.