abnf-0.4.1.0: Parse ABNF and generate parsers for the specified document

Copyright(c) Martin Zeller, 2016
LicenseBSD2
MaintainerMartin Zeller <mz.bremerhaven@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Text.ABNF.ABNF.Canonicalizer

Description

 

Synopsis

Documentation

canonicalizeRules Source #

Arguments

:: Text

The main, or top-level, Rule

-> [Rule]

List of Rules to canonicalize

-> Maybe Rule

The operation may fail for a number of reasons, for example, because the main Rule does not exist

Canonicalize a list of Rules, leaving only a single Rule.