parser icon indicating copy to clipboard operation
parser copied to clipboard

Indent default value is 1, not 0

Open mdgriffith opened this issue 6 years ago • 0 comments

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)

mdgriffith avatar Nov 25 '18 21:11 mdgriffith