typst-0.5.0.1: Parsing and evaluating typst syntax.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Typst.Util

Synopsis

Documentation

data TypeSpec Source #

Constructors

One ValType 
Many ValType 

Instances

Instances details
Show TypeSpec Source # 
Instance details

Defined in Typst.Util

Eq TypeSpec Source # 
Instance details

Defined in Typst.Util

makeElement :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> (Identifier, Val) Source #

Create element function with names for positional parameters.

makeElementWithScope :: Maybe Identifier -> Identifier -> [(Identifier, TypeSpec)] -> Map Identifier Val -> (Identifier, Val) Source #

Create element function with names for positional parameters.

makeFunction :: (forall m'. Monad m' => ReaderT Arguments (MP m') Val) -> Val Source #