Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module extracts a nested Map representation of a TOML file. It detects invalid key assignments and resolves dotted key assignments.
Synopsis
- data SemanticError = SemanticError {}
- data SemanticErrorKind
- semantics :: [Expr] -> Either (Located SemanticError) Table
Documentation
data SemanticError Source #
This type represents errors generated when resolving keys in a TOML document.
Since: 1.3.0.0
Instances
Read SemanticError Source # | Default instance |
Defined in Toml.Semantics readsPrec :: Int -> ReadS SemanticError # readList :: ReadS [SemanticError] # | |
Show SemanticError Source # | Default instance |
Defined in Toml.Semantics showsPrec :: Int -> SemanticError -> ShowS # show :: SemanticError -> String # showList :: [SemanticError] -> ShowS # | |
Eq SemanticError Source # | Default instance |
Defined in Toml.Semantics (==) :: SemanticError -> SemanticError -> Bool # (/=) :: SemanticError -> SemanticError -> Bool # | |
Ord SemanticError Source # | Default instance |
Defined in Toml.Semantics compare :: SemanticError -> SemanticError -> Ordering # (<) :: SemanticError -> SemanticError -> Bool # (<=) :: SemanticError -> SemanticError -> Bool # (>) :: SemanticError -> SemanticError -> Bool # (>=) :: SemanticError -> SemanticError -> Bool # max :: SemanticError -> SemanticError -> SemanticError # min :: SemanticError -> SemanticError -> SemanticError # |
data SemanticErrorKind Source #
Enumeration of the kinds of conflicts a key can generate.
Since: 1.3.0.0
AlreadyAssigned | Attempted to assign to a key that was already assigned |
ClosedTable | Attempted to open a table already closed |
ImplicitlyTable | Attempted to open a tables as an array of tables that was implicitly defined to be a table |
Instances
Read SemanticErrorKind Source # | Default instance |
Defined in Toml.Semantics | |
Show SemanticErrorKind Source # | Default instance |
Defined in Toml.Semantics showsPrec :: Int -> SemanticErrorKind -> ShowS # show :: SemanticErrorKind -> String # showList :: [SemanticErrorKind] -> ShowS # | |
Eq SemanticErrorKind Source # | Default instance |
Defined in Toml.Semantics (==) :: SemanticErrorKind -> SemanticErrorKind -> Bool # (/=) :: SemanticErrorKind -> SemanticErrorKind -> Bool # | |
Ord SemanticErrorKind Source # | Default instance |
Defined in Toml.Semantics compare :: SemanticErrorKind -> SemanticErrorKind -> Ordering # (<) :: SemanticErrorKind -> SemanticErrorKind -> Bool # (<=) :: SemanticErrorKind -> SemanticErrorKind -> Bool # (>) :: SemanticErrorKind -> SemanticErrorKind -> Bool # (>=) :: SemanticErrorKind -> SemanticErrorKind -> Bool # max :: SemanticErrorKind -> SemanticErrorKind -> SemanticErrorKind # min :: SemanticErrorKind -> SemanticErrorKind -> SemanticErrorKind # |