Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- refactorSession :: [RefactoringChoice] -> ServerInit -> Handle -> Handle -> CLIOptions -> IO Bool
- normalRefactorSession :: [RefactoringChoice] -> 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] -> ServerInit -> Handle -> Handle -> CLIOptions -> IO Bool Source #
Entry point with configurable initialization. Mainly for testing, call normalRefactorSession
to use the command-line.
normalRefactorSession :: [RefactoringChoice] -> Handle -> Handle -> CLIOptions -> IO Bool Source #
Normal entry point of the cli.
data SharedDaemonOptions :: * #
Command line options shared by CLI and daemon.
SharedDaemonOptions | |
|