writing docs.

This commit is contained in:
Kazu Yamamoto
2013-05-20 14:28:56 +09:00
parent 849c308e5c
commit 089d490607
15 changed files with 150 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
module Language.Haskell.GhcMod.List (listModules, list) where
module Language.Haskell.GhcMod.List (listModules, listMods) where
import Control.Applicative
import Data.List
@@ -10,11 +10,13 @@ import UniqFM
----------------------------------------------------------------
-- | Listing installed modules.
listModules :: Options -> IO String
listModules opt = convert opt . nub . sort <$> withGHCDummyFile (list opt)
listModules opt = convert opt . nub . sort <$> withGHCDummyFile (listMods opt)
list :: Options -> Ghc [String]
list opt = do
-- | Listing installed modules.
listMods :: Options -> Ghc [String]
listMods opt = do
initializeFlags opt
getExposedModules <$> getSessionDynFlags
where