Skip to content

Commit 4a51678

Browse files
committed
typed-protocols: use GHC2021
The goal was to use GHC2024, but that's only supported by `GHC >= 9.10`. Required extensions which are part of GHC2024 are added to `default-extensions`.
1 parent 48ce734 commit 4a51678

File tree

47 files changed

+45
-375
lines changed

Some content is hidden

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

47 files changed

+45
-375
lines changed

typed-protocols-doc/src/Network/TypedProtocol/Documentation/DefaultMain.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE FlexibleContexts #-}
2-
31
module Network.TypedProtocol.Documentation.DefaultMain
42
where
53

typed-protocols-doc/src/Network/TypedProtocol/Documentation/GraphViz.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE ScopedTypeVariables #-}
3-
{-# LANGUAGE PolyKinds #-}
4-
{-# LANGUAGE PartialTypeSignatures #-}
5-
{-# LANGUAGE FlexibleContexts #-}
62
{-# LANGUAGE OverloadedStrings #-}
73

84
module Network.TypedProtocol.Documentation.GraphViz

typed-protocols-doc/src/Network/TypedProtocol/Documentation/Html.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
{-# LANGUAGE TemplateHaskell #-}
2-
{-# LANGUAGE TypeApplications #-}
3-
{-# LANGUAGE DataKinds #-}
41
{-# LANGUAGE OverloadedStrings #-}
5-
{-# LANGUAGE ScopedTypeVariables #-}
6-
{-# LANGUAGE PolyKinds #-}
7-
{-# LANGUAGE KindSignatures #-}
8-
{-# LANGUAGE PartialTypeSignatures #-}
9-
{-# LANGUAGE FlexibleContexts #-}
102

113
module Network.TypedProtocol.Documentation.Html
124
where

typed-protocols-doc/src/Network/TypedProtocol/Documentation/TH.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE LambdaCase #-}
32
{-# LANGUAGE TemplateHaskell #-}
4-
{-# LANGUAGE QuasiQuotes #-}
53

64
module Network.TypedProtocol.Documentation.TH
75
( describeProtocol

typed-protocols-doc/src/Network/TypedProtocol/Documentation/Text.hs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{-# LANGUAGE DataKinds #-}
22
{-# LANGUAGE OverloadedStrings #-}
3-
{-# LANGUAGE ScopedTypeVariables #-}
4-
{-# LANGUAGE PolyKinds #-}
5-
{-# LANGUAGE PartialTypeSignatures #-}
6-
{-# LANGUAGE FlexibleContexts #-}
73

84
module Network.TypedProtocol.Documentation.Text
95
where

typed-protocols-doc/src/Network/TypedProtocol/Documentation/Types.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE DeriveLift #-}
2-
{-# LANGUAGE DerivingStrategies #-}
31
{-# LANGUAGE OverloadedStrings #-}
42

53
module Network.TypedProtocol.Documentation.Types

typed-protocols-doc/typed-protocols-doc.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ library
5656
, serdoc-core
5757
, typed-protocols ^>= 1.0
5858
hs-source-dirs: src
59-
default-language: Haskell2010
59+
default-language: GHC2021
60+
default-extensions: DataKinds
6061

6162
executable typed-protocols-doc-demo
6263
import: warnings
63-
default-language: Haskell2010
64+
default-language: GHC2021
6465
hs-source-dirs: demo
6566
main-is: Main.hs
6667
other-modules: DemoProtocol
@@ -75,7 +76,7 @@ executable typed-protocols-doc-demo
7576

7677
test-suite typed-protocols-doc-test
7778
import: warnings
78-
default-language: Haskell2010
79+
default-language: GHC2021
7980
type: exitcode-stdio-1.0
8081
hs-source-dirs: test
8182
main-is: Main.hs

typed-protocols/cborg/Network/TypedProtocol/Codec/CBOR.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE FlexibleContexts #-}
3-
{-# LANGUAGE LambdaCase #-}
4-
{-# LANGUAGE MonoLocalBinds #-}
5-
{-# LANGUAGE PolyKinds #-}
6-
{-# LANGUAGE RankNTypes #-}
7-
{-# LANGUAGE ScopedTypeVariables #-}
8-
91
module Network.TypedProtocol.Codec.CBOR
102
( module Network.TypedProtocol.Codec
113
, mkCodecCborLazyBS

typed-protocols/examples/Network/TypedProtocol/Channel.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
{-# LANGUAGE CPP #-}
2-
{-# LANGUAGE FlexibleContexts #-}
3-
{-# LANGUAGE NamedFieldPuns #-}
4-
{-# LANGUAGE RankNTypes #-}
5-
{-# LANGUAGE ScopedTypeVariables #-}
6-
{-# LANGUAGE TypeApplications #-}
1+
{-# LANGUAGE CPP #-}
72

83
module Network.TypedProtocol.Channel
94
( Channel (..)

typed-protocols/examples/Network/TypedProtocol/Driver/Simple.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE DataKinds #-}
3-
{-# LANGUAGE FlexibleContexts #-}
4-
{-# LANGUAGE GADTs #-}
5-
{-# LANGUAGE NamedFieldPuns #-}
6-
{-# LANGUAGE PolyKinds #-}
7-
{-# LANGUAGE RankNTypes #-}
8-
{-# LANGUAGE ScopedTypeVariables #-}
91
{-# LANGUAGE TypeFamilies #-}
102
-- @UndecidableInstances@ extensions is required for defining @Show@ instance
113
-- of @'TraceSendRecv'@.

0 commit comments

Comments
 (0)