X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FEnvironment.hs;h=b85bc42e5e0c1a104780b60e19b7ac1b711e6a43;hb=3efe74f3acd0dff20d078b6e8416664193b219d4;hp=247a905e055980b6a06f330f8fb21e7430142e4c;hpb=8afc9fecd586d3c4f7ef9c69fb1686a79e5f441d;p=ghc-base.git diff --git a/System/Environment.hs b/System/Environment.hs index 247a905..b85bc42 100644 --- a/System/Environment.hs +++ b/System/Environment.hs @@ -155,7 +155,8 @@ withArgv new_args act = do pName <- System.Environment.getProgName existing_args <- System.Environment.getArgs bracket (setArgs new_args) - (\argv -> do setArgs (pName:existing_args); freeArgv argv) + (\argv -> do _ <- setArgs (pName:existing_args) + freeArgv argv) (const act) freeArgv :: Ptr CString -> IO ()