Cleanup errors and logging a bit
This commit is contained in:
10
test/Dir.hs
10
test/Dir.hs
@@ -1,9 +1,15 @@
|
||||
module Dir where
|
||||
module Dir (
|
||||
module Dir
|
||||
, getCurrentDirectory
|
||||
, (</>)
|
||||
) where
|
||||
|
||||
import Control.Exception as E
|
||||
import Data.List (isPrefixOf)
|
||||
import System.Directory
|
||||
import System.FilePath (addTrailingPathSeparator)
|
||||
import System.FilePath (addTrailingPathSeparator,(</>))
|
||||
|
||||
|
||||
|
||||
withDirectory_ :: FilePath -> IO a -> IO a
|
||||
withDirectory_ dir action = bracket getCurrentDirectory
|
||||
|
||||
Reference in New Issue
Block a user