1 2 3 4 5 6 7
module F where import System.Environment foreign export ccall f :: IO () f = do getProgName >>= print getArgs >>= print