| Copyright | (c) Microsoft |
|---|---|
| License | MIT |
| Maintainer | adamsap@microsoft.com |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Language.Bond.Parser
Contents
Description
This module provides functionality necessary to parse Bond schema definition language.
- parseBond :: SourceName -> String -> FilePath -> ImportResolver -> IO (Either ParseError Bond)
- type ImportResolver = FilePath -> FilePath -> IO (FilePath, String)
Parser
Arguments
| :: SourceName | source name, used only for error messages |
| -> String | content of a schema file to parse |
| -> FilePath | path of the file being parsed, used to resolve relative import paths |
| -> ImportResolver | function to resolve and load imported files |
| -> IO (Either ParseError Bond) | function returns |
Parses content of a schema definition file.
type ImportResolver Source #