Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent default value is 1, not 0 #24

Open
mdgriffith opened this issue Nov 25, 2018 · 0 comments
Open

Indent default value is 1, not 0 #24

mdgriffith opened this issue Nov 25, 2018 · 0 comments

Comments

@mdgriffith
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant