| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Dhall.Context
Contents
Description
This is a utility module that consolidates all Context-related operations
Context
A (Context a) associates Text labels with values of type a. Each
Text label can correspond to multiple values of type a
The Context is used for type-checking when (a = Expr X)
- You create a
Contextusingemptyandinsert - You transform a
Contextusingfmap - You consume a
ContextusinglookupandtoList
The difference between a Context and a Map is that a Context
lets you have multiple ordered occurrences of the same key and you can
query for the nth occurrence of a given key.