leksah-server-0.8.0.6: Metadata collection for leksah
Source code
Contents
Index
IDE.Utils.Tool
Description
Support for running external tools. Written mainly for GHCi but with | support for others in mind.
Documentation
data
ToolOutput
Source
Constructors
ToolInput
String
ToolError
String
ToolOutput
String
ToolPrompt
ToolExit
ExitCode
Instances
Eq
ToolOutput
Show
ToolOutput
NFData
ToolOutput
toolline
::
ToolOutput
->
String
Source
data
ToolCommand
Source
Constructors
ToolCommand
String
([
ToolOutput
] ->
IO
()
)
data
ToolState
Source
Constructors
ToolState
toolProcessMVar
::
MVar
ProcessHandle
outputClosed
::
MVar
Bool
toolCommands
::
Chan
ToolCommand
toolCommandsRead
::
Chan
ToolCommand
currentToolCommand
::
MVar
ToolCommand
toolProcess
::
ToolState
->
IO
ProcessHandle
Source
newToolState
::
IO
ToolState
Source
runTool
::
FilePath
-> [
String
] ->
Maybe
FilePath
->
IO
([
ToolOutput
],
ProcessHandle
)
Source
runTool'
::
FilePath
-> [
String
] ->
Maybe
FilePath
->
IO
([
ToolOutput
],
ProcessHandle
)
Source
runInteractiveTool
::
ToolState
-> CommandLineReader ->
FilePath
-> [
String
] ->
IO
()
Source
newGhci
:: [
String
] -> [
String
] -> ([
ToolOutput
] ->
IO
()
) ->
IO
ToolState
Source
executeCommand
::
ToolState
->
String
-> ([
ToolOutput
] ->
IO
()
) ->
IO
()
Source
executeGhciCommand
::
ToolState
->
String
-> ([
ToolOutput
] ->
IO
()
) ->
IO
()
Source
quoteArg
::
String
->
String
Source
escapeQuotes
::
String
->
String
Source
Produced by
Haddock
version 2.6.1