Separating IO and Ghc.

This commit is contained in:
Kazu Yamamoto
2013-05-20 11:29:44 +09:00
parent f2f3b120af
commit 849c308e5c
17 changed files with 70 additions and 75 deletions

View File

@@ -10,8 +10,8 @@ import UniqFM
----------------------------------------------------------------
listModules :: Options -> Ghc String
listModules opt = convert opt . nub . sort <$> list opt
listModules :: Options -> IO String
listModules opt = convert opt . nub . sort <$> withGHCDummyFile (list opt)
list :: Options -> Ghc [String]
list opt = do