harg-0.3.0.0: Haskell program configuration using higher kinded data

Safe HaskellNone
LanguageHaskell2010

Options.Harg.Sources.JSON

Synopsis

Documentation

newtype JSONSource f Source #

Source that enables a parser to read options from a JSON file.

Constructors

JSONSource (f ConfigFile) 
Instances
GetSource JSONSource Identity Source # 
Instance details

Defined in Options.Harg.Sources.JSON

Associated Types

type SourceVal JSONSource :: Type Source #

Generic (JSONSource f) Source # 
Instance details

Defined in Options.Harg.Sources.JSON

Associated Types

type Rep (JSONSource f) :: Type -> Type #

Methods

from :: JSONSource f -> Rep (JSONSource f) x #

to :: Rep (JSONSource f) x -> JSONSource f #

ProductB JSONSource Source # 
Instance details

Defined in Options.Harg.Sources.JSON

Methods

bprod :: JSONSource f -> JSONSource g -> JSONSource (Product f g) #

buniq :: (forall (a :: k). f a) -> JSONSource f #

TraversableB JSONSource Source # 
Instance details

Defined in Options.Harg.Sources.JSON

Methods

btraverse :: Applicative t => (forall (a :: k). f a -> t (g a)) -> JSONSource f -> t (JSONSource g) #

FunctorB JSONSource Source # 
Instance details

Defined in Options.Harg.Sources.JSON

Methods

bmap :: (forall (a :: k). f a -> g a) -> JSONSource f -> JSONSource g #

type SourceVal JSONSource Source # 
Instance details

Defined in Options.Harg.Sources.JSON

type Rep (JSONSource f) Source # 
Instance details

Defined in Options.Harg.Sources.JSON

type Rep (JSONSource f) = D1 (MetaData "JSONSource" "Options.Harg.Sources.JSON" "harg-0.3.0.0-inplace" True) (C1 (MetaCons "JSONSource" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f ConfigFile))))

data JSONSourceVal Source #

The result of reading a JSON file. JSONSourceNotRequired is used when the user has specified defaultVal NoConfigFile. It holds the contents of the JSON file as a Value.

Instances
(FromJSON (a Maybe), FunctorB a) => RunSource JSONSourceVal a Source # 
Instance details

Defined in Options.Harg.Sources.JSON