import Clash.Prelude
import Data.Proxy
f ::
forall dom .
KnownDomain dom =>
Proxy dom ->
SNat (PeriodToCycles dom (Milliseconds 1))
f Proxy = SNat
now typechecks.
Though at the very high cost of needing to add @dom to any use of hideClockResetEnable which might affect user code out in the wild. https://github.com/clash-lang/clash-compiler/pull/2740 is probably a more desirable alternative.
Still TODO:
[ ] Write a changelog entry (see changelog/README.md)
[ ] Check copyright notices are up to date in edited files
I agree the other alternative is more desirable, all the more since the error message you get when you forget to explicitly type-apply it is not all that clear.
An alternative means to achieve https://github.com/clash-lang/clash-compiler/pull/2734#issuecomment-2182893091
now typechecks.
Though at the very high cost of needing to add
@dom
to any use ofhideClockResetEnable
which might affect user code out in the wild. https://github.com/clash-lang/clash-compiler/pull/2740 is probably a more desirable alternative.Still TODO: