haskell-ci-0.14.2: Cabal package script generator for Travis-CI
Safe HaskellNone
LanguageHaskell2010

HaskellCI.Sh

Documentation

data Sh Source #

Constructors

Sh String

command

Comment String

comment

Instances

Instances details
Show Sh Source # 
Instance details

Defined in HaskellCI.Sh

Methods

showsPrec :: Int -> Sh -> ShowS #

show :: Sh -> String #

showList :: [Sh] -> ShowS #

class Monad m => MonadSh m where Source #

Methods

sh' :: [Integer] -> String -> m () Source #

Write shell command

comment :: String -> m () Source #

Write comment

commentedBlock :: String -> m () -> m () Source #

Commented block.

If the block is empty (or comments only), nothing might be written.

Instances

Instances details
MonadSh ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

sh' :: [Integer] -> String -> ShM () Source #

comment :: String -> ShM () Source #

commentedBlock :: String -> ShM () -> ShM () Source #

sh :: MonadSh m => String -> m () Source #

newtype ShM a Source #

Constructors

ShM 

Fields

Instances

Instances details
Monad ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

(>>=) :: ShM a -> (a -> ShM b) -> ShM b #

(>>) :: ShM a -> ShM b -> ShM b #

return :: a -> ShM a #

Functor ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

fmap :: (a -> b) -> ShM a -> ShM b #

(<$) :: a -> ShM b -> ShM a #

Applicative ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

pure :: a -> ShM a #

(<*>) :: ShM (a -> b) -> ShM a -> ShM b #

liftA2 :: (a -> b -> c) -> ShM a -> ShM b -> ShM c #

(*>) :: ShM a -> ShM b -> ShM b #

(<*) :: ShM a -> ShM b -> ShM a #

MonadSh ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

sh' :: [Integer] -> String -> ShM () Source #

comment :: String -> ShM () Source #

commentedBlock :: String -> ShM () -> ShM () Source #

MonadErr HsCiError ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

throwErr :: HsCiError -> ShM a Source #

runSh :: (MonadErr e m, FromHsCiError e) => ShM () -> m [Sh] Source #

liftSh :: Sh -> ShM () Source #

data HsCiError Source #

Constructors

ShellCheckError String

ShellCheck disagrees.

ValidationError String

used by validations

FailError String

made by fail.

Instances

Instances details
Show HsCiError Source # 
Instance details

Defined in HaskellCI.Error

Exception HsCiError Source # 
Instance details

Defined in HaskellCI.Error

FromHsCiError HsCiError Source # 
Instance details

Defined in HaskellCI.Error

MonadErr HsCiError ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

throwErr :: HsCiError -> ShM a Source #

class FromHsCiError e where Source #

Instances

Instances details
FromHsCiError HsCiError Source # 
Instance details

Defined in HaskellCI.Error