dhall-toml-1.0.3: Convert between Dhall and TOML
Safe HaskellSafe-Inferred
LanguageHaskell2010

Dhall.Toml.Utils

Description

This library provides utilities for converting Dhall source code into a normalized AST

Synopsis

Documentation

fileToDhall :: String -> IO (Expr Src Void) Source #

Read the file fileName and return the normalized Dhall AST

inputToDhall :: IO (Expr Src Void) Source #

Read from STDIN and return the normalized Dhall AST. The file name is set to "(input)"

textToDhall :: String -> Text -> IO (Expr Src Void) Source #

Parse text and return the normalized Dhall AST. A file name is required by the parser for generating error messages.