mdgriffith/elm-markup/3.0.1

Mark.Error

type alias Error =
Rendered

Rendering Errors

toString : Error -> String
toHtml : Theme -> Error -> Html msg
type Theme
= Dark
| Light
toDetails : Error -> Details
type alias Details =
{ title : String
, message : List Text
, region : Maybe Range
}
type alias Text =
{ text : String
, bold : Bool
, underline : Bool
, color : Maybe String
}
type alias Range =
{ start : Position
, end : Position
}
type alias Position =
{ offset : Int
, line : Int
, column : Int
}

Creating Custom Errors

type alias Custom =
{ title : String
, message : List String
}

Create a custom error message to use with Mark.verify