diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2021-02-22 10:31:56 +0100 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2021-02-22 10:39:18 +0100 |
commit | 606e3f220d20688c7baff94bef525a13434dc56b (patch) | |
tree | f9724712e17b92abaca1dcb9b67f1eca3a06cb04 /hoogle-test | |
parent | d1b7f181b60ba3ac191183f1512e66793d28ac08 (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 'hoogle-test')
-rw-r--r-- | hoogle-test/src/Bug722/Bug722.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/Bug806/Bug806.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/Bug825/Bug825.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/Bug873/Bug873.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/Bug946/Bug946.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/Bug992/Bug992.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/assoc-types/AssocTypes.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/classes/Classes.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/fixity/Fixity.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/modules/Bar.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/modules/Foo.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/type-sigs/ReaderT.hs | 1 | ||||
-rw-r--r-- | hoogle-test/src/type-sigs/ReaderTReexport.hs | 1 |
13 files changed, 13 insertions, 0 deletions
diff --git a/hoogle-test/src/Bug722/Bug722.hs b/hoogle-test/src/Bug722/Bug722.hs index a33d5b24..ef7e9a2f 100644 --- a/hoogle-test/src/Bug722/Bug722.hs +++ b/hoogle-test/src/Bug722/Bug722.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE TypeOperators, TypeFamilies #-} module Bug722 where diff --git a/hoogle-test/src/Bug806/Bug806.hs b/hoogle-test/src/Bug806/Bug806.hs index 45efda77..6deb98c1 100644 --- a/hoogle-test/src/Bug806/Bug806.hs +++ b/hoogle-test/src/Bug806/Bug806.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} diff --git a/hoogle-test/src/Bug825/Bug825.hs b/hoogle-test/src/Bug825/Bug825.hs index bfe07139..48c09305 100644 --- a/hoogle-test/src/Bug825/Bug825.hs +++ b/hoogle-test/src/Bug825/Bug825.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeOperators #-} module Bug825 where diff --git a/hoogle-test/src/Bug873/Bug873.hs b/hoogle-test/src/Bug873/Bug873.hs index 3a9a5383..4df1b772 100644 --- a/hoogle-test/src/Bug873/Bug873.hs +++ b/hoogle-test/src/Bug873/Bug873.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module Bug873 (($), ($$)) where infixr 0 $$ diff --git a/hoogle-test/src/Bug946/Bug946.hs b/hoogle-test/src/Bug946/Bug946.hs index 606b5ac4..ec567d6d 100644 --- a/hoogle-test/src/Bug946/Bug946.hs +++ b/hoogle-test/src/Bug946/Bug946.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE PatternSynonyms #-} module Bug946 ( AnInt(AnInt, Zero), diff --git a/hoogle-test/src/Bug992/Bug992.hs b/hoogle-test/src/Bug992/Bug992.hs index bd772427..0b03964b 100644 --- a/hoogle-test/src/Bug992/Bug992.hs +++ b/hoogle-test/src/Bug992/Bug992.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE KindSignatures #-} module Bug992 where diff --git a/hoogle-test/src/assoc-types/AssocTypes.hs b/hoogle-test/src/assoc-types/AssocTypes.hs index ceacc834..3fa5f034 100644 --- a/hoogle-test/src/assoc-types/AssocTypes.hs +++ b/hoogle-test/src/assoc-types/AssocTypes.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE AllowAmbiguousTypes #-} diff --git a/hoogle-test/src/classes/Classes.hs b/hoogle-test/src/classes/Classes.hs index 23f68499..2bd726a2 100644 --- a/hoogle-test/src/classes/Classes.hs +++ b/hoogle-test/src/classes/Classes.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module Classes where diff --git a/hoogle-test/src/fixity/Fixity.hs b/hoogle-test/src/fixity/Fixity.hs index 3af38117..122bd4f8 100644 --- a/hoogle-test/src/fixity/Fixity.hs +++ b/hoogle-test/src/fixity/Fixity.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module Fixity where diff --git a/hoogle-test/src/modules/Bar.hs b/hoogle-test/src/modules/Bar.hs index 156a835f..86e2648b 100644 --- a/hoogle-test/src/modules/Bar.hs +++ b/hoogle-test/src/modules/Bar.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module Bar where diff --git a/hoogle-test/src/modules/Foo.hs b/hoogle-test/src/modules/Foo.hs index 6581fe4c..947da4ce 100644 --- a/hoogle-test/src/modules/Foo.hs +++ b/hoogle-test/src/modules/Foo.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module Foo where diff --git a/hoogle-test/src/type-sigs/ReaderT.hs b/hoogle-test/src/type-sigs/ReaderT.hs index 009c7ed2..fb09bac0 100644 --- a/hoogle-test/src/type-sigs/ReaderT.hs +++ b/hoogle-test/src/type-sigs/ReaderT.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module ReaderT where newtype ReaderT r m a = ReaderT { runReaderT :: r -> m a } diff --git a/hoogle-test/src/type-sigs/ReaderTReexport.hs b/hoogle-test/src/type-sigs/ReaderTReexport.hs index 21fa44ee..b995bba8 100644 --- a/hoogle-test/src/type-sigs/ReaderTReexport.hs +++ b/hoogle-test/src/type-sigs/ReaderTReexport.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE Haskell2010 #-} module ReaderTReexport (ReaderT(..), runReaderT) where import ReaderT |