mdgriffith / elm-markup / Mark.Error


type alias Error =
Mark.Internal.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 : Basics.Bool
, underline : Basics.Bool
, color : Maybe String 
}


type alias Range =
{ start : Position
, end : Position 
}


type alias Position =
{ offset : Basics.Int
, line : Basics.Int
, column : Basics.Int 
}

Creating Custom Errors


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

Create a custom error message to use with Mark.verify