Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TODO remove ASAP. figure out Aeson with Vinyl
Synopsis
- data MultiPatch s (v :: Via) a = MultiPatch {
- mpData :: a
- mpSeek :: s
- mpCompare :: Maybe (CompareRep v a)
- mpNullTerminates :: Maybe Natural
- mpMaxBytes :: Maybe Natural
- mpAligned :: Maybe Integer
- data Aligned p = Aligned {
- alignedAlign :: Integer
- alignedPatches :: [p]
- jsonCfgCamelDrop :: Int -> Options
- convert :: (MultiPatch s v a -> Rec (Flap a) fs) -> MultiPatch s v a -> Patch s fs a
- convertBinAlign :: forall a v. MultiPatch Integer v a -> Patch Integer '[Const (Meta Int), Const MetaPrep, Meta v, Meta] a
- convertBin :: forall s a v. MultiPatch s v a -> Patch s '[Const MetaPrep, Meta v, Meta] a
- convertAlign :: forall a v. MultiPatch Integer v a -> Patch Integer '[Const (Meta Int)] a
- convertEmpty :: forall s a v. MultiPatch s v a -> Patch s '[] a
- align :: forall st a ss rs is i r. (r ~ Const (Meta st), Num st, Eq st, rs ~ RDelete r ss, RElem r ss i, RSubset rs ss is) => Aligned (Patch Integer ss a) -> Either (Error st) [Patch st rs a]
- cmBin :: MultiPatch s c a -> Rec (Flap a) '[Meta]
- cmCompare :: MultiPatch s v a -> Rec (Flap a) '[Meta v]
- cmBinPrep :: MultiPatch s c a -> Rec (Flap a) '[Const MetaPrep]
- cmAlign :: MultiPatch Integer c a -> Rec (Flap a) '[Const (Meta Int)]
- cm :: f a -> Rec (Flap a) '[f]
- metaWrap1 :: f a -> HFunctorList '[f] a
- metaEmpty :: HFunctorList '[] a
- convertBackBin :: forall v s a. Patch s '[Meta v, Meta] a -> MultiPatch s v a
Documentation
data MultiPatch s (v :: Via) a Source #
MultiPatch | |
|
Instances
Aligned | |
|
Instances
FromJSON p => FromJSON (Aligned p) Source # | |
ToJSON p => ToJSON (Aligned p) Source # | |
Defined in StreamPatch.Simple | |
Generic (Aligned p) Source # | |
Show p => Show (Aligned p) Source # | |
Eq p => Eq (Aligned p) Source # | |
type Rep (Aligned p) Source # | |
Defined in StreamPatch.Simple type Rep (Aligned p) = D1 ('MetaData "Aligned" "StreamPatch.Simple" "bytepatch-0.4.1-inplace" 'False) (C1 ('MetaCons "Aligned" 'PrefixI 'True) (S1 ('MetaSel ('Just "alignedAlign") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "alignedPatches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [p]))) |
jsonCfgCamelDrop :: Int -> Options Source #
convert :: (MultiPatch s v a -> Rec (Flap a) fs) -> MultiPatch s v a -> Patch s fs a Source #
convertBinAlign :: forall a v. MultiPatch Integer v a -> Patch Integer '[Const (Meta Int), Const MetaPrep, Meta v, Meta] a Source #
convertBin :: forall s a v. MultiPatch s v a -> Patch s '[Const MetaPrep, Meta v, Meta] a Source #
convertAlign :: forall a v. MultiPatch Integer v a -> Patch Integer '[Const (Meta Int)] a Source #
convertEmpty :: forall s a v. MultiPatch s v a -> Patch s '[] a Source #
align :: forall st a ss rs is i r. (r ~ Const (Meta st), Num st, Eq st, rs ~ RDelete r ss, RElem r ss i, RSubset rs ss is) => Aligned (Patch Integer ss a) -> Either (Error st) [Patch st rs a] Source #
metaWrap1 :: f a -> HFunctorList '[f] a Source #
Convenience function to wrap a single meta into an HFunctorList
.
metaEmpty :: HFunctorList '[] a Source #
Convenience function for the empty HFunctorList
.
convertBackBin :: forall v s a. Patch s '[Meta v, Meta] a -> MultiPatch s v a Source #