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

OverridingBool prevents auto derivation of various classes #2754

Closed
martijnbastiaan opened this issue Jul 13, 2024 · 2 comments · Fixed by #2764
Closed

OverridingBool prevents auto derivation of various classes #2754

martijnbastiaan opened this issue Jul 13, 2024 · 2 comments · Fixed by #2764

Comments

@martijnbastiaan
Copy link
Member

See #2711 (comment). We could remove a whole bunch of code if we were to define our own (isomorphic) version of OverridingBool.

@leonschoorl
Copy link
Member

We use the OverridingBool because we have to pass it to GHC's api here, possibly in other places too.

Instead of defining our own version and converting from/to GHC's version, we could also just derive the required (orphan) instances for OverridingBool.

@martijnbastiaan
Copy link
Member Author

I don't think that's a good idea. Orphan instances break everyone's code that had the same idea.

martijnbastiaan added a commit that referenced this issue Jul 21, 2024
martijnbastiaan added a commit that referenced this issue Jul 21, 2024
martijnbastiaan added a commit that referenced this issue Jul 21, 2024
martijnbastiaan added a commit that referenced this issue Jul 26, 2024
martijnbastiaan added a commit that referenced this issue Jul 26, 2024
martijnbastiaan added a commit that referenced this issue Jul 26, 2024
mergify bot pushed a commit that referenced this issue Jul 26, 2024
Fixes #2754

(cherry picked from commit 1d49cd2)

# Conflicts:
#	clash-lib/clash-lib.cabal
#	clash-lib/src/Clash/Driver/Types.hs
martijnbastiaan added a commit that referenced this issue Jul 26, 2024
Fixes #2754

(cherry picked from commit 1d49cd2)
martijnbastiaan added a commit that referenced this issue Jul 27, 2024
Fixes #2754

(cherry picked from commit 1d49cd2)
martijnbastiaan added a commit that referenced this issue Jul 27, 2024
Fixes #2754

(cherry picked from commit 1d49cd2)

Co-authored-by: Martijn Bastiaan <[email protected]>
jvnknvlgl pushed a commit that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants