ghc-mod root does not need a file.

This commit is contained in:
Kazu Yamamoto
2014-04-21 11:22:39 +09:00
parent 19453e67d7
commit 12dac1f0a5
2 changed files with 4 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
module Language.Haskell.GhcMod.Debug (debugInfo, debug, rootInfo, root) where
module Language.Haskell.GhcMod.Debug (debugInfo, debug, rootInfo) where
import Control.Applicative ((<$>))
import Control.Exception.IOChoice ((||>))
@@ -62,13 +62,5 @@ debug opt cradle fileName = do
-- | Obtaining root information.
rootInfo :: Options
-> Cradle
-> FilePath -- ^ A target file.
-> IO String
rootInfo opt cradle fileName = withGHC fileName (root opt cradle fileName)
-- | Obtaining root information.
root :: Options
-> Cradle
-> FilePath -- ^ A target file.
-> Ghc String
root _ cradle _ = return $ cradleRootDir cradle ++ "\n"
rootInfo opt cradle = return $ convert opt $ cradleRootDir cradle