
14 Apr
2024
14 Apr
'24
3:56 p.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'.