Data.Managed.Encoding
class Encoding a Source #
Associated Types
type In a :: Type Source #
type Out a :: Type Source #
Defined in Data.Managed.Encodings.ShowRead
type In SR Source #
type Out SR Source #
class Encode t rep where Source #
Methods
encode :: t -> Out rep Source #
encode :: a -> Out SR Source #
class Decode t rep where Source #
decode :: In rep -> Maybe t Source #
decode :: In SR -> Maybe a Source #
withEncoding :: forall e i o. (Encode o e, Decode i e) => (i -> o) -> In e -> Maybe (Out e) Source #