Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Hspec.Server.Type
Documentation
type ServerName = String Source
class ServerType a where Source
Methods
name :: a -> ServerName Source
cmd :: a -> FilePath -> [String] -> String -> IO (ExitCode, String, String) Source
Instances
data ServerExampleData dat Source
Constructors
ServerExampleData | |
Fields
|
Instances
ServerType dat => Example (ServerExample dat a) | |
type Arg (ServerExample dat a) = dat |
type ServerExample dat = StateT (ServerExampleData dat) IO Source
type ServerSpec dat = Writer [ServerSpecTree dat] () Source
data ServerSpecTree dat Source
Constructors
ServerSpecGroup String [ServerSpecTree dat] | |
ServerSpecItem String (ServerExample dat ()) |
data ServerStatus Source
data CommandStatus Source
getStdout :: CommandStatus -> Maybe String Source
getStderr :: CommandStatus -> Maybe String Source
detectLinux :: ServerType dat => dat -> IO (Maybe ServerOS) Source