From 606e3f220d20688c7baff94bef525a13434dc56b Mon Sep 17 00:00:00 2001 From: Joachim Breitner <mail@joachim-breitner.de> 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/UsingQuasiquotes.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'hypsrc-test/ref/src/UsingQuasiquotes.html') diff --git a/hypsrc-test/ref/src/UsingQuasiquotes.html b/hypsrc-test/ref/src/UsingQuasiquotes.html index ca48775d..1e7aef2c 100644 --- a/hypsrc-test/ref/src/UsingQuasiquotes.html +++ b/hypsrc-test/ref/src/UsingQuasiquotes.html @@ -7,12 +7,19 @@ ><body ><pre ><span class="hs-pragma" - >{-# LANGUAGE QuasiQuotes #-}</span + >{-# LANGUAGE Haskell2010 #-}</span ><span > </span ><span id="line-2" ></span + ><span class="hs-pragma" + >{-# LANGUAGE QuasiQuotes #-}</span + ><span + > +</span + ><span id="line-3" + ></span ><span class="hs-keyword" >module</span ><span @@ -26,12 +33,12 @@ ><span > </span - ><span id="line-3" + ><span id="line-4" ></span ><span > </span - ><span id="line-4" + ><span id="line-5" ></span ><span class="hs-keyword" >import</span @@ -46,12 +53,12 @@ ><span > </span - ><span id="line-5" + ><span id="line-6" ></span ><span > </span - ><span id="line-6" + ><span id="line-7" ></span ><span id="baz" ><span class="annot" @@ -96,7 +103,7 @@ forall a. [a] -> [a] -> [a] ><span > </span - ><span id="line-10" + ><span id="line-11" ></span ></pre ></body -- cgit v1.2.3