1
- {-# LANGUAGE DataKinds #-}
2
- {-# LANGUAGE FlexibleContexts #-}
3
- {-# LANGUAGE FlexibleInstances #-}
4
- {-# LANGUAGE GADTs #-}
5
- {-# LANGUAGE NamedFieldPuns #-}
6
- {-# LANGUAGE PatternSynonyms #-}
7
- {-# LANGUAGE PolyKinds #-}
8
- {-# LANGUAGE QuantifiedConstraints #-}
9
- {-# LANGUAGE RankNTypes #-}
10
- {-# LANGUAGE ScopedTypeVariables #-}
11
- {-# LANGUAGE TypeFamilies #-}
12
- {-# LANGUAGE ViewPatterns #-}
1
+ {-# LANGUAGE DataKinds #-}
2
+ {-# LANGUAGE FlexibleContexts #-}
3
+ {-# LANGUAGE FlexibleInstances #-}
4
+ {-# LANGUAGE GADTs #-}
5
+ {-# LANGUAGE NamedFieldPuns #-}
6
+ {-# LANGUAGE PatternSynonyms #-}
7
+ {-# LANGUAGE PolyKinds #-}
8
+ {-# LANGUAGE QuantifiedConstraints #-}
9
+ {-# LANGUAGE RankNTypes #-}
10
+ {-# LANGUAGE ScopedTypeVariables #-}
11
+ {-# LANGUAGE TypeFamilies #-}
12
+ {-# LANGUAGE ViewPatterns #-}
13
13
-- @UndecidableInstances@ extension is required for defining @Show@ instance of
14
14
-- @'AnyMessage'@ and @'AnyMessage'@.
15
- {-# LANGUAGE UndecidableInstances #-}
15
+ {-# LANGUAGE UndecidableInstances #-}
16
16
{-# OPTIONS_GHC -Wno-dodgy-imports #-}
17
17
18
18
-- | Stateful codec. This module is intended to be imported qualified.
@@ -31,7 +31,7 @@ module Network.TypedProtocol.Stateful.Codec
31
31
-- ** Related types
32
32
-- *** SomeMessage
33
33
, SomeMessage (.. )
34
- -- *** StateToken
34
+ -- *** StateToken
35
35
, StateToken
36
36
, StateTokenI (.. )
37
37
-- *** ActiveState
@@ -54,12 +54,12 @@ module Network.TypedProtocol.Stateful.Codec
54
54
import Data.Kind (Type )
55
55
import Data.Monoid (All (.. ))
56
56
57
- import Network.TypedProtocol.Core
58
57
import Network.TypedProtocol.Codec (CodecFailure (.. ),
59
- DecodeStep (.. ), SomeMessage (.. ), hoistDecodeStep ,
60
- isoDecodeStep , mapFailureDecodeStep , runDecoder ,
61
- runDecoderPure )
58
+ DecodeStep (.. ), SomeMessage (.. ), hoistDecodeStep ,
59
+ isoDecodeStep , mapFailureDecodeStep , runDecoder ,
60
+ runDecoderPure )
62
61
import qualified Network.TypedProtocol.Codec as TP hiding (AnyMessageAndAgency )
62
+ import Network.TypedProtocol.Core
63
63
64
64
65
65
-- | A stateful codec.
0 commit comments