Skip to content

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

Draft
andreasabel wants to merge 1 commit intomasterfrom
mappend-canon
Draft

Make it obvious even to GHC that mappend is canonical (equal to (<>))#33
andreasabel wants to merge 1 commit intomasterfrom
mappend-canon

Conversation

@andreasabel
Copy link
Copy Markdown
Collaborator

@andreasabel andreasabel commented Feb 28, 2025

  • Canonical definition of mappend

instance M.Monoid FilePath where
mempty = empty
mappend = append
mappend = (<>)
Copy link
Copy Markdown
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