| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Data.PackStream.Generic
Description
Internal module. Not part of the public API.
Synopsis
- class GPackStream (f :: Type -> Type)
- genericToPs :: (Generic a, GPackStream (Rep a)) => a -> Ps
- genericFromPs :: (Generic a, GPackStream (Rep a)) => Ps -> Result a
- newtype GenericPackStream a = GenericPackStream a
Documentation
class GPackStream (f :: Type -> Type) Source #
Generic representation class for PackStream encoding/decoding.
Minimal complete definition
gToPs, gFromPs
Instances
| GPackStream (U1 :: Type -> Type) Source # | |
| (GPackStream a, GProdPack b) => GPackStream (a :*: b) Source # | |
| (GSumPack a, GSumPack b, SumSize a, SumSize b) => GPackStream (a :+: b) Source # | |
| PackStream a => GPackStream (K1 i a :: Type -> Type) Source # | |
| GPackStream a => GPackStream (M1 t c a) Source # | |
genericToPs :: (Generic a, GPackStream (Rep a)) => a -> Ps Source #
genericFromPs :: (Generic a, GPackStream (Rep a)) => Ps -> Result a Source #
newtype GenericPackStream a Source #
Newtype wrapper providing a PackStream instance via Generics.
Constructors
| GenericPackStream a |
Instances
| (Generic a, GPackStream (Rep a)) => PackStream (GenericPackStream a) Source # | |
Defined in Data.PackStream.Generic | |