Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/System/GetProgName.hs
module System where import NHC.FFI foreign import ccall primGetProgName :: IO PackedString getProgName :: IO String getProgName = primGetProgName >>= return . fromCString