darcs-2.16.5: a distributed, interactive, smart revision control system

Safe Haskell | Safe-Inferred
Language | Haskell2010

Darcs.Patch.FromPrim

# Documentation

class PrimPatch (PrimOf p) => PrimPatchBase p #

Associated Types

type PrimOf (p :: * -> * -> *) :: * -> * -> * #

#### Instances

Instances details

PrimPatchBase p => PrimPatchBase (Invertible p) # |
Instance details Defined in Darcs.Patch.Invertible Associated Types type PrimOf (Invertible p) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (Named p) # |
Instance details Defined in Darcs.Patch.Named Associated Types type PrimOf (Named p) :: Type -> Type -> Type #
PrimPatch prim => PrimPatchBase (RebaseChange prim) # |
Instance details Defined in Darcs.Patch.Rebase.Change Associated Types type PrimOf (RebaseChange prim) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (WithDroppedDeps p) # |
Instance details Defined in Darcs.Patch.Rebase.Change Associated Types type PrimOf (WithDroppedDeps p) :: Type -> Type -> Type #
PrimPatch prim => PrimPatchBase (RebaseFixup prim) # |
Instance details Defined in Darcs.Patch.Rebase.Fixup Associated Types type PrimOf (RebaseFixup prim) :: Type -> Type -> Type #
PrimPatch prim => PrimPatchBase (RepoPatchV1 prim) # |
Instance details Defined in Darcs.Patch.V1.Core Associated Types type PrimOf (RepoPatchV1 prim) :: Type -> Type -> Type #
PrimPatch prim => PrimPatchBase (RepoPatchV2 prim) # |
Instance details Defined in Darcs.Patch.V2.RepoPatch Associated Types type PrimOf (RepoPatchV2 prim) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (FL p) # |
Instance details Defined in Darcs.Patch.FromPrim Associated Types type PrimOf (FL p) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (RL p) # |
Instance details Defined in Darcs.Patch.FromPrim Associated Types type PrimOf (RL p) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (WrappedNamed rt p) # |
Instance details Defined in Darcs.Patch.Named.Wrapped Associated Types type PrimOf (WrappedNamed rt p) :: Type -> Type -> Type #
PrimPatchBase p => PrimPatchBase (PatchInfoAndG rt p) # |
Instance details Defined in Darcs.Patch.PatchInfoAnd Associated Types type PrimOf (PatchInfoAndG rt p) :: Type -> Type -> Type #
PrimPatch prim => PrimPatchBase (RepoPatchV3 name prim) # |
Instance details Defined in Darcs.Patch.V3.Core Associated Types type PrimOf (RepoPatchV3 name prim) :: Type -> Type -> Type #

class FromPrim p where #

Minimal complete definition

fromAnonymousPrim

Methods

fromAnonymousPrim :: PrimOf p wX wY -> p wX wY #

fromPrim :: PatchId p -> PrimOf p wX wY -> p wX wY #

default fromPrim :: PatchId p ~ () => PatchId p -> PrimOf p wX wY -> p wX wY #

fromPrims :: PatchInfo -> FL (PrimOf p) wX wY -> FL p wX wY #

default fromPrims :: PatchId p ~ () => PatchInfo -> FL (PrimOf p) wX wY -> FL p wX wY #

#### Instances

Instances details

FromPrim (RepoPatchV1 prim) # |
Instance details Defined in Darcs.Patch.V1.Core Methods fromAnonymousPrim :: PrimOf (RepoPatchV1 prim) wX wY -> RepoPatchV1 prim wX wY # fromPrim :: PatchId (RepoPatchV1 prim) -> PrimOf (RepoPatchV1 prim) wX wY -> RepoPatchV1 prim wX wY # fromPrims :: PatchInfo -> FL (PrimOf (RepoPatchV1 prim)) wX wY -> FL (RepoPatchV1 prim) wX wY #
FromPrim (RepoPatchV2 prim) # |
Instance details Defined in Darcs.Patch.V2.RepoPatch Methods fromAnonymousPrim :: PrimOf (RepoPatchV2 prim) wX wY -> RepoPatchV2 prim wX wY # fromPrim :: PatchId (RepoPatchV2 prim) -> PrimOf (RepoPatchV2 prim) wX wY -> RepoPatchV2 prim wX wY # fromPrims :: PatchInfo -> FL (PrimOf (RepoPatchV2 prim)) wX wY -> FL (RepoPatchV2 prim) wX wY #
FromPrim (RepoPatchV3 prim) # |
Instance details Defined in Darcs.Patch.V3 Methods fromAnonymousPrim :: PrimOf (RepoPatchV3 prim) wX wY -> RepoPatchV3 prim wX wY # fromPrim :: PatchId (RepoPatchV3 prim) -> PrimOf (RepoPatchV3 prim) wX wY -> RepoPatchV3 prim wX wY # fromPrims :: PatchInfo -> FL (PrimOf (RepoPatchV3 prim)) wX wY -> FL (RepoPatchV3 prim) wX wY #

class ToPrim p where #

Methods

toPrim :: p wX wY -> Maybe (PrimOf p wX wY) #

#### Instances

Instances details

ToPrim (RepoPatchV1 prim) # |
Instance details Defined in Darcs.Patch.V1.Core Methods toPrim :: RepoPatchV1 prim wX wY -> Maybe (PrimOf (RepoPatchV1 prim) wX wY) #
ToPrim (RepoPatchV2 prim) # |
Instance details Defined in Darcs.Patch.V2.RepoPatch Methods toPrim :: RepoPatchV2 prim wX wY -> Maybe (PrimOf (RepoPatchV2 prim) wX wY) #
ToPrim (RepoPatchV3 name prim) # |
Instance details Defined in Darcs.Patch.V3.Core Methods toPrim :: RepoPatchV3 name prim wX wY -> Maybe (PrimOf (RepoPatchV3 name prim) wX wY) #

type ToFromPrim p = (FromPrim p, ToPrim p) #