haskell-tools-cli-1.1.0.2: Command-line frontend for Haskell-tools Refact

Safe HaskellNone
LanguageHaskell2010

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

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