From 606e3f220d20688c7baff94bef525a13434dc56b Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Mon, 22 Feb 2021 10:31:56 +0100 Subject: html-test: Always set language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- hypsrc-test/ref/src/Bug1091.html | 9 +- hypsrc-test/ref/src/CPP.html | 31 +++-- hypsrc-test/ref/src/Classes.html | 79 ++++++------ hypsrc-test/ref/src/Constructors.html | 79 ++++++------ hypsrc-test/ref/src/Identifiers.html | 65 +++++----- hypsrc-test/ref/src/LinkingIdentifiers.html | 37 +++--- hypsrc-test/ref/src/Literals.html | 43 ++++--- hypsrc-test/ref/src/Operators.html | 53 ++++---- hypsrc-test/ref/src/Polymorphism.html | 135 +++++++++++---------- hypsrc-test/ref/src/PositionPragmas.html | 13 +- hypsrc-test/ref/src/Quasiquoter.html | 41 ++++--- hypsrc-test/ref/src/Records.html | 71 ++++++----- .../ref/src/TemplateHaskellQuasiquotes.html | 83 +++++++------ hypsrc-test/ref/src/TemplateHaskellSplices.html | 23 ++-- hypsrc-test/ref/src/Types.html | 87 +++++++------ hypsrc-test/ref/src/UsingQuasiquotes.html | 19 ++- 16 files changed, 490 insertions(+), 378 deletions(-) (limited to 'hypsrc-test/ref') diff --git a/hypsrc-test/ref/src/Bug1091.html b/hypsrc-test/ref/src/Bug1091.html index a9c7d163..3aad9cc8 100644 --- a/hypsrc-test/ref/src/Bug1091.html +++ b/hypsrc-test/ref/src/Bug1091.html @@ -7,12 +7,19 @@ >
{-# LANGUAGE CPP #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE CPP #-}
+module
{-# LANGUAGE CPP #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE CPP #-}
+module
 
 
 
 
 -- " single quotes are fine in line comments
 -- {- unclosed block comments are fine in line comments
 
 -- Multiline CPP is also fine
 
 
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 
 class
     
     
 
 instance
     
     
 
 instance
 
 
 class
     
     
 
     
     
 
 instance
     
 
 instance
 
 
 class
     
 
 instance
     
     
     
     
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 
 data
     
     
     
 
 newtype
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
   
     
     
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 
 
 
 
 
 
 
 
 
 
 
     
     
     
     
 
 
 
 
     
     
     
   
     
     
     
 
-- Tests that the identifers/operators are properly linked even when:{-# LANGUAGE Haskell2010 #-}
 ---- Tests that the identifers/operators are properly linked even when:
 --   * backquoted, parenthesized, vanilla--
 --   * qualified, not-qualified--   * backquoted, parenthesized, vanilla
 ----   * qualified, not-qualified
 --
+module
 
 
 
 
 
 
 
 
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{-# LANGUAGE RankNTypes #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE ScopedTypeVariables #-}{-# LANGUAGE RankNTypes #-}
 {-# LANGUAGE ScopedTypeVariables #-}
 
+module
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
   
     
 
{-# LANGUAGE Haskell2010 #-}
+module 
 
 {-# LINE 8 "hypsrc-test/src/PositionPragmas.hs" #-}
{-# LANGUAGE Haskell2010 #-}
+module 
 
 import
 import
 
 -- | Quoter for constructing multiline string literals
 
 
   
   
   
   
   
   
     
     
 
{-# LANGUAGE NamedFieldPuns #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE RecordWildCards #-}{-# LANGUAGE NamedFieldPuns #-}
 {-# LANGUAGE RecordWildCards #-}
 
+module
 
 
 data
     
     
     
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
   
     
     
 
{-# LANGUAGE TemplateHaskell #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE TemplateHaskell #-}
 
+module
 
 import
 
 
 
     
     
   
 
 
 
     
     
     
     
     
   
 
 
 
     
   
 
 
 
     
   
 
 
 
 
     
   
 
 
 
 
{-# LANGUAGE TemplateHaskell #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE TemplateHaskell #-}
+module
 
 import
 
 $
 
 
 
{-# LANGUAGE TypeFamilies #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE TypeFamilies #-}
 
+module
 
 
 data
 
 newtype
 
 type
 type
 
 
 data
 
 data
 data
 
 
 type
 
 type
 type
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{-# LANGUAGE QuasiQuotes #-}{-# LANGUAGE Haskell2010 #-}
 {-# LANGUAGE QuasiQuotes #-}
+module
 
 import