haskell-ci-0.6: Cabal package script generator for Travis-CI

Safe HaskellNone
LanguageHaskell2010

HaskellCI.Sh

Documentation

data Sh Source #

Constructors

Sh String

command

Comment String

comment

Instances
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
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
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 #

fail :: String -> 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 ShError ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

throwErr :: ShError -> ShM a Source #

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

data ShError Source #

Constructors

ShellCheckError String

ShellCheck disagrees.

ShError String

made by fail.

Instances
Show ShError Source # 
Instance details

Defined in HaskellCI.Sh

Exception ShError Source # 
Instance details

Defined in HaskellCI.Sh

FromShError ShError Source # 
Instance details

Defined in HaskellCI.Sh

MonadErr ShError ShM Source # 
Instance details

Defined in HaskellCI.Sh

Methods

throwErr :: ShError -> ShM a Source #

class FromShError e where Source #

Methods

fromShError :: ShError -> e Source #

Instances
FromShError ShError Source # 
Instance details

Defined in HaskellCI.Sh