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.IR.Meta

Contents

Description

A datatype for Ninja top-level variables and other metadata.

Since: 0.1.0

Synopsis

Meta

data Meta Source #

Ninja top-level metadata, as documented here.

Since: 0.1.0

Instances

Eq Meta Source # 

Methods

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

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

Ord Meta Source # 

Methods

compare :: Meta -> Meta -> Ordering #

(<) :: Meta -> Meta -> Bool #

(<=) :: Meta -> Meta -> Bool #

(>) :: Meta -> Meta -> Bool #

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

max :: Meta -> Meta -> Meta #

min :: Meta -> Meta -> Meta #

Show Meta Source # 

Methods

showsPrec :: Int -> Meta -> ShowS #

show :: Meta -> String #

showList :: [Meta] -> ShowS #

Generic Meta Source # 

Associated Types

type Rep Meta :: * -> * #

Methods

from :: Meta -> Rep Meta x #

to :: Rep Meta x -> Meta #

Hashable Meta Source #

Default Hashable instance via Generic.

Since: 0.1.0

Methods

hashWithSalt :: Int -> Meta -> Int #

hash :: Meta -> Int #

ToJSON Meta Source #

Converts to {req-version: …, build-dir: …}.

Since: 0.1.0

FromJSON Meta Source #

Inverse of the ToJSON instance.

Since: 0.1.0

NFData Meta Source #

Default NFData instance via Generic.

Since: 0.1.0

Methods

rnf :: Meta -> () #

(Monad m, Serial m Version, Serial m Text) => Serial m Meta Source #

Default Serial instance via Generic.

Since: 0.1.0

Methods

series :: Series m Meta #

(Monad m, CoSerial m Version, CoSerial m Text) => CoSerial m Meta Source #

Default CoSerial instance via Generic.

Since: 0.1.0

Methods

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

type Rep Meta Source # 
type Rep Meta = D1 (MetaData "Meta" "Language.Ninja.IR.Meta" "language-ninja-0.2.0-4aVVODOvkNMFxGcRpnztag" False) (C1 (MetaCons "MkMeta" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_metaReqVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Version))) (S1 (MetaSel (Just Symbol "_metaBuildDir") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Path)))))

makeMeta :: Meta Source #

Construct a default Meta value.

Since: 0.1.0

metaReqVersion :: Lens' Meta (Maybe Version) Source #

Corresponds to the ninja_required_version top-level variable.

Since: 0.1.0

metaBuildDir :: Lens' Meta (Maybe Path) Source #

Corresponds to the builddir top-level variable.

Since: 0.1.0