Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Tools.Refactor.CLI
Description
The command line interface for Haskell-tools. It uses the Haskell-tools daemon package starting the daemon in the same process and communicating with it through a channel. It can be used in a one-shot mode, listing all actions in a command-line parameter or using its standard input to perform a series of refactorings.
Synopsis
- refactorSession :: [RefactoringChoice] -> [QueryChoice] -> ServerInit -> Handle -> Handle -> CLIOptions -> IO Bool
- normalRefactorSession :: [RefactoringChoice] -> [QueryChoice] -> Handle -> Handle -> CLIOptions -> IO Bool
- data CLIOptions = CLIOptions {}
- data SharedDaemonOptions = SharedDaemonOptions {
- noWatch :: Bool
- watchExe :: Maybe FilePath
- generateCode :: Bool
- disableHistory :: Bool
- ghcFlags :: Maybe [String]
- projectType :: Maybe PackageDB
Documentation
refactorSession :: [RefactoringChoice] -> [QueryChoice] -> ServerInit -> Handle -> Handle -> CLIOptions -> IO Bool Source #
Entry point with configurable initialization. Mainly for testing, call normalRefactorSession
to use the command-line.
normalRefactorSession :: [RefactoringChoice] -> [QueryChoice] -> Handle -> Handle -> CLIOptions -> IO Bool Source #
Normal entry point of the cli.
data CLIOptions Source #
Command-line options for the Haskell-tools CLI
Constructors
CLIOptions | |
Fields |
Instances
Show CLIOptions Source # | |
Defined in Language.Haskell.Tools.Refactor.CLI Methods showsPrec :: Int -> CLIOptions -> ShowS # show :: CLIOptions -> String # showList :: [CLIOptions] -> ShowS # |
data SharedDaemonOptions #
Command line options shared by CLI and daemon.
Constructors
SharedDaemonOptions | |
Fields
|