We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cdb788 commit ab99b2eCopy full SHA for ab99b2e
test/functional/FunctionalCodeAction.hs
@@ -518,8 +518,19 @@ missingPragmaTests = testGroup "missing pragma warning code actions" [
518
contents <- documentContents doc
519
520
let expected =
521
+-- TODO: Why CPP???
522
+#if __GLASGOW_HASKELL__ < 810
523
+ [ "{-# LANGUAGE ScopedTypeVariables #-}"
524
+ , "{-# LANGUAGE TypeApplications #-}"
525
+#else
526
[ "{-# LANGUAGE TypeApplications #-}"
527
, "{-# LANGUAGE ScopedTypeVariables #-}"
528
+#endif
529
+ , "module TypeApplications where"
530
+ , ""
531
+ , "foo :: forall a. a -> a"
532
+ , "foo = id @a"
533
+ ]
534
, "module TypeApplications where"
535
, ""
536
, "foo :: forall a. a -> a"
0 commit comments