| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
KDL.Parser
Contents
Description
Implement the v2 parser specified at: https://kdl.dev/spec/#name-full-grammar
Synopsis
- parse :: Text -> Either Text Document
- parseFile :: FilePath -> IO (Either Text Document)
- data ParseConfig = ParseConfig {
- filepath :: FilePath
- includeSpans :: Bool
- parseWith :: ParseConfig -> Text -> Either Text Document
- parseFileWith :: ParseConfig -> FilePath -> IO (Either Text Document)
Documentation
Configurable parsing
data ParseConfig Source #
Constructors
| ParseConfig | |
Fields
| |
Instances
| Default ParseConfig Source # | |
Defined in KDL.Parser.Internal Methods def :: ParseConfig # | |
parseFileWith :: ParseConfig -> FilePath -> IO (Either Text Document) Source #