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

Decimal values error #23

Closed
scitesy opened this issue Jul 4, 2012 · 6 comments
Closed

Decimal values error #23

scitesy opened this issue Jul 4, 2012 · 6 comments
Assignees

Comments

@scitesy
Copy link

scitesy commented Jul 4, 2012

main = asText 10.25

yields this error: Type error: Int is not equal to 111 -> 112

and

main = asText [ 11.5, 20, 21.1 ]

yields this error: Type error: Int is not equal to 125 -> 126

@evancz
Copy link
Member

evancz commented Jul 5, 2012

The issue is with parsing decimal numbers. They are being treated as function composition. It looks like a couple little bugs are coming out, so I'll fix them up in an incremental release. The best option until then is to use fractions. Sorry about having such a silly problem.

@ghost ghost assigned evancz Jul 5, 2012
@scitesy
Copy link
Author

scitesy commented Jul 5, 2012

Thanks for providing Elm. It is alot of fun!

@evancz
Copy link
Member

evancz commented Jul 31, 2012

This is added to the latest version of the compiler. Awaiting release!

@scitesy
Copy link
Author

scitesy commented Aug 1, 2012

I updated my hsenv from source and the two simple tests above work as expected. Thanks Evan!

@evancz
Copy link
Member

evancz commented Aug 16, 2012

Just released new version, so it's available through Hackage :)

@evancz evancz closed this as completed Aug 16, 2012
@scitesy
Copy link
Author

scitesy commented Aug 18, 2012

Thanks again Evan!

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

No branches or pull requests

2 participants