Skip to content

Conversation

Bodigrim
Copy link
Contributor

This is to comply with haskell/core-libraries-committee#292

@Bodigrim Bodigrim requested a review from hasufell June 14, 2025 10:30
@Bodigrim
Copy link
Contributor Author

@hasufell just a gentle reminder.

@hasufell hasufell merged commit d8c2edf into master Jul 2, 2025
28 checks passed
@Bodigrim
Copy link
Contributor Author

Bodigrim commented Sep 8, 2025

Sigh, I should have run benchmarks. hasTrailingPathSeparator regressed a lot, because getTrailingPathSeparator does not fuse well and we are left with a lot of overhead. And if we revert hasTrailingPathSeparator back and plug -Wno-x-partial, then there is no raison d'etre for other changes, because we need -Wno-x-partial anyway.

In general this performance issue could be worked out / worked around, but we have a very limited toolbox because of keeping both FilePath and OsPath implementations in the same place.

I think this should better be reverted and {-# OPTIONS_GHC -Wno-x-partial #-} added atop.

@Bodigrim Bodigrim deleted the avoid-init-and-last branch September 8, 2025 23:17
@hasufell
Copy link
Member

hasufell commented Sep 9, 2025

I tried with cabal build --ghc-options='-Wall -Wextra -Wx-partial' and I don't get any warnings after reverting said commit.

GHC 9.14.0.20250819

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