@@ -1229,6 +1229,11 @@ supportedLits =
12291229 (" IO.LineBuffering" , lit' IO. LineBuffering ),
12301230 (" IO.BlockBuffering" , lit' IO. BlockBuffering ),
12311231 (" IO.hClose" , lit' IO. hClose),
1232+ (" IO.openFile" , lit' (\ f m -> IO. openFile (Text. unpack f) m)),
1233+ (" IO.ReadMode" , lit' IO. ReadMode ),
1234+ (" IO.WriteMode" , lit' IO. WriteMode ),
1235+ (" IO.AppendMode" , lit' IO. AppendMode ),
1236+ (" IO.ReadWriteMode" , lit' IO. ReadWriteMode ),
12321237 -- Concurrent stuff
12331238 (" Concurrent.threadDelay" , lit' Concurrent. threadDelay),
12341239 -- Bool
@@ -1600,8 +1605,9 @@ polyLits =
16001605 " Process.runProcess" runProcess :: forall a b c . ProcessConfig a b c -> IO ExitCode
16011606 " Process.runProcess_" runProcess_ :: forall a b c . ProcessConfig a b c -> IO ()
16021607 " Process.setStdout" setStdout :: forall stdin stdout stdout' stderr . StreamSpec 'STOutput stdout' -> ProcessConfig stdin stdout stderr -> ProcessConfig stdin stdout' stderr
1603- " Process.useHandleClose" useHandleClose :: forall (a :: StreamType ). IO. Handle -> StreamSpec a ()
1604- " Process.useHandleOpen" useHandleOpen :: forall (a :: StreamType ). IO. Handle -> StreamSpec a ()
1608+ " Process.useHandleClose" useHandleClose :: forall (a :: StreamType ). IO. Handle -> StreamSpec a ()
1609+ " Process.useHandleOpen" useHandleOpen :: forall (a :: StreamType ). IO. Handle -> StreamSpec a ()
1610+ " Process.setWorkingDir" process_setWorkingDir :: forall a b c . Text -> ProcessConfig a b c -> ProcessConfig a b c
16051611 | ]
16061612 )
16071613
@@ -1770,6 +1776,12 @@ temp_withSystemTempFile template action = Temp.withSystemTempFile (Text.unpack t
17701776temp_withSystemTempDirectory :: forall a . Text -> (Text -> IO a ) -> IO a
17711777temp_withSystemTempDirectory template action = Temp. withSystemTempDirectory (Text. unpack template) $ \ fp -> action (Text. pack fp)
17721778
1779+ --------------------------------------------------------------------------------
1780+ -- Process operations
1781+
1782+ process_setWorkingDir :: forall a b c . Text -> ProcessConfig a b c -> ProcessConfig a b c
1783+ process_setWorkingDir filepath = Process. setWorkingDir (Text. unpack filepath)
1784+
17731785--------------------------------------------------------------------------------
17741786-- Inference type representation
17751787
0 commit comments