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

Make it obvious even to GHC that mappend is canonical (equal to (<>)) #33

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreasabel
Copy link
Collaborator

@andreasabel andreasabel commented Feb 28, 2025

  • Canonical definition of mappend

@@ -71,7 +71,7 @@ instance Sem.Semigroup FilePath where

instance M.Monoid FilePath where
mempty = empty
mappend = append
mappend = (<>)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On GHCs 8.0 and 8.2 this causes the error

Variable not in scope: (<>) :: FilePath -> FilePath -> FilePath

So let's wait with this until we drop support for these GHC versions.

@andreasabel andreasabel marked this pull request as draft February 28, 2025 20:38
@andreasabel andreasabel changed the title mappend canon Make it obvious even to GHC that mappend is canonical (equal to (<>)) Feb 28, 2025
@andreasabel andreasabel changed the base branch from master to update-ci February 28, 2025 21:37
@andreasabel andreasabel changed the base branch from update-ci to master February 28, 2025 21:37
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.

1 participant