aboutsummaryrefslogtreecommitdiff
path: root/hypsrc-test/ref/src/CPP.html
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/ref/src/CPP.html
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/ref/src/CPP.html')
-rw-r--r--hypsrc-test/ref/src/CPP.html31
1 files changed, 19 insertions, 12 deletions
diff --git a/hypsrc-test/ref/src/CPP.html b/hypsrc-test/ref/src/CPP.html
index 719be7f8..41cb8f8c 100644
--- a/hypsrc-test/ref/src/CPP.html
+++ b/hypsrc-test/ref/src/CPP.html
@@ -7,12 +7,19 @@
><body
><pre
><span class="hs-pragma"
- >{-# LANGUAGE CPP #-}</span
+ >{-# LANGUAGE Haskell2010 #-}</span
><span
>
</span
><span id="line-2"
></span
+ ><span class="hs-pragma"
+ >{-# LANGUAGE CPP #-}</span
+ ><span
+ >
+</span
+ ><span id="line-3"
+ ></span
><span class="hs-keyword"
>module</span
><span
@@ -31,7 +38,7 @@
><span
>
</span
- ><span id="line-6"
+ ><span id="line-7"
></span
><span class="annot"
><a href="CPP.html#foo"
@@ -52,7 +59,7 @@
><span
>
</span
- ><span id="line-7"
+ ><span id="line-8"
></span
><span id="foo"
><span class="annot"
@@ -92,7 +99,7 @@
><span
>
</span
- ><span id="line-13"
+ ><span id="line-14"
></span
><span class="annot"
><a href="CPP.html#bar"
@@ -113,7 +120,7 @@
><span
>
</span
- ><span id="line-14"
+ ><span id="line-15"
></span
><span id="bar"
><span class="annot"
@@ -147,26 +154,26 @@
><span
>
</span
- ><span id="line-18"
+ ><span id="line-19"
></span
><span class="hs-comment"
>-- &quot; single quotes are fine in line comments</span
><span
>
</span
- ><span id="line-19"
+ ><span id="line-20"
></span
><span class="hs-comment"
>-- {- unclosed block comments are fine in line comments</span
><span
>
</span
- ><span id="line-20"
+ ><span id="line-21"
></span
><span
>
</span
- ><span id="line-21"
+ ><span id="line-22"
></span
><span class="hs-comment"
>-- Multiline CPP is also fine</span
@@ -178,7 +185,7 @@
><span
>
</span
- ><span id="line-25"
+ ><span id="line-26"
></span
><span class="annot"
><a href="CPP.html#baz"
@@ -199,7 +206,7 @@
><span
>
</span
- ><span id="line-26"
+ ><span id="line-27"
></span
><span id="baz"
><span class="annot"
@@ -228,7 +235,7 @@
><span
>
</span
- ><span id="line-27"
+ ><span id="line-28"
></span
></pre
></body