Open martijnbastiaan opened 4 years ago
I can't reproduce on master
using GHC 8.8.3
This seems to only happen when using the clash-starter-project. Definitions in the starter projected are loaded from interface files, so it seems natural for it to be some issue in LoadModules
..
from chat:
it only fails for the instances defined in Clash.Class.BitPack :
BitVector n Bit Bool Int Word etc
But works for any instance defined outside of it, e.g.:
Vec n a Signed n
I'll use -isrc
as a workaround for now and continue with my other tasks.
Another workaround; add:
Signal dom (BitVector (BitSize ()))
Now it does find BitSize
and compiles
gives:
however:
Apparently this violates one of Clash's invariants. When using:
It gives me a proper (but still wrong?) error message: