Skip to content

Conversation

@mpilgrem
Copy link

@mpilgrem mpilgrem commented Nov 9, 2024

The motivation for this pull request is:

At some point, GHC versions may warn that init and last are partial, giving advice about alternatives (including unsnoc). This pull request seeks to anticipate that, by avoiding the use of partial functions at the two places where the time package uses init and/or last.

@mpilgrem mpilgrem marked this pull request as draft November 11, 2024 09:48
@mpilgrem
Copy link
Author

I have converted the pull request to draft because it has been suggested that, compared to other approaches, unsnoc has performance issues. I am looking into that.

@Bodigrim
Copy link
Contributor

Sorry, I missed this PR when submitting #275, which superseds it. I think the PR can be closed now.

@AshleyYakeley
Copy link
Member

AshleyYakeley commented Jul 14, 2025

test code still needs fixing. Lemme go fix it.

@AshleyYakeley
Copy link
Member

OK done.

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.

3 participants