-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add instances for Data.Fixed #77
Labels
Comments
rockbmb
added a commit
to rockbmb/http-api-data
that referenced
this issue
Oct 2, 2018
rockbmb
added a commit
to rockbmb/http-api-data
that referenced
this issue
Oct 2, 2018
rockbmb
added a commit
to rockbmb/http-api-data
that referenced
this issue
Oct 3, 2018
rockbmb
added a commit
to rockbmb/http-api-data
that referenced
this issue
Oct 8, 2018
…sion suffices `nominalDiffTimeToSeconds` was introduced in `time-1.9.1` and has type `nominalDiffTimeToSeconds :: NominalDiffTime -> Pico`, which is what is needed for `toUrlPiece` in `ToHttpApiData`, now that after issue fizruk#77 there are instances for types from `Data.Fixed`. As such, if the `time` library's version is high enough, that function will be used. Otherwise, `(realToFrac :: NominalDiffTime -> Pico)` will be used instead.
phadej
pushed a commit
that referenced
this issue
Nov 13, 2018
encode whole range. Add CPP to use `nominalDiffTimeToSeconds` if `time`'s version suffices `nominalDiffTimeToSeconds` was introduced in `time-1.9.1` and has type `nominalDiffTimeToSeconds :: NominalDiffTime -> Pico`, which is what is needed for `toUrlPiece` in `ToHttpApiData`, now that after issue #77 there are instances for types from `Data.Fixed`. As such, if the `time` library's version is high enough, that function will be used. Otherwise, `(realToFrac :: NominalDiffTime -> Pico)` will be used instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are missing instances for fixed point numbers, for example:
The text was updated successfully, but these errors were encountered: