-
Notifications
You must be signed in to change notification settings - Fork 154
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
Derived BitPack instance introduces Dubious primitive instantiation warning #2386
Labels
Comments
It's caused by the unpack side of topEntity :: BitVector 1 -> AorB
topEntity = unpack Gives the same error. |
In the definition of unpack we effectively have: sc = unpack @Int (x :: BitVector 64) That generates the error seen here. (Because instance BitPack Int where
[...]
unpack = fromIntegral ) |
I think we should just add a prim for |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The implementation for derived
BitPack
instances produces the following warning when producing HDL:Reproducer:
GHC 9.0.2
Clash 1.6.4
The text was updated successfully, but these errors were encountered: