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

Support for FiniteDuration #621

Open
etspaceman opened this issue Mar 13, 2019 · 5 comments
Open

Support for FiniteDuration #621

etspaceman opened this issue Mar 13, 2019 · 5 comments

Comments

@etspaceman
Copy link

#397 had some discussion about whether or not this library supports FiniteDuration. It seems to be a pretty standard use-case - I'd like to see some official support for it in this library.

@henricook
Copy link

henricook commented Apr 30, 2019

I've just spent some time looking into how to write my own predicates for this, but looks hard! But +1 - i'd like this

@fthomas
Copy link
Owner

fthomas commented May 1, 2019

I wrote a bit about supporting FiniteDuration here. @etspaceman It would help if you could provide one or two examples how you would refine FiniteDuration.

@etspaceman
Copy link
Author

Sorry for the late response here! I would largely treat it like a numeric instance myself. Things like Positive, NonNegative, etc would be my most highly used thing.

@fthomas
Copy link
Owner

fthomas commented May 31, 2019

Ok, this would be possible with the LengthInSeconds predicate mentioned in #633, i.e. FiniteDuration Refined LengthInSeconds[NonNegative], etc.

@etspaceman
Copy link
Author

Yes I've done similar things, but have dropped the usage as the auto package does not support FiniteDuration. That's mainly why I opened this ticket. Without auto support, using this for FiniteDuration literals becomes a big pain.

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

3 participants