Replace createDirectoryHierarchy with createDirectoryIfMissing True
authorTakano Akio <aljee@hyper.cx>
Wed, 22 Feb 2012 02:18:29 +0000 (10:18 +0800)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 27 Feb 2012 14:35:08 +0000 (14:35 +0000)
commitffe282cef4213ab8de515a8574d366994d38d5dd
tree019b4599a285dd8d4d141c458f708cc1fb129b4c
parentebd0ac736a305a5cd573e60f177b2995b37d964b
Replace createDirectoryHierarchy with createDirectoryIfMissing True

createDirectoryHierarchy consisted of an existence test followed by
createDirectory, which failed if that directory was creted just after
the test. createDirectoryifMissing does not have this problem.
compiler/iface/MkIface.lhs
compiler/main/CodeOutput.lhs
compiler/main/DriverPipeline.hs
compiler/main/ErrUtils.lhs
compiler/utils/Util.lhs