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

Wrong number of arguments in printf #390

Closed
roboguy13 opened this issue Jun 21, 2017 · 2 comments
Closed

Wrong number of arguments in printf #390

roboguy13 opened this issue Jun 21, 2017 · 2 comments

Comments

@roboguy13
Copy link

roboguy13 commented Jun 21, 2017

There are at least two spots where printf is provided with the wrong number of arguments: here and here.

As it stands, it looks like if you run into one of these outside of GHCi you just get the message printf: argument list ended prematurely. Inside GHCi, it looks like you get a partial printing of the format string.

Incidentally, on a slightly different topic (this is related to the specific error that I got. Maybe I should open a separate ticket): is it planned to implement isInfinite (I see that isNaN looks like it's implemented)?

@tmcdonell
Copy link
Member

derp ):

Thanks for the report. On the one hand, at least this is not on the critical path, but on the other the helpful error message itself fails \:

Separate issue is for isInfinite best. No reason for not implementing it yet, I just didn't get around to it / forgot (always feel free to remind me about stuff like this).

@tmcdonell
Copy link
Member

BTW I have added all the missing operations from RealFloat now.

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

2 participants