language-nix-1.0: Haskell AST and Parsers for the Nix language

Copyright(c) 2013 Peter Simons
LicenseBSD3
Maintainersimons@cryp.to
Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Nix

Contents

Description

 

Synopsis

Evaluating the Nix Language

runEval :: Eval a -> Env -> Either Error a Source

eval :: Expr -> Eval Expr Source

Running the Parser

data ParseError :: *

The abstract data type ParseError represents parse errors. It provides the source position (SourcePos) of the error and a list of error messages (Message). A ParseError can be returned by the function parse. ParseError is an instance of the Show and Eq classes.

Nix Language AST

Nix Language Parsers

Parsec Language Specification