frontmatter alternatives and similar packages
Based on the "Data" category.
Alternatively, view frontmatter alternatives based on common mentions on social networks and blogs.
-
lens
Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens -
semantic-source
Parsing, analyzing, and comparing source code across many languages -
code-builder
Packages for defining APIs, running them, generating client code and documentation. -
text
Haskell library for space- and time-efficient operations over Unicode text. -
compendium-client
Mu (μ) is a purely functional framework for building micro services. -
cassava
A CSV parsing and encoding library optimized for ease of use and high performance -
unordered-containers
Efficient hashing-based container types -
holmes
A reference library for constraint-solving with propagators and CDCL. -
binary
Efficient, pure binary serialisation using ByteStrings in Haskell. -
primitive
This package provides various primitive memory-related operations. -
resource-pool
A high-performance striped resource pooling implementation for Haskell -
audiovisual
Extensible records, variants, structs, effects, tangles -
discrimination
Fast linear time sorting and discrimination for a large class of data types -
dependent-map
Dependently-typed finite maps (partial dependent products) -
dependent-sum
Dependent sums and supporting typeclasses for comparing and displaying them -
IORefCAS
A collection of different packages for CAS based data structures. -
safecopy
An extension to Data.Serialize with built-in version control -
streaming
An optimized general monad transformer for streaming applications, with a simple prelude of functions -
orgmode-parse
Attoparsec parser combinators for parsing org-mode structured text! -
reflection
Reifies arbitrary Haskell terms into types that can be reflected back into terms -
uuid-types
A Haskell library for creating, printing and parsing UUIDs -
scientific
Arbitrary-precision floating-point numbers represented using scientific notation
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of frontmatter or a related project?
README
haskell-frontmatter
Attoparsec parsers for YAML frontmatter as used in Jekyll. Because of how
Data.Yaml
is implemented using Data.Aeson
, the
Data.Yaml.Frontmatter.frontmatterYaml
instance of Parser
works with YAML and
JSON.
Installation
$ stack install frontmatter
Usage
import Data.Frontmatter
import Data.Yaml (Value)
main = ByteString.readFile "something.md" >>= parseYamlFrontmatter >>= \case
Done ri fm -> do
print (fm :: Value) -- aeson object in the frontmatter (the explicit
-- type required because the parser will return
-- anything with a FromJSON
putStrLn ri -- rest of the document
_ -> error "Parse failure"
See the haddocks for more information. Essentially exports an Attoparsec
parser and some helpers. Usage examples also available at the test
directory.
Why?
I'm working on the Haskell workshop tool
workhs
. In my mind, using markdown file
names as metadata is a very sensible decision. However, I'd like for tutorial
writers to be able to override metadata. Then, Jekyll's YAML frontmatter format
is a great choice:
- It's familiar
- It's very, very easy to implement
License
This software is published under the MIT license. For more information refer to the LICENSE file.
*Note that all licence references and agreements mentioned in the frontmatter README section above
are relevant to that project's source code only.