Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- parse :: ByteString -> Either (ParseErrorBundle ByteString Void) Directory
- serialize :: Directory -> ByteString
- data Entry = Entry {}
- newtype Directory = Directory {
- directoryChildren :: [Entry]
- newtype DirectoryCapability a = DirectoryCapability a
- pVerifyCHK :: Parser (DirectoryCapability Verifier)
- pReadCHK :: Parser (DirectoryCapability Reader)
- pVerifySDMF :: Parser (DirectoryCapability Verifier)
- pReadSDMF :: Parser (DirectoryCapability Reader)
- pWriteSDMF :: Parser (DirectoryCapability Writer)
Documentation
parse :: ByteString -> Either (ParseErrorBundle ByteString Void) Directory Source #
Parse the serialized form of a directory into a Directory.
serialize :: Directory -> ByteString Source #
Serialize a Directory to the canonical bytes representation.
A reference to an object of any kind.
Entry | |
|
newtype DirectoryCapability a Source #
A wrapper around some other capability type which signals that the plaintext is an encoded list of files.
Instances
pVerifyCHK :: Parser (DirectoryCapability Verifier) Source #
Parse a CHK directory verifier capability.
The implementation is a cheesy hack that does string substitution on the input before applying the original CHK verifier parser.
pReadCHK :: Parser (DirectoryCapability Reader) Source #
Parse a CHK directory reader capability.
The implementation is a cheesy hack that does string substitution on the input before applying the original CHK reader parser.
pVerifySDMF :: Parser (DirectoryCapability Verifier) Source #
Parse an SDMF directory verifier capability. As is the case for the other directory capability parsers, the implementation is cheesy.
pReadSDMF :: Parser (DirectoryCapability Reader) Source #
Parse an SDMF directory reader capability. As is the case for the other directory capability parsers, the implementation is cheesy.
pWriteSDMF :: Parser (DirectoryCapability Writer) Source #
Parse an SDMF directory writer capability. As is the case for the other directory capability parsers, the implementation is cheesy.