stil4m / elm-syntax / Elm.Syntax.Comments

This syntax represents both single and multi line comments in Elm. For example:

-- A comment




{- Some
   multi
   line
   comment
-}

Types


type alias Comment =
String

Type representing the comment syntax

Serialization

encode : Comment -> Json.Encode.Value

Encode a Comment syntax element to JSON.

decoder : Json.Decode.Decoder Comment

JSON decoder for a Comment syntax element.