Typst.Evaluate

typst-0.3.2.1: Parsing and evaluating typst syntax.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Typst.Evaluate

Synopsis

- evaluateTypst :: Monad m => Operations m -> FilePath -> [Markup] -> m (Either ParseError (Seq Content))
- valToContent :: Val -> Seq Content

# Documentation

evaluateTypst #

Arguments

:: Monad m |
=> Operations m | Dictionary of functions for IO operations
-> FilePath | Path of parsed content
-> [Markup] | Markup produced by `parseTypst`
-> m (Either ParseError (Seq Content)) |

Evaluate a parsed typst expression, evaluating the code and replacing it with content.

valToContent :: Val -> Seq Content #