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

Prepare 0.4 #89

Merged
merged 3 commits into from
Nov 13, 2018
Merged

Prepare 0.4 #89

merged 3 commits into from
Nov 13, 2018

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Nov 13, 2018

No description provided.

phadej and others added 3 commits November 13, 2018 11:48
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.
- Explicit import lists
- use `coerce` (I thought about StandaloneDeriving, but it would be
  nicer with `DerivingStrategies`)
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

Successfully merging this pull request may close these issues.

2 participants