parser
parser copied to clipboard
Indent default value is 1, not 0
getIndent
has a default of 1
as opposed to 0
as mentioned in the docs.
module Main exposing (main)
import Html exposing (text)
import Parser
main =
case Parser.run Parser.getIndent "" of
Ok indent ->
text (String.fromInt indent)
Err err ->
text "something atrocious"
https://ellie-app.com/3Z2FRkCJP8Ba1
(I've been having such a ball writing a parser, thank you so much for this package)