Linting corrections

* Bring back LANGUAGE pragmas in GHC.IO.Handle.Lock.Windows
* Exclude some modules that are wrongfully reported
36 jobs for master in 616 minutes and 37 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Tool Lint
passed #475830
lint
lint-linters

00:00:16

failed #475833
lint allowed to fail
lint-submods

00:00:13

passed #475834
lint
lint-submods-branch

00:00:23

passed #475831
lint
lint-testsuite

00:00:17

passed #475832
lint
typecheck-testsuite

00:00:15

 
  Quick Build
passed #475835
x86_64-linux
hadrian-ghc-in-ghci

00:11:17

 
  Lint
passed #475836
lint
lint-base

00:14:11

 
  Build
passed #475837
x86_64-linux
stack-hadrian-build

00:11:17

passed #475838
x86_64-linux
validate-x86_64-linux-deb9-hadrian

01:30:50

 
  Full Build
failed #475843
aarch64-linux allowed to fail
nightly-aarch64-linux-deb10

00:20:47

failed #475845
armv7-linux allowed to fail
nightly-armv7-linux-deb10

00:24:26

passed #475847
x86_64-linux
nightly-i386-linux-deb9

01:38:56

failed #475840
x86_64-freebsd allowed to fail
nightly-x86_64-freebsd

01:39:38

failed #475856
x86_64-linux allowed to fail
nightly-x86_64-linux-alpine

01:48:56

passed #475854
x86_64-linux
nightly-x86_64-linux-deb10

01:58:12

passed #475848
x86_64-linux
nightly-x86_64-linux-deb9

00:57:17

passed #475852
x86_64-linux
nightly-x86_64-linux-deb9-integer-simple

00:57:48

failed #475850
x86_64-linux
nightly-x86_64-linux-deb9-llvm

00:04:18

passed #475855
x86_64-linux
nightly-x86_64-linux-ubuntu2004

01:03:01

failed #475859
new-x86_64-windows test
nightly-x86_64-windows

00:43:59

failed #475842
aarch64-linux allowed to fail
validate-aarch64-linux-deb10

00:20:47

failed #475844
armv7-linux allowed to fail
validate-armv7-linux-deb10

00:24:44

passed #475846
x86_64-linux
validate-i386-linux-deb9

01:24:35

passed #475841
x86_64-darwin
validate-x86_64-darwin

01:10:57

passed #475849
x86_64-linux
validate-x86_64-linux-deb9-debug

01:44:10

passed #475853
x86_64-linux
validate-x86_64-linux-deb9-dwarf

01:48:36

passed #475851
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:38:04

passed #475839
x86_64-linux
validate-x86_64-linux-deb9-unreg-hadrian

02:35:06

passed #475857
x86_64-linux
validate-x86_64-linux-fedora27

01:56:51

passed #475858
new-x86_64-windows test
validate-x86_64-windows-hadrian

03:34:56

 
  Packaging
failed #475860
x86_64-linux allowed to fail
doc-tarball

00:03:48

 
  Testing
manual #475861
x86_64-linux allowed to fail manual
hackage
failed #475862
x86_64-linux
nightly-hackage

04:55:10

passed #475864
x86_64-linux-perf
perf

00:09:39

passed #475863
x86_64-linux
perf-nofib

00:34:40

 
  Deploy
failed #475865
x86_64-linux
pages

