Some debug logging for cabal configure etc.

This commit is contained in:
Daniel Gröber
2015-08-03 05:20:14 +02:00
parent ec008fbd1e
commit 75d4a2a9d6
3 changed files with 14 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ newTempDir :: FilePath -> IO FilePath
newTempDir dir =
flip createTempDirectory (uniqTempDirName dir) =<< getTemporaryDirectory
whenM :: IO Bool -> IO () -> IO ()
whenM :: Monad m => m Bool -> m () -> m ()
whenM mb ma = mb >>= flip when ma
-- | Returns the path to the currently running ghc-mod executable. With ghc<7.6