Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CaptureEncoding a = CaptureEncoding {
- appCaptureEncoding :: a -> Text
- class HasCaptureEncoding capStrategy where
- captureEncoding :: capStrategy a -> CaptureEncoding a
- newtype CaptureDecoding a = CaptureDecoding {
- appCaptureDecoding :: Text -> Maybe a
- class HasCaptureDecoding capStrategy where
- captureDecoding :: capStrategy a -> CaptureDecoding a
- data CaptureCodec a = CaptureCodec {
- captureCodecEncode :: a -> Text
- captureCodecDecode :: Text -> Maybe a
- class HasCaptureCodec capStrategy where
- captureCodec :: capStrategy a -> CaptureCodec a
- captureCodecToCaptureEncoding :: CaptureCodec a -> CaptureEncoding a
- captureCodecToCaptureDecoding :: CaptureCodec a -> CaptureDecoding a
- data BodyEncoding a = BodyEncoding {}
- class HasBodyEncoding bodyStrategy where
- bodyEncoding :: bodyStrategy a -> BodyEncoding a
- data BodyDecoding a = BodyDecoding {}
- class HasBodyDecoding bodyStrategy where
- bodyDecoding :: bodyStrategy a -> BodyDecoding a
- data BodyCodec a = BodyCodec {
- bodyCodecNames :: NonEmpty MediaType
- bodyCodecEncode :: a -> ByteString
- bodyCodecDecode :: ByteString -> Either Text a
- class HasBodyCodec bodyStrategy where
- bodyCodecToBodyEncoding :: BodyCodec a -> BodyEncoding a
- bodyCodecToBodyDecoding :: BodyCodec a -> BodyDecoding a
- showReadCaptureCodec :: (Show a, Read a) => CaptureCodec a
- showReadBodyCodec :: (Show a, Read a) => BodyCodec a
Capture Codecs
newtype CaptureEncoding a Source #
CaptureEncoding | |
|
Instances
HasCaptureEncoding CaptureEncoding Source # | |
Defined in Trasa.Codec captureEncoding :: CaptureEncoding a -> CaptureEncoding a Source # |
class HasCaptureEncoding capStrategy where Source #
captureEncoding :: capStrategy a -> CaptureEncoding a Source #
Instances
HasCaptureEncoding CaptureCodec Source # | |
Defined in Trasa.Codec captureEncoding :: CaptureCodec a -> CaptureEncoding a Source # | |
HasCaptureEncoding CaptureEncoding Source # | |
Defined in Trasa.Codec captureEncoding :: CaptureEncoding a -> CaptureEncoding a Source # |
newtype CaptureDecoding a Source #
CaptureDecoding | |
|
Instances
HasCaptureDecoding CaptureDecoding Source # | |
Defined in Trasa.Codec captureDecoding :: CaptureDecoding a -> CaptureDecoding a Source # |
class HasCaptureDecoding capStrategy where Source #
captureDecoding :: capStrategy a -> CaptureDecoding a Source #
Instances
HasCaptureDecoding CaptureCodec Source # | |
Defined in Trasa.Codec captureDecoding :: CaptureCodec a -> CaptureDecoding a Source # | |
HasCaptureDecoding CaptureDecoding Source # | |
Defined in Trasa.Codec captureDecoding :: CaptureDecoding a -> CaptureDecoding a Source # |
data CaptureCodec a Source #
CaptureCodec | |
|
Instances
HasCaptureCodec CaptureCodec Source # | |
Defined in Trasa.Codec captureCodec :: CaptureCodec a -> CaptureCodec a Source # | |
HasCaptureDecoding CaptureCodec Source # | |
Defined in Trasa.Codec captureDecoding :: CaptureCodec a -> CaptureDecoding a Source # | |
HasCaptureEncoding CaptureCodec Source # | |
Defined in Trasa.Codec captureEncoding :: CaptureCodec a -> CaptureEncoding a Source # |
class HasCaptureCodec capStrategy where Source #
captureCodec :: capStrategy a -> CaptureCodec a Source #
Instances
HasCaptureCodec CaptureCodec Source # | |
Defined in Trasa.Codec captureCodec :: CaptureCodec a -> CaptureCodec a Source # |
Body Codecs
data BodyEncoding a Source #
Instances
HasBodyEncoding BodyEncoding Source # | |
Defined in Trasa.Codec bodyEncoding :: BodyEncoding a -> BodyEncoding a Source # |
class HasBodyEncoding bodyStrategy where Source #
bodyEncoding :: bodyStrategy a -> BodyEncoding a Source #
Instances
HasBodyEncoding BodyCodec Source # | |
Defined in Trasa.Codec bodyEncoding :: BodyCodec a -> BodyEncoding a Source # | |
HasBodyEncoding BodyEncoding Source # | |
Defined in Trasa.Codec bodyEncoding :: BodyEncoding a -> BodyEncoding a Source # |
data BodyDecoding a Source #
Instances
HasBodyDecoding BodyDecoding Source # | |
Defined in Trasa.Codec bodyDecoding :: BodyDecoding a -> BodyDecoding a Source # |
class HasBodyDecoding bodyStrategy where Source #
bodyDecoding :: bodyStrategy a -> BodyDecoding a Source #
Instances
HasBodyDecoding BodyCodec Source # | |
Defined in Trasa.Codec bodyDecoding :: BodyCodec a -> BodyDecoding a Source # | |
HasBodyDecoding BodyDecoding Source # | |
Defined in Trasa.Codec bodyDecoding :: BodyDecoding a -> BodyDecoding a Source # |
BodyCodec | |
|
Instances
HasBodyCodec BodyCodec Source # | |
HasBodyDecoding BodyCodec Source # | |
Defined in Trasa.Codec bodyDecoding :: BodyCodec a -> BodyDecoding a Source # | |
HasBodyEncoding BodyCodec Source # | |
Defined in Trasa.Codec bodyEncoding :: BodyCodec a -> BodyEncoding a Source # |
class HasBodyCodec bodyStrategy where Source #
Instances
HasBodyCodec BodyCodec Source # | |
bodyCodecToBodyEncoding :: BodyCodec a -> BodyEncoding a Source #
bodyCodecToBodyDecoding :: BodyCodec a -> BodyDecoding a Source #
Type Class Based Codecs
showReadCaptureCodec :: (Show a, Read a) => CaptureCodec a Source #