News for hackers. Stuff that matters.
Re:I_suck_and_my_tests_are_order_dependent by bradrn on Thursday February 16, 2023 @09:42PM (#34830034)
This is pretty much correct. For reference, here’s the original documentation (changed in commit 80ff4a3018cd8909abb1d4e0c32f012a523883ec):

    -- | Just like unsafePerformIO, but we inline it. Big performance gains as
    -- it exposes lots of things to further inlining. /Very unsafe/. In
    -- particular, you should do no memory allocation inside an
    -- 'inlinePerformIO' block. On Hugs this is just @unsafePerformIO@.
The commit message notes that ‘We've had a few instances of people being tempted to use it without really understanding the consequences’.
Re:I_suck_and_my_tests_are_order_dependent by throw-ru-938 on Friday February 17, 2023 @06:38AM (#34833463)
I wonder why inlining the function makes it that much unsafe.