Skip to content

Commit 70d2783

Browse files
committed
Use GHC2024
1 parent 938e35b commit 70d2783

File tree

44 files changed

+33
-359
lines changed

Some content is hidden

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

44 files changed

+33
-359
lines changed

typed-protocols-cborg/src/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-cborg/typed-protocols-cborg.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ library
2525

2626
io-classes ^>=1.5,
2727
typed-protocols ^>=0.3
28-
2928
hs-source-dirs: src
30-
default-language: Haskell2010
29+
default-language: GHC2024
3130
ghc-options: -Wall
3231
-Wno-unticked-promoted-constructors
3332
-Wcompat

typed-protocols-examples/src/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/src/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'@.

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Client.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE GADTs #-}
3-
{-# LANGUAGE KindSignatures #-}
4-
{-# LANGUAGE ScopedTypeVariables #-}
5-
{-# LANGUAGE TypeOperators #-}
6-
71
module Network.TypedProtocol.PingPong.Client
82
( -- * Normal client
93
PingPongClient (..)

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Codec.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE FlexibleContexts #-}
3-
{-# LANGUAGE GADTs #-}
4-
{-# LANGUAGE KindSignatures #-}
5-
{-# LANGUAGE NamedFieldPuns #-}
6-
{-# LANGUAGE ScopedTypeVariables #-}
7-
81
module Network.TypedProtocol.PingPong.Codec where
92

103
import Network.TypedProtocol.Codec

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Codec/CBOR.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE FlexibleContexts #-}
3-
{-# LANGUAGE GADTs #-}
4-
{-# LANGUAGE KindSignatures #-}
5-
{-# LANGUAGE PolyKinds #-}
6-
{-# LANGUAGE ScopedTypeVariables #-}
7-
81
module Network.TypedProtocol.PingPong.Codec.CBOR where
92

103
import Control.Monad.Class.MonadST

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Examples.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE DataKinds #-}
3-
{-# LANGUAGE GADTs #-}
4-
{-# LANGUAGE PolyKinds #-}
5-
{-# LANGUAGE ScopedTypeVariables #-}
6-
{-# LANGUAGE TypeOperators #-}
7-
81
module Network.TypedProtocol.PingPong.Examples where
92

103
import Network.TypedProtocol.PingPong.Client

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Server.hs

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

53
module Network.TypedProtocol.PingPong.Server where

typed-protocols-examples/src/Network/TypedProtocol/PingPong/Type.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE EmptyCase #-}
3-
{-# LANGUAGE FlexibleInstances #-}
4-
{-# LANGUAGE GADTs #-}
5-
{-# LANGUAGE StandaloneDeriving #-}
6-
{-# LANGUAGE TypeFamilies #-}
7-
1+
{-# LANGUAGE TypeFamilies #-}
82

93
module Network.TypedProtocol.PingPong.Type where
104

0 commit comments

Comments
 (0)