Comment on Use Haskell for shell scriptingparentComments−thinkpad2011yIn my opinion it be nice to write it as a wrapper type thing: inDir d action = do oldDir <- pwd cd newDir result <- action cd oldDir return result Then you could use it like a python `with` statement. :)
Comments
In my opinion it be nice to write it as a wrapper type thing:
Then you could use it like a python `with` statement. :)