minilight-0.5.0: A SDL2-based graphics library, batteries-included.
Safe HaskellNone
LanguageHaskell2010

MiniLight.Loader.Internal.Resolver

Synopsis

Documentation

data Expr Source #

Constructors

None 
Ref Text

reference syntax: ${ref:...}

Var Text

variable syntax: ${var:...}

Op Text Expr Expr

expr operator: +, -, *, /

Constant Value

constants (string or number or null)

Symbol Text

token symbol

App Expr [Expr]

function application ($func(a,b,c))

Instances

Instances details
Eq Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

Methods

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

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

Show Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Generic Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

Associated Types

type Rep Expr :: Type -> Type #

Methods

from :: Expr -> Rep Expr x #

to :: Rep Expr x -> Expr #

ToJSON Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

FromJSON Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

type Rep Expr Source # 
Instance details

Defined in MiniLight.Loader.Internal.Resolver

resolve :: Value -> Value Source #

Interpret a JSON value, and unsafely apply fromRight

parseAppConfig :: Value -> Either Text AppConfig Source #

Create AppConfig value from JSON value