You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workaround "Pattern match has inaccessible right hand side" bug (#2611)
When using GHC < 9 .../ICE40/Blackboxes/IO.hs sometimes(?) warns:
Pattern match has inaccessible right hand side
In a pattern binding in
a pattern guard for
an equation for ‘sbioTemplate’:
[_HasCallStack,
(clk, clkTy, _),
(en, _enTy, _),
(pinConfig, _pinTy, pinConfigLiteral -> ()),
(packagePin, packagePinTy, _),
(latchInput, Bit, _),
(dOut0, Bit, _),
(dOut1, Bit, _),
(outputEnable, Bool, _)]
<-
...
And because we run with -Werror on CI this causes compilation to fail.
This works around that by explicitly turning it back into a warning.
0 commit comments