Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

"Uncaught TypeError: Cannot read property 'ctor' of undefined" when using Combine.parens #14

Closed
Dobiasd opened this issue May 21, 2016 · 2 comments

Comments

@Dobiasd
Copy link
Contributor

Dobiasd commented May 21, 2016

Hi,

this minimal example produces that error. Here is my elm-package.json

Is this a bug, or is the error on my side? If I set

stringToParse = "a"

everything works fine.

@Bogdanp
Copy link
Collaborator

Bogdanp commented May 21, 2016

Hi!

The issue is you are eagerly calling dataParser in its body.

Check out http://package.elm-lang.org/packages/Bogdanp/elm-combine/2.2.1/Combine#rec and https://github.com/Bogdanp/elm-combine/issues/7#issuecomment-177468446 for a more in-depth explanation.

@Bogdanp Bogdanp closed this as completed May 21, 2016
@Dobiasd
Copy link
Contributor Author

Dobiasd commented May 21, 2016

Argh, no lazyness, of course. Thank you very much, and sorry for bothering.

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

No branches or pull requests

2 participants