Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class EncodeF f instr outstr where
- encodeF :: instr -> f outstr
- class EncodeFAll f (xs :: [Symbol]) c str where
- encodeFAll :: Enc '[] c str -> f (Enc xs c str)
- encodeAll :: forall xs c str. EncodeFAll Identity (xs :: [Symbol]) c str => Enc '[] c str -> Enc xs c str
- encodeFPart_ :: forall f xs xsf c str. (Functor f, EncodeFAll f xs c str) => Proxy xs -> Enc xsf c str -> f (Enc (Append xs xsf) c str)
- encodeFPart :: forall (xs :: [Symbol]) xsf f c str. (Functor f, EncodeFAll f xs c str) => Enc xsf c str -> f (Enc (Append xs xsf) c str)
- encodePart_ :: EncodeFAll Identity (xs :: [Symbol]) c str => Proxy xs -> Enc xsf c str -> Enc (Append xs xsf) c str
- encodePart :: forall (xs :: [Symbol]) xsf c str. EncodeFAll Identity xs c str => Enc xsf c str -> Enc (Append xs xsf) c str
Documentation
class EncodeF f instr outstr where Source #
Instances
class EncodeFAll f (xs :: [Symbol]) c str where Source #
encodeFAll :: Enc '[] c str -> f (Enc xs c str) Source #
Instances
Applicative f => EncodeFAll f ([] :: [Symbol]) c str Source # | |
Defined in Data.TypedEncoding.Internal.Class.Encode encodeFAll :: Enc [] c str -> f (Enc [] c str) Source # | |
(Monad f, EncodeFAll f xs c str, EncodeF f (Enc xs c str) (Enc (x ': xs) c str)) => EncodeFAll f (x ': xs) c str Source # | |
Defined in Data.TypedEncoding.Internal.Class.Encode encodeFAll :: Enc [] c str -> f (Enc (x ': xs) c str) Source # |
encodeAll :: forall xs c str. EncodeFAll Identity (xs :: [Symbol]) c str => Enc '[] c str -> Enc xs c str Source #
encodeFPart_ :: forall f xs xsf c str. (Functor f, EncodeFAll f xs c str) => Proxy xs -> Enc xsf c str -> f (Enc (Append xs xsf) c str) Source #
encodeFPart :: forall (xs :: [Symbol]) xsf f c str. (Functor f, EncodeFAll f xs c str) => Enc xsf c str -> f (Enc (Append xs xsf) c str) Source #
encodePart_ :: EncodeFAll Identity (xs :: [Symbol]) c str => Proxy xs -> Enc xsf c str -> Enc (Append xs xsf) c str Source #
encodePart :: forall (xs :: [Symbol]) xsf c str. EncodeFAll Identity xs c str => Enc xsf c str -> Enc (Append xs xsf) c str Source #
for some reason ApplyTypes syntax does not want to work if xs is specified with polymorphic [Symbol]