Skip to content

hyperpolymath/a2ml-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

a2ml-haskell

Haskell library for parsing and rendering A2ML (Attested Markup Language) — attestation-native markup carrying trust metadata, cryptographic attestation fields, and provenance information.

Overview

a2ml-haskell provides a purely functional parser and renderer over Text:

  • Data.A2ML.ParserparseA2ML :: Text → Either ParseError Document. Line-oriented, no regex, no mutable state. Recognises headings, multi-line directive blocks (@name: …​ @end), bullet lists, and inline formatting.

  • Data.A2ML.Renderer — serialises a Document back to canonical A2ML.

  • Data.A2ML.TypesDocument, Block, Inline, DirectiveName (typed sum: DirAbstract, DirRefs, DirAttestation, DirMeta, DirCustom Text), Attestation, TrustLevel, Manifest, Reference.

The Haskell variant uses richer directive syntax than a2ml-rs: directives are multi-line @name: …​ @end blocks (not single-line @name value pairs).

Attestation Model

The Attestation type carries:

  • attestationSigner — identity of the signing agent or person

  • attestationAlgorithm — e.g. "ed25519" or "sha256"

  • attestationSignature — hex or base64 signature (opaque, not verified here)

  • attestationTimestamp — optional ISO-8601 timestamp

TrustLevel encodes attestor count and independence: UnsignedSelfAttestedThirdPartyAttestedMultiAttested.

Manifest aggregates title, author, version, SPDX license, overall trust level, and the full attestation list — the entry point for provenance inspection.

Building

cabal build
cabal test

License

PMPL-1.0-or-later. See LICENSE.

About

Haskell library for parsing and rendering A2ML (Attested Markup Language) — Hackage-ready

Topics

Resources

License

Unknown, MPL-2.0 licenses found

Licenses found

Unknown
LICENSE
MPL-2.0
LICENSE-MPL-2.0

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors