| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Butler.Core.Process
Synopsis
- newtype Pid = Pid Natural
- data Process = Process {}
- processID :: Process -> Text
- data ProcessStatus
- = Ready
- | Running
- | Stopped (Time, ExitReason)
- data ExitReason
- newtype ProgramName = ProgramName Text
Documentation
Instances
| ToJSON Pid # | |
Defined in Butler.Core.Process | |
| Enum Pid # | |
| Num Pid # | |
| Integral Pid # | |
| Real Pid # | |
Defined in Butler.Core.Process Methods toRational :: Pid -> Rational # | |
| Show Pid # | |
| Eq Pid # | |
| Ord Pid # | |
| FromHttpApiData Pid # | |
Defined in Butler.Core.Process | |
| Serialise Pid # | |
| From Pid Natural # | |
Defined in Butler.Core.Process | |
A process is a killable thread.
Constructors
| Process | |
Fields
| |
data ProcessStatus #
Constructors
| Ready | |
| Running | |
| Stopped (Time, ExitReason) |
Instances
| Show ProcessStatus # | |
Defined in Butler.Core.Process Methods showsPrec :: Int -> ProcessStatus -> ShowS # show :: ProcessStatus -> String # showList :: [ProcessStatus] -> ShowS # | |
| Eq ProcessStatus # | |
Defined in Butler.Core.Process Methods (==) :: ProcessStatus -> ProcessStatus -> Bool # (/=) :: ProcessStatus -> ProcessStatus -> Bool # | |
data ExitReason #
Constructors
| Killed | |
| Exited | |
| Crashed SomeException |
Instances
| ToJSON ExitReason # | |
Defined in Butler.Core.Process Methods toJSON :: ExitReason -> Value # toEncoding :: ExitReason -> Encoding # toJSONList :: [ExitReason] -> Value # toEncodingList :: [ExitReason] -> Encoding # | |
| Show ExitReason # | |
Defined in Butler.Core.Process Methods showsPrec :: Int -> ExitReason -> ShowS # show :: ExitReason -> String # showList :: [ExitReason] -> ShowS # | |
| Eq ExitReason # | |
Defined in Butler.Core.Process | |
| From ExitReason Text # | |
Defined in Butler.Core.Process Methods from :: ExitReason -> Text # | |
newtype ProgramName #
Constructors
| ProgramName Text |