Closed leonschoorl closed 10 months ago
It's very weird this only happens sometimes.
I've compared the outputs of various -ddump-...
options between runs where it warns and runs where it doesn't warn, but nothing much changes.
Except for dump-simpl-iterations
where on a run with warnings sbioTemplate
has a couple of extra unused local let bindings:
k :: Identifier -> Ap (State s) Doc
k :: (Identifier, s) -> Data.Functor.Identity.Identity (Doc, s)
But they're unused and get eliminated later on in the simplifier and the final output of the simplifier is identical. Therefor I believe we can safely ignore the warning. And because it only seems to happen on GHC < 9, it's probably not worth reporting.
When using GHC < 9
.../ICE40/Blackboxes/IO.hs
sometimes(?) warns: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.Still TODO: