Prepare for splitting off ghc-mod-core eventually
This commit is contained in:
@@ -7,21 +7,23 @@ import Control.Monad
|
||||
import Data.Typeable (Typeable)
|
||||
import Data.List
|
||||
import Data.List.Split
|
||||
import Exception
|
||||
import Language.Haskell.GhcMod
|
||||
import Language.Haskell.GhcMod.Internal hiding (MonadIO,liftIO)
|
||||
import Language.Haskell.GhcMod.Types
|
||||
import Language.Haskell.GhcMod.Monad
|
||||
import Language.Haskell.GhcMod.Find
|
||||
import Language.Haskell.GhcMod.Pretty
|
||||
import System.FilePath ((</>))
|
||||
import System.Directory (setCurrentDirectory, getAppUserDataDirectory,
|
||||
removeDirectoryRecursive)
|
||||
import System.IO
|
||||
import System.Exit
|
||||
import GHCMod.Options
|
||||
import Prelude
|
||||
|
||||
import GHCMod.Options
|
||||
import GhcMod
|
||||
import GhcMod.Find
|
||||
import GhcMod.Internal hiding (MonadIO,liftIO)
|
||||
import Language.Haskell.GhcMod.Monad
|
||||
import Language.Haskell.GhcMod.Types
|
||||
|
||||
import Exception
|
||||
|
||||
handler :: IOish m => GhcModT m a -> GhcModT m a
|
||||
handler = flip gcatches
|
||||
[ GHandler $ \(e :: ExitCode) -> throw e
|
||||
|
||||
@@ -24,12 +24,13 @@ module GHCMod.Options (
|
||||
|
||||
import Options.Applicative
|
||||
import Options.Applicative.Types
|
||||
import Language.Haskell.GhcMod.Types
|
||||
|
||||
import GHCMod.Options.Commands
|
||||
import GHCMod.Options.ShellParse
|
||||
import GHCMod.Version
|
||||
import Language.Haskell.GhcMod.Options.DocUtils
|
||||
import Language.Haskell.GhcMod.Options.Options
|
||||
import GHCMod.Options.ShellParse
|
||||
import Language.Haskell.GhcMod.Types
|
||||
|
||||
parseArgs :: IO (Options, GhcModCommands)
|
||||
parseArgs =
|
||||
@@ -69,4 +70,3 @@ helpVersion =
|
||||
|
||||
argAndCmdSpec :: Parser (Options, GhcModCommands)
|
||||
argAndCmdSpec = (,) <$> globalArgSpec <*> commandsSpec
|
||||
|
||||
|
||||
Reference in New Issue
Block a user