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
I'm building ghc-events as part of static-haskell-nix's CI, where sometimes I build with -O0.
An assertion appears:
test-versions: Assertion failed
CallStack (from HasCallStack):
assert, called at src/GHC/RTS/Events/Binary.hs:822:5 in ghc-events-0.19.0.1-863kLHKqkAq5pQOjpORL0w:GHC.RTS.Events.Binary
I'm building
ghc-events
as part of static-haskell-nix's CI, where sometimes I build with-O0
.An assertion appears:
That's this one:
ghc-events/src/GHC/RTS/Events/Binary.hs
Lines 822 to 830 in 2168f61
I tested also with
stack test
on astack.yaml
with this config:As documented in assert, it's disabled on
-O
, whichcabal
enables by default.So probably nobody noticed that.
I recommend setting either
if assertions should be used in code, or not using
assert
.The text was updated successfully, but these errors were encountered: