language-ninja-0.2.0: A library for dealing with the Ninja build language.

CopyrightCopyright 2017 Awake Security
LicenseApache-2.0
Maintaineropensource@awakesecurity.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Ninja.Misc.Command

Description

A datatype representing a POSIX sh command line.

Since: 0.1.0

Synopsis

Documentation

data Command Source #

This type represents a POSIX sh command line.

Since: 0.1.0

Instances

Eq Command Source # 

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

Ord Command Source # 
Read Command Source # 
Show Command Source # 
Generic Command Source # 

Associated Types

type Rep Command :: * -> * #

Methods

from :: Command -> Rep Command x #

to :: Rep Command x -> Command #

Hashable Command Source # 

Methods

hashWithSalt :: Int -> Command -> Int #

hash :: Command -> Int #

ToJSON Command Source # 
FromJSON Command Source # 
NFData Command Source # 

Methods

rnf :: Command -> () #

(Monad m, Serial m Text) => Serial m Command Source #

Uses the underlying Text instance.

Since: 0.1.0

Methods

series :: Series m Command #

(Monad m, CoSerial m Text) => CoSerial m Command Source #

Uses the underlying Text instance.

Since: 0.1.0

Methods

coseries :: Series m b -> Series m (Command -> b) #

type Rep Command Source # 
type Rep Command = D1 (MetaData "Command" "Language.Ninja.Misc.Command" "language-ninja-0.2.0-4aVVODOvkNMFxGcRpnztag" True) (C1 (MetaCons "MkCommand" PrefixI True) (S1 (MetaSel (Just Symbol "_commandText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

makeCommand :: Text -> Command Source #

Constructor for a Command.

Since: 0.1.0

commandText :: Iso' Command Text Source #

An isomorphism between a Command and its underlying Text.

Since: 0.1.0