Skip to content

Conversation

@tfausak
Copy link
Collaborator

@tfausak tfausak commented Aug 1, 2025

This PR adds saturating versions of constructors that currently return Nothing to signal overflow. These can be more convenient to use in code, especially when constructing intervals from literals. For example fromSeconds 1 returns Maybe Interval, whereas fromSecondsSaturating 1 returns just Interval.

@tfausak tfausak marked this pull request as ready for review August 1, 2025 21:40
@tfausak tfausak merged commit efc0285 into main Aug 2, 2025
19 checks passed
@tfausak tfausak deleted the tfausak/2025-08-01-saturating branch August 2, 2025 01:42
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