stratosphere-0.1.3: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Values

Synopsis

Documentation

data Val a Source #

This type is a wrapper around any values in a template. A value can be a Literal, a Ref, or an intrinsic function. See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html

Instances

Show a => Show (Val a) Source # 

Methods

showsPrec :: Int -> Val a -> ShowS #

show :: Val a -> String #

showList :: [Val a] -> ShowS #

IsString a => IsString (Val a) Source # 

Methods

fromString :: String -> Val a #

ToJSON a => ToJSON (Val a) Source # 

Methods

toJSON :: Val a -> Value #

toEncoding :: Val a -> Encoding #

FromJSON a => FromJSON (Val a) Source # 

Methods

parseJSON :: Value -> Parser (Val a) #

data Bool' Source #

We need to wrap Bools for the same reason we need to wrap Ints.

Constructors

False' 
True' 

newtype Double' Source #

We need to wrap Doubles for the same reason we need to wrap Ints.

Constructors

Double' 

Fields

class ToRef a b where Source #

Class used to create a Ref from another type.

Minimal complete definition

toRef

Methods

toRef :: a -> Val b Source #

Instances