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

lazy doesn't work with always instead of (\_ -> ..) #50

Open
mathiajusth opened this issue May 8, 2021 · 0 comments
Open

lazy doesn't work with always instead of (\_ -> ..) #50

mathiajusth opened this issue May 8, 2021 · 0 comments

Comments

@mathiajusth
Copy link

Hello,
I have ran across this

This works:

parser : Parser ()
parser =
    Parser.lazy (\_ -> parser)

But this

parser : Parser ()
parser =
    Parser.lazy (always parser)

throws error The x value is defined directly in terms of itself, causing an infinite loop.
image

I guess it would be enought to add a Hint about it so that if someone runs linto this he doesn't have to debug it.

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