Skip to content

Commit 52607f1

Browse files
authored
Switch to GHC2021 (#550)
* Switch to GHC2021 We don't support GHC < 9.2, so this is safe. * Format
1 parent 794d689 commit 52607f1

File tree

41 files changed

+16
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+16
-164
lines changed

lsp-test/func-test/FuncTest.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{-# LANGUAGE DataKinds #-}
22
{-# LANGUAGE GADTs #-}
33
{-# LANGUAGE OverloadedStrings #-}
4-
{-# LANGUAGE RankNTypes #-}
5-
{-# LANGUAGE ScopedTypeVariables #-}
6-
{-# LANGUAGE TypeApplications #-}
74
{-# LANGUAGE ViewPatterns #-}
85

96
module Main where

lsp-test/lsp-test.cabal

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ source-repository head
3333

3434
library
3535
hs-source-dirs: src
36-
default-language: Haskell2010
37-
default-extensions: ImportQualifiedPost
36+
default-language: GHC2021
3837
exposed-modules: Language.LSP.Test
3938
reexported-modules:
4039
lsp-types:Language.LSP.Protocol.Types
@@ -93,8 +92,7 @@ test-suite tests
9392
type: exitcode-stdio-1.0
9493
hs-source-dirs: test
9594
main-is: Test.hs
96-
default-language: Haskell2010
97-
default-extensions: ImportQualifiedPost
95+
default-language: GHC2021
9896
ghc-options: -W
9997
other-modules: DummyServer
10098
build-depends:
@@ -117,8 +115,7 @@ test-suite tests
117115
test-suite func-test
118116
type: exitcode-stdio-1.0
119117
hs-source-dirs: func-test
120-
default-language: Haskell2010
121-
default-extensions: ImportQualifiedPost
118+
default-language: GHC2021
122119
main-is: FuncTest.hs
123120
build-depends:
124121
, base
@@ -136,8 +133,7 @@ test-suite func-test
136133
test-suite example
137134
type: exitcode-stdio-1.0
138135
hs-source-dirs: example
139-
default-language: Haskell2010
140-
default-extensions: ImportQualifiedPost
136+
default-language: GHC2021
141137
main-is: Test.hs
142138
build-depends:
143139
, base
@@ -149,8 +145,7 @@ test-suite example
149145
benchmark simple-bench
150146
type: exitcode-stdio-1.0
151147
hs-source-dirs: bench
152-
default-language: Haskell2010
153-
default-extensions: ImportQualifiedPost
148+
default-language: GHC2021
154149
main-is: SimpleBench.hs
155150
ghc-options: -Wall -O2 -eventlog -rtsopts
156151
build-depends:

lsp-test/src/Language/LSP/Test.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
{-# LANGUAGE DuplicateRecordFields #-}
2-
{-# LANGUAGE ExistentialQuantification #-}
3-
{-# LANGUAGE FlexibleContexts #-}
42
{-# LANGUAGE GADTs #-}
53
{-# LANGUAGE LambdaCase #-}
64
{-# LANGUAGE OverloadedStrings #-}
7-
{-# LANGUAGE RankNTypes #-}
8-
{-# LANGUAGE ScopedTypeVariables #-}
95
{-# LANGUAGE TypeInType #-}
10-
{-# LANGUAGE TypeOperators #-}
116

127
{- |
138
Module : Language.LSP.Test

lsp-test/src/Language/LSP/Test/Compat.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{-# LANGUAGE DataKinds #-}
33
{-# LANGUAGE OverloadedLabels #-}
44
{-# LANGUAGE OverloadedStrings #-}
5-
{-# LANGUAGE TypeOperators #-}
65
-- For some reason ghc warns about not using
76
-- Control.Monad.IO.Class but it's needed for
87
-- MonadIO

lsp-test/src/Language/LSP/Test/Files.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
{-# LANGUAGE FlexibleContexts #-}
21
{-# LANGUAGE GADTs #-}
32
{-# LANGUAGE OverloadedStrings #-}
4-
{-# LANGUAGE RankNTypes #-}
53
{-# LANGUAGE TypeInType #-}
6-
{-# LANGUAGE TypeOperators #-}
74

85
module Language.LSP.Test.Files (
96
swapFiles,

lsp-test/src/Language/LSP/Test/Parsing.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{-# LANGUAGE GADTs #-}
22
{-# LANGUAGE LambdaCase #-}
3-
{-# LANGUAGE MultiParamTypeClasses #-}
43
{-# LANGUAGE OverloadedStrings #-}
5-
{-# LANGUAGE RankNTypes #-}
6-
{-# LANGUAGE ScopedTypeVariables #-}
74
{-# LANGUAGE TypeInType #-}
85

96
module Language.LSP.Test.Parsing (

lsp-test/src/Language/LSP/Test/Session.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@
33
{-# LANGUAGE CPP #-}
44
{-# LANGUAGE GADTs #-}
55
{-# LANGUAGE OverloadedStrings #-}
6-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
7-
{-# LANGUAGE FlexibleInstances #-}
8-
{-# LANGUAGE MultiParamTypeClasses #-}
9-
{-# LANGUAGE FlexibleContexts #-}
106
{-# LANGUAGE OverloadedLabels #-}
11-
{-# LANGUAGE RankNTypes #-}
127
{-# LANGUAGE TypeInType #-}
13-
{-# LANGUAGE TypeOperators #-}
14-
{-# LANGUAGE TypeApplications #-}
158

169
module Language.LSP.Test.Session
1710
( Session(..)

lsp-test/test/DummyServer.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE DuplicateRecordFields #-}
22
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE TypeApplications #-}
43
{-# LANGUAGE TypeInType #-}
54

65
module DummyServer where

lsp-test/test/Test.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{-# LANGUAGE DuplicateRecordFields #-}
22
{-# LANGUAGE GADTs #-}
33
{-# LANGUAGE OverloadedStrings #-}
4-
{-# LANGUAGE ScopedTypeVariables #-}
5-
{-# LANGUAGE TypeApplications #-}
64
{-# LANGUAGE TypeInType #-}
75

86
import Control.Applicative.Combinators

lsp-types/generator/CodeGen.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{-# LANGUAGE DuplicateRecordFields #-}
22
{-# LANGUAGE LambdaCase #-}
3-
{-# LANGUAGE NamedFieldPuns #-}
43
{-# LANGUAGE OverloadedStrings #-}
54
{-# LANGUAGE QuasiQuotes #-}
65
{-# LANGUAGE RecordWildCards #-}
7-
{-# LANGUAGE ScopedTypeVariables #-}
86
{-# LANGUAGE ViewPatterns #-}
97

108
{- | The main module for generating code from the metamodel

0 commit comments

Comments
 (0)