Copyright | ©2020 James Alexander Feldman-Crough |
---|---|
License | MPL-2.0 |
Maintainer | alex@fldcr.com |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- strict :: (Applicative f, HasMetadata i) => RuleT i e f a -> RuleT i e f a
Documentation
strict :: (Applicative f, HasMetadata i) => RuleT i e f a -> RuleT i e f a Source #
Ensure that all properties and settings on a node are expected, and throw an error when extraneous metadata is attached. This is extremely useful for catching typos.
The matchers blockTag
,
inlineTag
, and literalTag
already match strictly: wrapping them in this combinator is unneccessary.