stil4m/elm-syntax/7.1.2

NOTE: the latest version is 7.3.9

Elm.Syntax.Comments

Comment Syntax

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 -> Value

Encode a Comment syntax element to JSON.

decoder : Decoder Comment

JSON decoder for a Comment syntax element.