Module

PscIde.Server

#PscIdeServerArgs

type PscIdeServerArgs = { combinedExe :: Boolean, cwd :: Maybe String, debug :: Boolean, directory :: Maybe String, editorMode :: Boolean, exe :: String, logLevel :: Maybe LogLevel, outputDirectory :: Maybe String, polling :: Boolean, port :: Maybe Int, source :: Array String, stdio :: Array (Maybe StdIOBehaviour), watch :: Boolean }

#LogLevel

data LogLevel

Constructors

#logParam

#startServer

startServer :: PscIdeServerArgs -> Aff ServerStartResult

Start a psc-ide server instance

#portFilePath

portFilePath :: String -> String

Construct path to the port file identifying the psc-ide-server port

#savePort

savePort :: Int -> String -> Effect Unit

Save a port to the port file

#deleteSavedPort

deleteSavedPort :: String -> Effect Unit

Delete the port file

#getSavedPort

getSavedPort :: String -> Effect (Maybe Int)

Get the saved port for the given project directory (if present)

#pickFreshPort

pickFreshPort :: Effect Int

Generate a fresh port (just now, randomly with no check or retry)

#stopServer

stopServer :: Int -> Aff Unit

Stop a psc-ide server.

#Executable

#findBins'

findBins' :: { env :: Maybe (Object String), path :: Maybe String, pathExt :: Maybe String } -> String -> Aff (Array Executable)

Modules