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

Safe Haskell | None
Language | Haskell2010

Darcs.Patch.Read

Synopsis

- class ReadPatch (p :: Type -> Type -> Type) where
  - readPatch' :: Parser (Sealed (p wX))
- readPatch :: forall (p :: Type -> Type -> Type) wX. ReadPatch p => ByteString -> Either String (Sealed (p wX))
- readPatchPartial :: forall (p :: Type -> Type -> Type) wX. ReadPatch p => ByteString -> Either String (Sealed (p wX), ByteString)
- bracketedFL :: forall (p :: Type -> Type -> Type) wX. (forall wY. Parser (Sealed (p wY))) -> Char -> Char -> Parser (Sealed (FL p wX))
- peekfor :: ByteString -> Parser a -> Parser a -> Parser a
- readFileName :: HasCallStack => FileNameFormat -> Parser AnchoredPath

# Documentation

class ReadPatch (p :: Type -> Type -> Type) where #

This class is used to decode patches from their binary representation.

Methods

readPatch' :: Parser (Sealed (p wX)) #

#### Instances

Instances details

ReadPatch Prim # |
Instance details Defined in Darcs.Patch.Prim.FileUUID.Read Methods readPatch' :: Parser (Sealed (Prim wX)) #
ReadPatch RebaseName # |
Instance details Defined in Darcs.Patch.Rebase.Name Methods readPatch' :: Parser (Sealed (RebaseName wX)) #
ReadPatch Prim # |
Instance details Defined in Darcs.Patch.V1.Prim Methods readPatch' :: Parser (Sealed (Prim wX)) #
ReadPatch Prim # |
Instance details Defined in Darcs.Patch.V2.Prim Methods readPatch' :: Parser (Sealed (Prim wX)) #
ReadPatch p => ReadPatch (Bracketed p) # |
Instance details Defined in Darcs.Patch.Read Methods readPatch' :: Parser (Sealed (Bracketed p wX)) #
(ReadPatch p, PatchListFormat p) => ReadPatch (Named p) # |
Instance details Defined in Darcs.Patch.Named Methods readPatch' :: Parser (Sealed (Named p wX)) #
(ReadPatch p, Ident p, PatchId p ~ PatchInfo) => ReadPatch (PatchInfoAndG p) # |
Instance details Defined in Darcs.Patch.PatchInfoAnd Methods readPatch' :: Parser (Sealed (PatchInfoAndG p wX)) #
(ReadPatch prim, PatchListFormat prim) => ReadPatch (RebaseChange prim) # |
Instance details Defined in Darcs.Patch.Rebase.Change Methods readPatch' :: Parser (Sealed (RebaseChange prim wX)) #
ReadPatch prim => ReadPatch (RebaseFixup prim) # |
Instance details Defined in Darcs.Patch.Rebase.Fixup Methods readPatch' :: Parser (Sealed (RebaseFixup prim wX)) #
(PrimPatchBase p, PatchListFormat p, ReadPatch p) => ReadPatch (RebaseItem p) # |
Instance details Defined in Darcs.Patch.Rebase.Legacy.Item Methods readPatch' :: Parser (Sealed (RebaseItem p wX)) #
RepoPatch p => ReadPatch (WrappedNamed p) # |
Instance details Defined in Darcs.Patch.Rebase.Legacy.Wrapped Methods readPatch' :: Parser (Sealed (WrappedNamed p wX)) #
PrimPatch prim => ReadPatch (RepoPatchV1 prim) # |
Instance details Defined in Darcs.Patch.V1.Read Methods readPatch' :: Parser (Sealed (RepoPatchV1 prim wX)) #
PrimPatch prim => ReadPatch (RepoPatchV2 prim) # |
Instance details Defined in Darcs.Patch.V2.RepoPatch Methods readPatch' :: Parser (Sealed (RepoPatchV2 prim wX)) #
(ReadPatch p, PatchListFormat p) => ReadPatch (FL p) # |
Instance details Defined in Darcs.Patch.Read Methods readPatch' :: Parser (Sealed (FL p wX)) #
(ReadPatch p, PatchListFormat p) => ReadPatch (RL p) # |
Instance details Defined in Darcs.Patch.Read Methods readPatch' :: Parser (Sealed (RL p wX)) #
(StorableId name, ReadPatch p) => ReadPatch (PrimWithName name p) # |
Instance details Defined in Darcs.Patch.Prim.WithName Methods readPatch' :: Parser (Sealed (PrimWithName name p wX)) #
(SignedId name, StorableId name, PrimPatch prim) => ReadPatch (RepoPatchV3 name prim) # |
Instance details Defined in Darcs.Patch.V3.Core Methods readPatch' :: Parser (Sealed (RepoPatchV3 name prim wX)) #

readPatch :: forall (p :: Type -> Type -> Type) wX. ReadPatch p => ByteString -> Either String (Sealed (p wX)) #

readPatchPartial :: forall (p :: Type -> Type -> Type) wX. ReadPatch p => ByteString -> Either String (Sealed (p wX), ByteString) #

bracketedFL :: forall (p :: Type -> Type -> Type) wX. (forall wY. Parser (Sealed (p wY))) -> Char -> Char -> Parser (Sealed (FL p wX)) #

peekfor :: ByteString -> Parser a -> Parser a -> Parser a #

readFileName :: HasCallStack => FileNameFormat -> Parser AnchoredPath #