jsonnet-0.3.1.1: Jsonnet implementaton in pure Haskell
Copyright(c) 2020-2021 Alexandre Moreno
LicenseBSD-3-Clause OR Apache-2.0
MaintainerAlexandre Moreno <alexmorenocano@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Language.Jsonnet.Value

Description

 

Documentation

data Value Source #

Instances

Instances details
FromJSON Value Source # 
Instance details

Defined in Language.Jsonnet.Std.Lib

HasValue Value Source # 
Instance details

Defined in Language.Jsonnet.Value

(HasValue a, HasValue b, HasValue c) => HasValue (a -> b -> Eval c) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> b -> Eval c) -> Value Source #

proj :: Value -> Eval (a -> b -> Eval c) Source #

(HasValue a, HasValue b) => HasValue (a -> Eval b) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> Eval b) -> Value Source #

proj :: Value -> Eval (a -> Eval b) Source #

data VField Source #

Instances

Instances details
Generic VField Source # 
Instance details

Defined in Language.Jsonnet.Value

Associated Types

type Rep VField :: Type -> Type #

Methods

from :: VField -> Rep VField x #

to :: Rep VField x -> VField #

HasVisibility VField Source # 
Instance details

Defined in Language.Jsonnet.Value

HasValue Object Source # 
Instance details

Defined in Language.Jsonnet.Eval

type Rep VField Source # 
Instance details

Defined in Language.Jsonnet.Value

type Rep VField = D1 ('MetaData "VField" "Language.Jsonnet.Value" "jsonnet-0.3.1.1-HRvoiMrrp7QzMlnzingfy" 'False) (C1 ('MetaCons "VField" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fieldKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "fieldValWHNF") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)) :*: (S1 ('MetaSel ('Just "fieldVal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "fieldVis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Visibility))))

data Cell Source #

Constructors

Cell 

Fields

Instances

Instances details
Generic Cell Source # 
Instance details

Defined in Language.Jsonnet.Value

Associated Types

type Rep Cell :: Type -> Type #

Methods

from :: Cell -> Rep Cell x #

to :: Rep Cell x -> Cell #

type Rep Cell Source # 
Instance details

Defined in Language.Jsonnet.Value

type Rep Cell = D1 ('MetaData "Cell" "Language.Jsonnet.Value" "jsonnet-0.3.1.1-HRvoiMrrp7QzMlnzingfy" 'False) (C1 ('MetaCons "Cell" 'PrefixI 'True) (S1 ('MetaSel ('Just "cellVal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value) :*: S1 ('MetaSel ('Just "cellIsWHNF") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

class HasValue a where Source #

Methods

inj :: a -> Value Source #

proj :: Value -> Eval a Source #

Instances

Instances details
HasValue Bool Source # 
Instance details

Defined in Language.Jsonnet.Eval

HasValue Double Source # 
Instance details

Defined in Language.Jsonnet.Eval

Integral a => HasValue a Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: a -> Value Source #

proj :: Value -> Eval a Source #

HasValue ByteString Source # 
Instance details

Defined in Language.Jsonnet.Eval

HasValue Scientific Source # 
Instance details

Defined in Language.Jsonnet.Eval

HasValue Text Source # 
Instance details

Defined in Language.Jsonnet.Eval

HasValue Object Source # 
Instance details

Defined in Language.Jsonnet.Eval

HasValue Value Source # 
Instance details

Defined in Language.Jsonnet.Value

HasValue [Char] Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: [Char] -> Value Source #

proj :: Value -> Eval [Char] Source #

HasValue a => HasValue [a] Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: [a] -> Value Source #

proj :: Value -> Eval [a] Source #

HasValue a => HasValue (Maybe a) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: Maybe a -> Value Source #

proj :: Value -> Eval (Maybe a) Source #

HasValue a => HasValue (Vector a) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: Vector a -> Value Source #

proj :: Value -> Eval (Vector a) Source #

(HasValue a, HasValue b, HasValue c) => HasValue (a -> b -> Eval c) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> b -> Eval c) -> Value Source #

proj :: Value -> Eval (a -> b -> Eval c) Source #

(HasValue a, HasValue b) => HasValue (a -> Eval b) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> Eval b) -> Value Source #

proj :: Value -> Eval (a -> Eval b) Source #

(HasValue a, HasValue b, HasValue c) => HasValue (a -> b -> c) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> b -> c) -> Value Source #

proj :: Value -> Eval (a -> b -> c) Source #

(HasValue a, HasValue b) => HasValue (a -> b) Source # 
Instance details

Defined in Language.Jsonnet.Eval

Methods

inj :: (a -> b) -> Value Source #

proj :: Value -> Eval (a -> b) Source #