15 Apr
2024
15 Apr
'24
1:26 a.m.
On Sun, 14 Apr 2024, Folsk Pratima wrote:
strError :: Int -> String strError errnum = runST $ unsafeIOToST ioString
Instead of (runST $ unsafeIOToST ioString) you could just call (unsafePerformIO ioString). However, ioString must not have observable side effects. throwIO does not look right and should be 'error'.