00:03:51

 
Name Stage Failure
failed
doc-tarball Packaging
+ cd ..
+ '[' 0 -eq 0 ']'
+ rm -r linux
+ tar -Jxf /builds/ghc/ghc/ghc-x86_64-unknown-mingw32.tar.xz
+ mv ghc-9.1.0.20201018-x86_64-unknown-mingw32 windows
+ cd inst/share/doc/ghc-9.1.0.20201018/html/libraries
+ mv '../../../../../../windows/doc/html/libraries/Win32-*' .
mv: cannot stat '../../../../../../windows/doc/html/libraries/Win32-*': No such file or directory
ERROR: Job failed: exit code 1
failed
nightly-hackage Testing
Executing "step_script" stage of the job script
$ bash .gitlab/start-head.hackage.sh
{"id":26472,"sha":"020ebc20fcddae9d5cfdd06aa2f59b72ab747147","ref":"master","status":"pending","created_at":"2020-10-19T09:44:51.936Z","updated_at":"2020-10-19T09:44:52.103Z","web_url":"https://gitlab.haskell.org/ghc/head.hackage/pipelines/26472","before_sha":"0000000000000000000000000000000000000000","tag":false,"yaml_errors":null,"user":{"id":336,"name":"head.hackage builds","username":"head.hackage","state":"active","avatar_url":"https://secure.gravatar.com/avatar/2676d708790c67fa9bd7f4349ca81b0f?s=80\u0026d=identicon","web_url":"https://gitlab.haskell.org/head.hackage"},"started_at":null,"finished_at":null,"committed_at":null,"duration":null,"coverage":null,"detailed_status":{"icon":"status_pending","text":"pending","label":"pending","group":"pending","tooltip":"pending","has_details":true,"details_path":"/ghc/head.hackage/pipelines/26472","illustration":null,"favicon":"/assets/ci_favicons/favicon_status_pending-5bdf338420e5221ca24353b6bff1c9367189588750632e9a871b7af09ff6a2ae.png"}}

Started head.hackage pipeline 26472: "https://gitlab.haskell.org/ghc/head.hackage/pipelines/26472"
Waiting for build to complete...
Pipeline 26472 is now running.
Pipeline 26472 failed.
ERROR: Job failed: exit code 1
failed
pages Deploy
Entering 'nofib'
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
Executing "step_script" stage of the job script
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1
failed
lint-submods Tool Lint
Entering 'libraries/unix'
Entering 'libraries/xhtml'
Entering 'nofib'
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
Authenticating with credentials from job payload (GitLab Registry)
$ git fetch "$CI_MERGE_REQUEST_PROJECT_URL" $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
fatal: no path specified; see 'git help pull' for valid url syntax
ERROR: Job failed: exit code 1
failed
nightly-x86_64-linux-deb9-llvm Full Build
Uploading artifacts...
WARNING: ./ghc-x86_64-deb9-linux.tar.xz: no matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-armv7-linux-deb10 Full Build
Uploading artifacts...
WARNING: ghc-armv7-linux-deb10.tar.xz: no matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
nightly-aarch64-linux-deb10 Full Build
Uploading artifacts...
WARNING: ghc-aarch64-linux-deb10.tar.xz: no matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-aarch64-linux-deb10 Full Build
Uploading artifacts...
WARNING: ghc-aarch64-linux-deb10.tar.xz: no matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
nightly-armv7-linux-deb10 Full Build
Uploading artifacts...
WARNING: ghc-armv7-linux-deb10.tar.xz: no matching files
WARNING: junit.xml: no matching files
WARNING: performance-metrics.tsv: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
nightly-x86_64-windows Full Build
Git branch:   13-1-stable
GO version: go1.13.8
Built: 2020-06-19T21:12:23+0000
OS/Arch: windows/amd64
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=6156 revision=6214287e version=13.1.0
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
nightly-x86_64-freebsd Full Build
ghc-x86_64-portbld-freebsd.tar.xz: found 1 matching files 
junit.xml: found 1 matching files

performance-metrics.tsv: found 1 matching files

Uploading artifacts to coordinator... ok
id=475840 responseStatus=201 Created token=PxX6naXj
Uploading artifacts...
Runtime platform
arch=amd64 os=freebsd pid=40415 revision=58272c27 version=12.7.0
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=475840 responseStatus=201 Created token=PxX6naXj
ERROR: Job failed: exit status 1
failed
nightly-x86_64-linux-alpine Full Build
Uploading artifacts for failed job
Uploading artifacts...
ghc-x86_64-alpine-linux.tar.xz: found 1 matching files and directories

junit.xml: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=475856 responseStatus=201 Created token=w4gMY4bc
Uploading artifacts...
junit.xml: found 1 matching files and directories

Uploading artifacts as "junit" to coordinator... ok
id=475856 responseStatus=201 Created token=w4gMY4bc
ERROR: Job failed: exit code 1