APIs in Ghc monad now go to GHCMod.Ghc.

This commit is contained in:
Kazu Yamamoto 2014-04-21 12:51:56 +09:00
parent 2f55a19d49
commit 1006cd4eec
4 changed files with 21 additions and 11 deletions

View File

@ -24,16 +24,6 @@ module Language.Haskell.GhcMod (
, debugInfo , debugInfo
, rootInfo , rootInfo
, packageDoc , packageDoc
-- * Converting the 'Ghc' monad to the 'IO' monad
, withGHC
, withGHCDummyFile
-- * 'Ghc' utilities
, browse
, check
, info
, typeOf
, modules
, lint
) where ) where
import Language.Haskell.GhcMod.Browse import Language.Haskell.GhcMod.Browse
@ -41,7 +31,6 @@ import Language.Haskell.GhcMod.Check
import Language.Haskell.GhcMod.Cradle import Language.Haskell.GhcMod.Cradle
import Language.Haskell.GhcMod.Debug import Language.Haskell.GhcMod.Debug
import Language.Haskell.GhcMod.Flag import Language.Haskell.GhcMod.Flag
import Language.Haskell.GhcMod.GHCApi
import Language.Haskell.GhcMod.Info import Language.Haskell.GhcMod.Info
import Language.Haskell.GhcMod.Lang import Language.Haskell.GhcMod.Lang
import Language.Haskell.GhcMod.Lint import Language.Haskell.GhcMod.Lint

View File

@ -0,0 +1,19 @@
module Language.Haskell.GhcMod.Ghc (
-- * Converting the 'Ghc' monad to the 'IO' monad
withGHC
, withGHCDummyFile
-- * 'Ghc' utilities
, browse
, check
, info
, typeOf
, modules
, lint
) where
import Language.Haskell.GhcMod.Browse
import Language.Haskell.GhcMod.Check
import Language.Haskell.GhcMod.GHCApi
import Language.Haskell.GhcMod.Info
import Language.Haskell.GhcMod.Lint
import Language.Haskell.GhcMod.List

View File

@ -46,6 +46,7 @@ Library
Default-Language: Haskell2010 Default-Language: Haskell2010
GHC-Options: -Wall GHC-Options: -Wall
Exposed-Modules: Language.Haskell.GhcMod Exposed-Modules: Language.Haskell.GhcMod
Language.Haskell.GhcMod.Ghc
Language.Haskell.GhcMod.Internal Language.Haskell.GhcMod.Internal
Other-Modules: Language.Haskell.GhcMod.Browse Other-Modules: Language.Haskell.GhcMod.Browse
Language.Haskell.GhcMod.CabalApi Language.Haskell.GhcMod.CabalApi

View File

@ -45,6 +45,7 @@ import GHC (Ghc, LoadHowMuch(LoadAllTargets), TargetId(TargetFile))
import qualified GHC as G import qualified GHC as G
import HscTypes (SourceError) import HscTypes (SourceError)
import Language.Haskell.GhcMod import Language.Haskell.GhcMod
import Language.Haskell.GhcMod.Ghc
import Language.Haskell.GhcMod.Internal import Language.Haskell.GhcMod.Internal
import Paths_ghc_mod import Paths_ghc_mod
import System.Console.GetOpt import System.Console.GetOpt