aboutsummaryrefslogtreecommitdiff
path: root/hypsrc-test/src
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2021-02-22 10:31:56 +0100
committerJoachim Breitner <mail@joachim-breitner.de>2021-02-22 10:39:18 +0100
commit606e3f220d20688c7baff94bef525a13434dc56b (patch)
treef9724712e17b92abaca1dcb9b67f1eca3a06cb04 /hypsrc-test/src
parentd1b7f181b60ba3ac191183f1512e66793d28ac08 (diff)
html-test: Always set language
from ghc-9.2 on, the “default” langauge of GHC is expected to change more wildly. To prepare for that (and unblock https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4853), this sets the language for all the test files to `Haskell2010`. This should insolate this test suite against changes to the default. Cherry-picked from https://github.com/haskell/haddock/pull/1341
Diffstat (limited to 'hypsrc-test/src')
-rw-r--r--hypsrc-test/src/Bug1091.hs1
-rw-r--r--hypsrc-test/src/CPP.hs1
-rw-r--r--hypsrc-test/src/Classes.hs1
-rw-r--r--hypsrc-test/src/Constructors.hs1
-rw-r--r--hypsrc-test/src/Identifiers.hs1
-rw-r--r--hypsrc-test/src/LinkingIdentifiers.hs1
-rw-r--r--hypsrc-test/src/Literals.hs1
-rw-r--r--hypsrc-test/src/Operators.hs1
-rw-r--r--hypsrc-test/src/Polymorphism.hs1
-rw-r--r--hypsrc-test/src/PositionPragmas.hs1
-rw-r--r--hypsrc-test/src/Quasiquoter.hs1
-rw-r--r--hypsrc-test/src/Records.hs1
-rw-r--r--hypsrc-test/src/TemplateHaskellQuasiquotes.hs1
-rw-r--r--hypsrc-test/src/TemplateHaskellSplices.hs1
-rw-r--r--hypsrc-test/src/Types.hs1
-rw-r--r--hypsrc-test/src/UsingQuasiquotes.hs1
16 files changed, 16 insertions, 0 deletions
diff --git a/hypsrc-test/src/Bug1091.hs b/hypsrc-test/src/Bug1091.hs
index f0cea033..013acbbc 100644
--- a/hypsrc-test/src/Bug1091.hs
+++ b/hypsrc-test/src/Bug1091.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE CPP #-}
module Bug1091 where
diff --git a/hypsrc-test/src/CPP.hs b/hypsrc-test/src/CPP.hs
index f00ce031..59cb6034 100644
--- a/hypsrc-test/src/CPP.hs
+++ b/hypsrc-test/src/CPP.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE CPP #-}
module CPP where
diff --git a/hypsrc-test/src/Classes.hs b/hypsrc-test/src/Classes.hs
index b3c3f785..0f2416de 100644
--- a/hypsrc-test/src/Classes.hs
+++ b/hypsrc-test/src/Classes.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Classes where
diff --git a/hypsrc-test/src/Constructors.hs b/hypsrc-test/src/Constructors.hs
index 8cb46535..66260ee8 100644
--- a/hypsrc-test/src/Constructors.hs
+++ b/hypsrc-test/src/Constructors.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Constructors where
diff --git a/hypsrc-test/src/Identifiers.hs b/hypsrc-test/src/Identifiers.hs
index 173c3ba7..72853a4a 100644
--- a/hypsrc-test/src/Identifiers.hs
+++ b/hypsrc-test/src/Identifiers.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Identifiers where
diff --git a/hypsrc-test/src/LinkingIdentifiers.hs b/hypsrc-test/src/LinkingIdentifiers.hs
index 4fff9776..b195c2c6 100644
--- a/hypsrc-test/src/LinkingIdentifiers.hs
+++ b/hypsrc-test/src/LinkingIdentifiers.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
-- Tests that the identifers/operators are properly linked even when:
--
-- * backquoted, parenthesized, vanilla
diff --git a/hypsrc-test/src/Literals.hs b/hypsrc-test/src/Literals.hs
index 997b6615..d862bf87 100644
--- a/hypsrc-test/src/Literals.hs
+++ b/hypsrc-test/src/Literals.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Literals where
diff --git a/hypsrc-test/src/Operators.hs b/hypsrc-test/src/Operators.hs
index 8e86ab0b..1dcb8856 100644
--- a/hypsrc-test/src/Operators.hs
+++ b/hypsrc-test/src/Operators.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Operators where
diff --git a/hypsrc-test/src/Polymorphism.hs b/hypsrc-test/src/Polymorphism.hs
index 3f0103bf..dfcb37fa 100644
--- a/hypsrc-test/src/Polymorphism.hs
+++ b/hypsrc-test/src/Polymorphism.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
diff --git a/hypsrc-test/src/PositionPragmas.hs b/hypsrc-test/src/PositionPragmas.hs
index 907316fd..e01334ed 100644
--- a/hypsrc-test/src/PositionPragmas.hs
+++ b/hypsrc-test/src/PositionPragmas.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module PositionPragmas where
{-# LINE 8 "hypsrc-test/src/PositionPragmas.hs" #-}
diff --git a/hypsrc-test/src/Quasiquoter.hs b/hypsrc-test/src/Quasiquoter.hs
index d0a46c33..48f1b155 100644
--- a/hypsrc-test/src/Quasiquoter.hs
+++ b/hypsrc-test/src/Quasiquoter.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module Quasiquoter ( string ) where
import Language.Haskell.TH.Quote
diff --git a/hypsrc-test/src/Records.hs b/hypsrc-test/src/Records.hs
index 40a01121..ae5a0c55 100644
--- a/hypsrc-test/src/Records.hs
+++ b/hypsrc-test/src/Records.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
diff --git a/hypsrc-test/src/TemplateHaskellQuasiquotes.hs b/hypsrc-test/src/TemplateHaskellQuasiquotes.hs
index 6d404921..7fafc7aa 100644
--- a/hypsrc-test/src/TemplateHaskellQuasiquotes.hs
+++ b/hypsrc-test/src/TemplateHaskellQuasiquotes.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell #-}
module TemplateHaskellQuasiquotes where
diff --git a/hypsrc-test/src/TemplateHaskellSplices.hs b/hypsrc-test/src/TemplateHaskellSplices.hs
index bbd3948e..f8a859a0 100644
--- a/hypsrc-test/src/TemplateHaskellSplices.hs
+++ b/hypsrc-test/src/TemplateHaskellSplices.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TemplateHaskell #-}
module TemplateHaskellSplices where
diff --git a/hypsrc-test/src/Types.hs b/hypsrc-test/src/Types.hs
index b63a825b..a0481e82 100644
--- a/hypsrc-test/src/Types.hs
+++ b/hypsrc-test/src/Types.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE TypeFamilies #-}
diff --git a/hypsrc-test/src/UsingQuasiquotes.hs b/hypsrc-test/src/UsingQuasiquotes.hs
index 34872d4d..44da0c4b 100644
--- a/hypsrc-test/src/UsingQuasiquotes.hs
+++ b/hypsrc-test/src/UsingQuasiquotes.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE QuasiQuotes #-}
module UsingQuasiquotes where