lerzegov/elm-markup-fork/2.0.0

Formerly lerzegov/elm-markup. Search finds this package by either name.

Mark.Internal.Error

type Error
= DocumentMismatch
| CompilerError
| ParsingIssue (List (DeadEnd Context Problem))
| UnknownBlock (List String)
| UnknownInline (List String)
| FailMatchOneOf (List String)
| MissingFields (List String)
| NonMatchingFields
{ expecting : List String
, found : List String
}
| UnexpectedField
{ found : String
, options : List String
, recordName : String
}
| ExpectingIndent Int
| CantStartTextWithSpace
| UnclosedStyle
{ bold : Bool
, italic : Bool
, strike : Bool
}
| BadFloat
| BadInt
| BadBool
| Custom
{ title : String
, message : List String
}
| EditingError EditErr
render : String -> UnexpectedDetails -> Rendered
type Context
= InBlock String
| InInline String
| InRecord String
| InRecordField String
type Problem
= ExpectingIndentation Int
| InlineStart
| InlineEnd
| BlockStart
| Expecting String
| ExpectingBlockName String
| ExpectingInlineName String
| ExpectingFieldName String
| Escape
| EscapedChar
| Newline
| Space
| End
| Integer
| FloatingPoint
| InvalidNumber
type alias UnexpectedDetails =
{ range : Range
, problem : Error
}
renderParsingErrors : String -> List (DeadEnd Context Problem) -> Rendered
type EditErr
= IdNotFound
| InvalidTextEdit
| InvalidInsert
| InvalidDelete
| DocumentDoesntAllow String (List String)
= NoMatch
= Rendered
{ title : String
, problem : Error
, region :
{ start : Position
, end : Position
}
, message : List Text
}
| Global
{ problem : Error
, title : String
, message : List Text
}