| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Herb.Parser
Description
Attoparsec parser for Herb accompanied by a simple compatible formatter.
Documentation
Parser for a single Herb term compatible with Data.Attoparsec.Text.
The parsed format is exactly the one produced by formatHerb.
decodeHerb :: FromHerb a => Text -> Either String a Source #
Parse Text into a single Herb structure (reverse of
formatHerb).
To avoid actual parsing into a data structure and decode into "plain Herb",
use getPlainHerb.