!^      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnop q r s t u v w x y z { | } ~        !"#$%&'()*+,-./01234567 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~(Safe4JndhallA  (Context a) associates  labels with values of type a . Each 1 label can correspond to multiple values of type aThe  is used for type-checking when  (a = Expr X) You create a  using  and  You transform a  using You consume a  using   and  The difference between a  and a  is that a ^ lets you have multiple ordered occurrences of the same key and you can query for the nth occurrence of a given key.dhall(An empty context with no key-value pairs dhallAdd a key-value pair to the  dhall"Pattern match" on a  Jmatch (insert k v ctx) = Just (k, v, ctx) match empty = Nothing dhallLook up a key by name and index lookup _ _ empty = Nothing lookup k 0 (insert k v c) = Just v lookup k n (insert k v c) = lookup k (n - 1) c lookup k n (insert j v c) = lookup k n c -- k /= j dhall+Return all key-value associations as a list JtoList empty = [] toList (insert k v ctx) = (k, v) : toList ctx  None7MMdhallA SHA256 digestdhallAttempt to interpret a  as a , returning  if the conversion failsdhallHash a  and return the hash as a dhall representation of a  NoneN(None 279:HVXv*dhallA - that remembers the original ordering of keys?This is primarily used so that formatting preserves field order0This is done primarily to avoid a dependency on insert-ordered-containers$ and also to improve performancedhallCreate an empty dhall Create a  from a single key-value pairsingleton "A" 1fromList [("A",1)]dhall Create a  from a list of key-value pairs6fromList [("B",1),("A",2)] -- The map preserves orderfromList [("B",1),("A",2)]KfromList [("A",1),("A",2)] -- For duplicates, later values take precedencefromList [("A",2)]1Note that this handling of duplicates means that  is not a monoid homomorphism:-fromList [(1, True)] <> fromList [(1, False)]fromList [(1,True)]&fromList ([(1, True)] <> [(1, False)])fromList [(1,False)]dhall Create a : from a list of key-value pairs with a combining function.NfromListWithKey (\k v1 v2 -> k ++ v1 ++ v2) [("B","v1"),("A","v2"),("B","v3")]#fromList [("B","Bv3v1"),("A","v2")]dhall Create a  from a Data.Map.dhallRemove duplicates from a listnubOrd [1,2,3][1,2,3]nubOrd [1,1,3][1,3] dhall Create a  from a single key-value pair.IAny further operations on this map will not retain the order of the keys.unorderedSingleton "A" 1fromList [("A",1)]!dhall Create a  from a list of key-value pairsIAny further operations on this map will not retain the order of the keys.unorderedFromList [] fromList []HunorderedFromList [("B",1),("A",2)] -- The map /doesn't/ preserve orderfromList [("A",2),("B",1)]TunorderedFromList [("A",1),("A",2)] -- For duplicates, later values take precedencefromList [("A",2)]"dhallSort the keys of a ", forgetting the original ordering sort (sort x) = sort x!sort (fromList [("B",1),("A",2)])fromList [("A",2),("B",1)]#dhallCheck if the keys of a  are already sorted isSorted (sort m) = TrueJisSorted (fromList [("B",1),("A",2)]) -- Sortedness is based only on keysFalse%isSorted (fromList [("A",2),("B",1)])True$dhallInsert a key-value pair into a N, overriding any previous value stored underneath the same key, if present insert = insertWith (\v _ -> v)Iinsert "C" 1 (fromList [("B",2),("A",3)]) -- Values are inserted on left"fromList [("C",1),("B",2),("A",3)]Hinsert "C" 1 (fromList [("C",2),("A",3)]) -- New value takes precedencefromList [("C",1),("A",3)]%dhallInsert a key-value pair into a q, using the supplied function to combine the new value with any old value underneath the same key, if presentBinsertWith (+) "C" 1 (fromList [("B",2),("A",3)]) -- No collision"fromList [("C",1),("B",2),("A",3)]?insertWith (+) "C" 1 (fromList [("C",2),("A",3)]) -- CollisionfromList [("C",3),("A",3)]&dhallDelete a key from a + if present, otherwise return the original /delete "B" (fromList [("C",1),("B",2),("A",3)])fromList [("C",1),("A",3)]/delete "D" (fromList [("C",1),("B",2),("A",3)])"fromList [("C",1),("B",2),("A",3)]'dhall0Keep all values that satisfy the given predicate0filter even (fromList [("C",3),("B",2),("A",1)])fromList [("B",2)]/filter odd (fromList [("C",3),("B",2),("A",1)])fromList [("C",3),("A",1)](dhall Restrict a  to only those keys found in a Data.Set..CrestrictKeys (fromList [("A",1),("B",2)]) (Data.Set.fromList ["A"])fromList [("A",1)])dhallRemove all keys in a Data.Set. from a BwithoutKeys (fromList [("A",1),("B",2)]) (Data.Set.fromList ["A"])fromList [("B",2)]*dhallTransform all values in a K using the supplied function, deleting the key if the function returns ImapMaybe Data.Maybe.listToMaybe (fromList [("C",[1]),("B",[]),("A",[3])])fromList [("C",1),("A",3)]+dhallRetrieve a key from a  Flookup k mempty = empty lookup k (x <> y) = lookup k y <|> lookup k x'lookup "A" (fromList [("B",1),("A",2)])Just 2'lookup "C" (fromList [("B",1),("A",2)])Nothing,dhall%Retrieve the first key, value of the 5, if present, and also returning the rest of the . >uncons mempty = empty uncons (singleton k v) = (k, v, mempty)+uncons (fromList [("C",1),("B",2),("A",3)])'Just ("C",1,fromList [("B",2),("A",3)])uncons (fromList [])Nothing-dhallCheck if a key belongs to a  Emember k mempty = False member k (x <> y) = member k x || member k y'member "A" (fromList [("B",1),("A",2)])True'member "C" (fromList [("B",1),("A",2)])False.dhallsize (fromList [("A",1)])1/dhall Combine two "s, preferring keys from the first  union = unionWith (\v _ -> v)?union (fromList [("D",1),("C",2)]) (fromList [("B",3),("A",4)])*fromList [("D",1),("C",2),("B",3),("A",4)]?union (fromList [("D",1),("C",2)]) (fromList [("C",3),("A",4)])"fromList [("D",1),("C",2),("A",4)]0dhall Combine two /s using a combining function for colliding keysGunionWith (+) (fromList [("D",1),("C",2)]) (fromList [("B",3),("A",4)])*fromList [("D",1),("C",2),("B",3),("A",4)]GunionWith (+) (fromList [("D",1),("C",2)]) (fromList [("C",3),("A",4)])"fromList [("D",1),("C",5),("A",4)]1dhallA generalised 0.^outerJoin Left Left (\k a b -> Right (k, a, b)) (fromList [("A",1),("B",2)]) (singleton "A" 3)-fromList [("A",Right ("A",1,3)),("B",Left 2)]&This function is much inspired by the Data.Semialign.Semialign class.2dhall Combine two < on their shared keys, keeping the value from the first  +intersection = intersectionWith (\v _ -> v)Fintersection (fromList [("C",1),("B",2)]) (fromList [("B",3),("A",4)])fromList [("B",2)]3dhall Combine two ds on their shared keys, using the supplied function to combine values from the first and second NintersectionWith (+) (fromList [("C",1),("B",2)]) (fromList [("B",3),("A",4)])fromList [("B",5)]4dhallCompute the difference of two .s by subtracting all keys from the second  from the first Ddifference (fromList [("C",1),("B",2)]) (fromList [("B",3),("A",4)])fromList [("C",1)]5dhall%Fold all of the key-value pairs in a , in their original order3foldMapWithKey (,) (fromList [("B",[1]),("A",[2])]) ("BA",[1,2])6dhallTransform the values of a  using their corresponding key TmapWithKey (pure id) = id mapWithKey (liftA2 (.) f g) = mapWithKey f . mapWithKey g VmapWithKey f mempty = mempty mapWithKey f (x <> y) = mapWithKey f x <> mapWithKey f y+mapWithKey (,) (fromList [("B",1),("A",2)])&fromList [("B",("B",1)),("A",("A",2))]7dhall)Traverse all of the key-value pairs in a , in their original order0traverseWithKey (,) (fromList [("B",1),("A",2)])!("BA",fromList [("B",1),("A",2)])8dhallSame as 7[, except that the order of effects is not necessarily the same as the order of the keys9dhall)Traverse all of the key-value pairs in a `, not preserving their original order, where the result of the computation can be forgotten.Note that this is a strict traversal, fully traversing the map even when the Applicative is lazy in the remaining elements.:dhall Convert a ; to a list of key-value pairs in the original order of keys#toList (fromList [("B",1),("A",2)])[("B",1),("A",2)];dhall Convert a 8 to a list of key-value pairs in ascending order of keys<dhall Convert a  Dhall.Map. to a Data.Map.CtoMap (fromList [("B",1),("A",2)]) -- Order is lost upon conversionfromList [("A",2),("B",1)]=dhallReturn the keys from a  in their original order!keys (fromList [("B",1),("A",2)]) ["B","A"]>dhallReturn the values from a  in their original order."elems (fromList [("B",1),("A",2)])[1,2]?dhall Return the Data.Set. of the keys$keysSet (fromList [("B",1),("A",2)])fromList ["A","B"]Bdhall'\x -> x <> mempty == (x :: Map Int Int)'\x -> mempty <> x == (x :: Map Int Int)Cdhall9\x y z -> x <> (y <> z) == (x <> y) <> (z :: Map Int Int)Gdhall7fromList [("A",1),("B",2)] < fromList [("B",1),("A",0)]True& !"#$%&'()*+,-./0123456789:;<=>?& !"#$%&'()*+-,./0123467895:;<=?>SafeQdhall Identical to  Control.Lens.!"Rdhall Identical to  Control.Lens.!#Sdhall Identical to  Control.Lens.!$Tdhall Identical to  Control.Lens.!%Udhall Identical to  Control.Lens.!&QRSTUQRSTUNone279:XVdhallThis is a variation on Data.Set.z that remembers the original order of elements. This ensures that ordering is not lost when formatting Dhall codeXdhallConvert to an unordered Data.Set.YdhallConvert to an ordered Zdhall Convert a V= to a list, preserving the original order of the elements[dhall Convert a V to a list of ascending elements\dhallConvert a list to a V, remembering the element order]dhall Convert a Data.Set. to a sorted V^dhall"Append an element to the end of a V_dhall The empty V`dhallReturns, in order, all elements of the first Set not present in the second. (It doesn't matter in what order the elements appear in the second Set.)adhall:Sort the set elements, forgetting their original ordering.)sort (fromList [2, 1]) == fromList [1, 2]TruebdhallisSorted (fromList [2, 1])FalseisSorted (fromList [1, 2])Truecdhallnull (fromList [1])Falsenull (fromList [])Trueddhallsize (fromList [1])1VWXYZ[\]^_`abcdVWZ[XY\]^_`abcd None279ڨqdhallSource code extractqrstuqrstu'None "#1245679:DSX_gOmdhallSyntax tree for expressionsThe s< type parameter is used to track the presence or absence of q spans:If s = q then the code may contains q spans (either in a > constructor or inline within another constructor, like )If s =  then the code has no q spansThe aC type parameter is used to track the presence or absence of importsIf a = & then the code may contain unresolved sIf a =  then the code has no sndhall Constants for a pure type systemThe axioms are: " Type : Kind " Kind : Sort!... and the valid rule pairs are: " Type ! Type : Type -- Functions from terms to terms (ordinary functions) " Kind ! Type : Type -- Functions from types to terms (type-polymorphic functions) " Sort ! Type : Type -- Functions from kinds to terms " Kind ! Kind : Kind -- Functions from types to types (type-level functions) " Sort ! Kind : Sort -- Functions from kinds to types (kind-polymorphic functions) " Sort ! Sort : Sort -- Functions from kinds to kinds (kind-level functions)zNote that Dhall does not support functions from terms to types and therefore Dhall is not a dependently typed languageodhallLabel for a bound variableThe % field is the variable's name (i.e. "x").The ! field disambiguates variables with the same name if there are multiple bound variables of the same name in scope. Zero refers to the nearest bound variable and the index increases by one for each bound variable of the same name going outward. The following diagram may help: p % %%refers to%%% % % v % (x : Type) ! (y : Type) ! (x : Type) ! x@0 % %%%%%%%%%%%%%%%%%refers to%%%%%%%%%%%%%%%%%% % % v % (x : Type) ! (y : Type) ! (x : Type) ! x@1This _ behaves like a De Bruijn index in the special case where all variables have the same name.+You can optionally omit the index if it is 0:  % %refers to%% % % v % (x : Type) ! (y : Type) ! (x : Type) ! x.Zero indices are omitted when pretty-printing Var6s and non-zero indices appear as a numeric suffix.dhall!Reference to an external resourcedhallA = extended with an optional hash for semantic integrity checksdhallGHow to interpret the import's contents (i.e. as Dhall code or raw text)dhall:The type of import (i.e. local vs. remote vs. environment)dhall Local pathdhall?URL of remote resource and optional headers stored in an importdhallEnvironment variabledhall9This type stores all of the components of a remote importdhallThe URI schemedhallEThe beginning of a file path which anchors subsequent path componentsdhall Absolute pathdhallPath relative to .dhallPath relative to ..dhallPath relative to ~dhallA  is a @ followed by one additional path component representing the  namedhall[Internal representation of a directory that stores the path components in reverse orderIn other words, the directory  /foo/bar/baz is encoded as 2Directory { components = [ "baz", "bar", "foo" ] }dhall&This type represents 1 or more nested H bindings that have been coalesced together for ease of manipulationdhall -Const c ~ cdhall ]Var (V x 0) ~ x Var (V x n) ~ x@ndhall 9Lam (FunctionBinding _ "x" _ _ A) b ~ (x : A) -> bdhall sPi "_" A B ~ A -> B Pi x A B ~ "(x : A) -> Bdhall /App f a ~ f adhall }Let (Binding _ x _ Nothing _ r) e ~ let x = r in e Let (Binding _ x _ (Just t ) _ r) e ~ let x : t = r in eThe difference between let x = a let y = b in eand let x = a in let y = b in eis only an additional  around  "y" & in the second example.See O for a representation of let-blocks that mirrors the source code more closely.dhall 1Annot x t ~ x : tdhall 0Bool ~ Booldhall -BoolLit b ~ bdhall 2BoolAnd x y ~ x && ydhall 2BoolOr x y ~ x || ydhall 2BoolEQ x y ~ x == ydhall 2BoolNE x y ~ x != ydhall >BoolIf x y z ~ if x then y else zdhall 3Natural ~ Naturaldhall -NaturalLit n ~ ndhall 8NaturalFold ~ Natural/folddhall 9NaturalBuild ~ Natural/builddhall :NaturalIsZero ~ Natural/isZerodhall 8NaturalEven ~ Natural/evendhall 7NaturalOdd ~ Natural/odddhall =NaturalToInteger ~ Natural/toIntegerdhall 8NaturalShow ~ Natural/showdhall <NaturalSubtract ~ Natural/subtractdhall 1NaturalPlus x y ~ x + ydhall 1NaturalTimes x y ~ x * ydhall 3Integer ~ Integerdhall .IntegerLit n ~ ndhall ;IntegerClamp ~ Integer/clampdhall <IntegerNegate ~ Integer/negatedhall 8IntegerShow ~ Integer/showdhall <IntegerToDouble ~ Integer/toDoubledhall 2Double ~ Doubledhall -DoubleLit n ~ ndhall 7DoubleShow ~ Double/showdhall 0Text ~ Textdhall >TextLit (Chunks [(t1, e1), (t2, e2)] t3) ~ "t1${e1}t2${e2}t3"dhall 2TextAppend x y ~ x ++ ydhall 5TextShow ~ Text/showdhall 0List ~ Listdhall hListLit (Just t ) [] ~ [] : t ListLit Nothing [x, y, z] ~ [x, y, z]@Invariant: A non-empty list literal is always represented as ListLit Nothing xs.LWhen an annotated, non-empty list literal is parsed, it is represented as 8Annot (ListLit Nothing [x, y, z]) t ~ [x, y, z] : tdhall 1ListAppend x y ~ x # ydhall 6ListBuild ~ List/builddhall 5ListFold ~ List/folddhall 7ListLength ~ List/lengthdhall 5ListHead ~ List/headdhall 5ListLast ~ List/lastdhall 8ListIndexed ~ List/indexeddhall 8ListReverse ~ List/reversedhall 4Optional ~ Optionaldhall 2Some e ~ Some edhall 0None ~ Nonedhall iRecord [ (k1, RecordField _ t1) ~ { k1 : t1, k2 : t1 } , (k2, RecordField _ t2) ]dhall oRecordLit [ (k1, RecordField _ v1) ~ { k1 = v1, k2 = v2 } , (k2, RecordField _ v2) ]dhall ?Union [(k1, Just t1), (k2, Nothing)] ~ < k1 : t1 | k2 >dhall 1Combine Nothing x y ~ x "' yThe first field is a  when the K operator is introduced as a result of desugaring duplicate record fields: RecordLit [ ( k ~ { k = x, k = y } , RecordField _ (Combine (Just k) x y) )]dhall 1CombineTypes x y ~ x *S ydhall 1Prefer False x y ~ x * yThe first field is a  when the 5 operator is introduced as a result of desugaring a with expressiondhall 0RecordCompletion x y ~ x::ydhall oMerge x y (Just t ) ~ merge x y : t Merge x y Nothing ~ merge x ydhall kToMap x (Just t) ~ toMap x : t ToMap x Nothing ~ toMap xdhall 2Field e (FieldSelection _ x _) ~ e.xdhall fProject e (Left xs) ~ e.{ xs } Project e (Right t) ~ e.(t)dhall 6Assert e ~ assert : edhall 1Equivalent x y ~ x "a ydhall 8With x y e ~ x with y = edhall -Note s x ~ edhall 3ImportAlt ~ e1 ? e2dhall 2Embed import ~ importdhall)Record the field on a selector-expression For example, e . x #will be instantiated as follows: * fieldSelectionSrc0 corresponds to the A comment * fieldSelectionLabel corresponds to x * fieldSelectionSrc1 corresponds to the B commentXGiven our limitation that not all expressions recover their whitespaces, the purpose of fieldSelectionSrc1 is to save the () where the fieldSelectionLabel ends, but we still use a 'Maybe Src' (s = q3) to be consistent with similar data types such as  , for example.dhall<Record the label of a function or a function-type expression For example, ( a : T) -> e#will be instantiated as follows: * functionBindingSrc0 corresponds to the A comment * functionBindingVariable is a * functionBindingSrc1 corresponds to the B comment * functionBindingSrc2 corresponds to the C comment * functionBindingAnnotation is TdhallRecord the field of a record-type and record-literal expression. The reason why we use the same ADT for both of them is because they store the same information. For example,  { x : T }... or  { x = T } will be instantiated as follows:recordFieldSrc0 corresponds to the A comment.recordFieldValue is TrecordFieldSrc1 corresponds to the B comment.recordFieldSrc2 corresponds to the C comment. Although the A comment isn't annotating the T= Record Field, this is the best place to keep these comments. Note that recordFieldSrc2 is always  when the , is for a punned entry, because there is no = sign. For example, { x } will be instantiated as follows:recordFieldSrc0 corresponds to the A comment.recordFieldValue corresponds to  (Var "x")recordFieldSrc1 corresponds to the B comment.recordFieldSrc2 will be FThe labels involved in a record using dot-syntax like in this example: { a . b . c = e } will be instantiated as follows:  For both the a and b field, recordfieldSrc2 is For the a field:recordFieldSrc0 corresponds to the A commentrecordFieldSrc1 corresponds to the B commentFor the b field:recordFieldSrc0 corresponds to the C commentrecordFieldSrc1 corresponds to the D commentFor the c field:recordFieldSrc0 corresponds to the E commentrecordFieldSrc1 corresponds to the F commentrecordFieldSrc2 corresponds to the G comment>That is, for every label except the last one the semantics of recordFieldSrc0 and recordFieldSrc1. are the same from a regular record label but recordFieldSrc2 is always %. For the last keyword, all srcs are dhallUsed to record the origin of a //= operator (i.e. from source code or a product of desugaring)dhallStores the original with expressiondhallThe body of an interpolated Text literaldhallThis wrapper around  exists for its = instance which is defined via the binary encoding of Dhall Doubles. dhallRecord the binding part of a let expression. For example, let x : Bool = True in x will be instantiated as follows: bindingSrc0 corresponds to the A comment.variable is "x" bindingSrc1 corresponds to the B comment. annotation is  a pair, corresponding to the C comment and Bool. bindingSrc2 corresponds to the D comment.value corresponds to True.dhall Construct a  3 with no source information and no type annotation.dhall Construct a  with no src informationdhallSmart constructor for  with no src informationdhallSmart constructor for  with no src informationdhall Generate a  from the contents of a .In the resulting  bs e, e is guaranteed not to be a , but it might be a ( & ( &)).Given parser output,  consolidates let5s that formed a let-block in the original source.dhall Wrap let-  s around an m.% can be understood as an inverse for : @let MultiLet bs e1 = multiLet b e0 wrapInLets bs e1 == Let b e0dhall@A traversal over the immediate sub-expressions of an expression.dhallqAn internal utility used to implement transformations that require changing one of the type variables of the m typeTThis utility only works because the implementation is partial, not handling the , , or 3 cases, which need to be handled by the caller.dhallTraverse over the immediate m children in a  .dhallTraverse over the immediate m children in a .dhallTraverse over the immediate m children in a .dhall2A traversal over the immediate sub-expressions in . dhallReturns  if the given / is valid within an unquoted path component&This is exported for reuse within the Dhall.Parser.Token module!dhall Remove all  constructors from an m (i.e. de-)"dhallThe "opposite" of !, like  first absurd but faster#dhallRemove any outermost  constructors>This is typically used when you want to get the outermost non-+ constructor without removing internal  constructorsdhall.The set of reserved keywords according to the keyword rule in the grammar$dhalllThe set of reserved identifiers for the Dhall language | Contains also all keywords from "reservedKeywords"dhallSame as Data.Text.splitOn, except always returning a  resultdhallSplit  by linesdhallFlatten several  back into a single  by inserting newlinesdhallReturns  if the  represents a blank linedhall$Return the leading whitespace for a  literaldhallbCompute the longest shared whitespace prefix for the purposes of stripping leading indentationdhallDrop the first n characters for a  literaldhallConvert a single-quoted - literal to the equivalent double-quoted  literal%dhall%k is used by both normalization and type-checking to avoid variable capture by shifting variable indicesIFor example, suppose that you were to normalize the following expression: 4(a : Type) ! (x : a) ! ((y : a) ! (x : a) ! y) xIf you were to substitute y with x^ without shifting any variable indices, then you would get the following incorrect result: C(a : Type) ! (x : a) ! (x : a) ! x -- Incorrect normalized formIn order to substitute x in place of y we need to % x by 13 in order to avoid being misinterpreted as the x8 bound by the innermost lambda. If we perform that % then we get the correct result: '(a : Type) ! (x : a) ! (x : a) ! x@1ZAs a more worked example, suppose that you were to normalize the following expression: [ (a : Type) ! (f : a ! a ! a) ! (x : a) ! (x : a) ! ((x : a) ! f x x@1) x@1'The correct normalized result would be: J (a : Type) ! (f : a ! a ! a) ! (x : a) ! (x : a) ! f x@1 xuThe above example illustrates how we need to both increase and decrease variable indices as part of substitution:+We need to increase the index of the outer x@1 to x@2 before we substitute it into the body of the innermost lambda expression in order to avoid variable capture. This substitution changes the body of the lambda expression to  (f x@2 x@1)UWe then remove the innermost lambda and therefore decrease the indices of both xs in  (f x@2 x@1) to  (f x@1 x)) in order to reflect that one less x( variable is now bound within that scope Formally, (shift d (V x n) e) modifies the expression e by adding d+ to the indices of all variables named x$ whose indices are greater than (n + m), where mH is the number of bound variables of the same name within that scope In practice, d is always 1 or -1 because we either:increment variables by 1. to avoid variable capture during substitutiondecrement variables by 1) when deleting lambdas after substitutionn starts off at 0 when substitution begins and increments every time we descend into a lambda or let expression that binds a variable of the same name in order to avoid shifting the bound variables by mistake.&dhall Desugar all with expressions'dhallUtility function used to throw internal errors that should never happen (in theory) but that are not enforced by the type systemdhallThis instance relies on the  instance for # but cannot satisfy the customary  laws when NaN is involved.dhall*This instance satisfies all the customary  laws except substitutivity.In particular:nan = DhallDouble (0/0) nan == nanTrueHThis instance is also consistent with with the binary encoding of Dhall Doubles:KtoBytes n = Dhall.Binary.encodeExpression (DoubleLit n :: Expr Void Import),\a b -> (a == b) == (toBytes a == toBytes b)dhall-Generates a syntactically valid Dhall programdhallNote that this  instance inherits  's defects.dhall^This instance encodes what the Dhall standard calls an "exact match" between two expressions. Note thatnan = DhallDouble (0/0)DoubleLit nan == DoubleLit nanTruemno      !"#$%&'*None"#b+None %1>SX_gdhallSome information is lost when  converts a % or a built-in function from the m type to a  of the  type and B needs that information in order to reconstruct an equivalent m. This O type holds that extra information necessary to perform that reconstructiondhallDon't store any informationdhall>Store the original name and type of the variable bound by the dhallThe original function was a Natural/subtract 07. We need to preserve this information in case the Natural/subtract` ends up not being fully saturated, in which case we need to recover the unsaturated built-in(dhallUtility that powers the  Text/show built-indhall$Quote a value into beta-normal form.dhallNormalize an expression in an environment of values. Any variable pointing out of the environment is treated as opaque free variable.dhall For use with Text.Show.Functions.X(5,None%SX_Ao )dhall A reified ,U, which can be stored in structures without running into impredicative polymorphism.,dhallAn variation on - for pure normalizers-dhall-Use this to wrap you embedded functions (see 20) to make them polymorphic enough to be used..dhallReturns > if two expressions are -equivalent and -equivalent and  otherwise. can fail with an ) if you compare ill-typed expressions/dhall;Substitute all occurrences of a variable with an expression subst x C B ~ B[x := C]dhall6This function is used to determine whether folds like  Natural/fold or  List/foldW should be lazy or strict in their accumulator based on the type of the accumulatorIf this function returns , then they will be strict in their accumulator since we can guarantee an upper bound on the amount of work to normalize the accumulator on each step of the loop. If this function returns k then they will be lazy in their accumulator and only normalize the final result at the end of the fold0dhall=-normalize an expression by renaming all bound variables to "_"4 and using De Bruijn indices to distinguish them mfb = Syntax.makeFunctionBindingtalphaNormalize (Lam (mfb "a" (Const Type)) (Lam (mfb "b" (Const Type)) (Lam (mfb "x" "a") (Lam (mfb "y" "b") "x"))))Lam (FunctionBinding {functionBindingSrc0 = Nothing, functionBindingVariable = "_", functionBindingSrc1 = Nothing, functionBindingSrc2 = Nothing, functionBindingAnnotation = Const Type}) (Lam (FunctionBinding {functionBindingSrc0 = Nothing, functionBindingVariable = "_", functionBindingSrc1 = Nothing, functionBindingSrc2 = Nothing, functionBindingAnnotation = Const Type}) (Lam (FunctionBinding {functionBindingSrc0 = Nothing, functionBindingVariable = "_", functionBindingSrc1 = Nothing, functionBindingSrc2 = Nothing, functionBindingAnnotation = Var (V "_" 1)}) (Lam (FunctionBinding {functionBindingSrc0 = Nothing, functionBindingVariable = "_", functionBindingSrc1 = Nothing, functionBindingSrc2 = Nothing, functionBindingAnnotation = Var (V "_" 1)}) (Var (V "_" 1)))))/-normalization does not affect free variables:alphaNormalize "x" Var (V "x" 0)1dhallBReduce an expression to its normal form, performing beta reduction1 does not type-check the expression. You may want to type-check expressions before normalizing them since normalization can convert an ill-typed expression into a well-typed expression.1 can also fail with - if you normalize an ill-typed expression2dhallkReduce an expression to its normal form, performing beta reduction and applying any custom definitions.2& is designed to be used with function -. The -V function allows typing of Dhall functions in a custom typing context whereas 29 allows evaluating Dhall expressions in a custom context.To be more precise 2i applies the given normalizer when it finds an application term that it cannot reduce by other means.Note that the context used in normalization will determine the properties of normalization. That is, if the functions in custom context are not total then the Dhall language, evaluated with those functions is not total either.2 can fail with an - if you normalize an ill-typed expression3dhallThis function generalizes 2; by allowing the custom normalizer to use an arbitrary  3 can fail with an - if you normalize an ill-typed expression4dhallTCheck if an expression is in a normal form given a context of evaluation. Unlike 5@, this will fully normalize and traverse through the expression.!It is much more efficient to use 5.4 can fail with an ' if you check an ill-typed expression5dhall0Quickly check if an expression is in normal formGiven a well-typed expression e, 5 e is equivalent to e == 1 e.Given an ill-typed expression, 5> may fail with an error, or evaluate to either False or True!6dhall@Detect if the given variable is free within the given expression"x" `freeIn` "x"True"x" `freeIn` "y"FalseB"x" `freeIn` Lam (Syntax.makeFunctionBinding "x" (Const Type)) "x"False%)*+,-./0123456 NoneNj7dhallRSubstitutions map variables to arbitrary Dhall expressions. Note that we use  Dhall.Map.Map> as an underlying structure. Hence we respect insertion order.8dhallAn empty substitution map.9dhallsubstitute expr s replaces all variables in expri (or its subexpression) with their substitute. For example, if the substitution map maps the variable Foo& to the text "Foo" all occurrences of Foo with the text "Foo".XThe substitutions will be done in the order they are inserted into the substitution map: {-# LANGUAGE OverloadedStrings #-} substitute (Dhall.Core.Var "Foo") (Dhall.Map.fromList [("Foo", Dhall.Core.Var "Bar"), ("Bar", Dhall.Core.Var "Baz")]) results in Dhall.Core.Var "Baz"^ since we first substitute "Foo" with "Bar" and then the resulting "Bar" with the final "Baz".789789 None"#%=>?Z= :dhall)This indicates that a given CBOR-encoded  3 did not correspond to a valid Dhall expression<dhallSupported version stringsThis exists primarily for backwards compatibility for expressions encoded before Dhall removed version tags from the binary encoding=dhallNo version string>dhallVersion "5.0.0"?dhallVersion "4.0.0"@dhallVersion "3.0.0"AdhallVersion "2.0.0"BdhallVersion "1.0.0"Cdhall Render a < as  dhallcConvert a function applied to multiple arguments to the base function and the list of argumentsDdhall,Encode a Dhall expression as a CBOR-encoded  Edhall&Decode a Dhall expression from a CBOR ./ dhallThis specialized version of 01* reduces decoding timings by roughly 10%. :;<=>?@ABCDE <=>?@ABCDE:;2None"#%_5"~dhallfAnnotation type used to tag elements in a pretty-printed document for syntax highlighting purposesdhallPretty print an expressionMdhall/This type determines whether to render code as N or OPdhallUsed for syntactic keywordsQdhall:Syntax punctuation such as commas, parenthesis, and bracesRdhall Record labelsSdhall%Literals such as integers and stringsTdhallBuiltin types and valuesUdhall OperatorsVdhallUConvert annotations to their corresponding color for syntax highlighting purposes dhallZInternal utility for pretty-printing, used when generating element lists to supply to  or z. This utility indicates that the compact represent is the same as the multi-line representation for each elementdhallUsed to render inline q# spans preserved by the syntax treeflet unusedSourcePos = Text.Megaparsec.SourcePos "" (Text.Megaparsec.mkPos 1) (Text.Megaparsec.mkPos 1)Plet nonEmptySrc = Src unusedSourcePos unusedSourcePos "-- Documentation for x\n"?"let" <> " " <> renderSrc id (Just nonEmptySrc) <> "x = 1 in x"let -- Documentation for x x = 1 in x;let emptySrc = Src unusedSourcePos unusedSourcePos " "<"let" <> " " <> renderSrc id (Just emptySrc) <> "x = 1 in x"let x = 1 in x4"let" <> " " <> renderSrc id Nothing <> "x = 1 in x"let x = 1 in xdhallRender a comment.aAny preprocessing, such as whitespace stripping, needs to be handled by the caller, see e.g. .See the documentation for  for examples.dhallThis is a variant of  with the following differences:The u8 is stripped of all whitespace at the start and the end.When the stripped u is empty, the result is .dhall   mSrc "a  ( mSrc) dhallPretty-print a listdhall%Pretty-print union types and literalsdhall&Pretty-print record types and literalsdhall3Pretty-print anonymous functions and function typesdhallcFormat an expression that holds a variable number of elements, such as a list, record, or uniondhallmFormat an expression that holds a variable number of elements without a trailing document such as nested `let`, nested lambdas, or nested sWdhall/Escape a label if it is not valid when unquotedXdhallGEscape an environment variable if not a valid Bash environment variableYdhallPretty-print an m using the given M.Y largely ignores s. 1s do however matter for the layout of let-blocks:klet inner = Let (Binding Nothing "x" Nothing Nothing Nothing (NaturalLit 1)) (Var (V "x" 0)) :: Expr Src ()aprettyCharacterSet ASCII (Let (Binding Nothing "y" Nothing Nothing Nothing (NaturalLit 2)) inner)let y = 2 let x = 1 in xprettyCharacterSet ASCII (Let (Binding Nothing "y" Nothing Nothing Nothing (NaturalLit 2)) (Note (Src unusedSourcePos unusedSourcePos "") inner))let y = 2 in let x = 1 in x;This means the structure of parsed let-blocks is preserved.dhallPrepare a for multi-line formatting by escaping problematic character sequences via string interpolations$multilineChunks (Chunks [] "\n \tx")-Chunks [("\n",TextLit (Chunks [] " \t"))] "x"*multilineChunks (Chunks [] "\n\NUL\b\f\t")3Chunks [("\n",TextLit (Chunks [] "\NUL\b\f"))] "\t"dhall1Escape any leading whitespace shared by all linesGThis ensures that significant shared leading whitespace is not stripped1escapeSharedWhitespacePrefix (Chunks [] "\n \tx")-Chunks [("\n",TextLit (Chunks [] " \t"))] "x"@escapeSharedWhitespacePrefix (Chunks [("\n",Var (V "x" 0))] " ")!Chunks [("\n",Var (V "x" 0))] " "@escapeSharedWhitespacePrefix (Chunks [("\n ",Var (V "x" 0))] "")=Chunks [("\n",TextLit (Chunks [] " ")),("",Var (V "x" 0))] ""BescapeSharedWhitespacePrefix (Chunks [("\n ",Var (V "x" 0))] "\n")#Chunks [("\n ",Var (V "x" 0))] "\n",escapeSharedWhitespacePrefix (Chunks [] " ")(Chunks [("",TextLit (Chunks [] " "))] ""dhallCEscape control characters by moving them into string interpolations2escapeControlCharacters (Chunks [] "\n\NUL\b\f\t")3Chunks [("\n",TextLit (Chunks [] "\NUL\b\f"))] "\t"dhallSplit > on a predicate, preserving all parts of the original string.splitOnPredicate (== 'x') ""([],"") splitOnPredicate (== 'x') " xx "([(" ","xx")]," ")splitOnPredicate (== 'x') "xx"([("","xx")],"")l\(Fun _ p) s -> let {t = Text.pack s; (as, b) = splitOnPredicate p t} in foldMap (uncurry (<>)) as <> b == tdhallGEscape a trailing single quote by moving it into a string interpolation.Otherwise the multiline-string would end with '''', which would be parsed as an escaped ''.+escapeTrailingSingleQuote (Chunks [] "\n'")*Chunks [("\n",TextLit (Chunks [] "'"))] ""dhallPretty-print a value dhall Escape a ; literal using Dhall's escaping rules for single-quoted Text!dhall Escape a % literal using Dhall's escaping rules8Note that the result does not include surrounding quotesZdhall Layout using [/Tries hard to fit the document into 80 columns.-This also removes trailing space characters (' ') unless% they are enclosed in an annotation.[dhallDefault layout optionsdhall@Used to preprocess the comment string (e.g. to strip whitespace)dhall"Source span to render (if present)dhall-Beginning document for compact representationdhall0Beginning document for multi-line representationdhall$Separator for compact representationdhall'Separator for multi-line representationdhall*Ending document for compact representationdhall-Ending document for multi-line representationdhall-Elements to format, each of which is a pair: (compact, multi-line)dhall-Beginning document for compact representationdhall0Beginning document for multi-line representationdhall$Separator for compact representationdhall'Separator for multi-line representationdhall-Elements to format, each of which is a pair: (compact, multi-line)7~SRUQPT"#$%MNOV&'()*+,-./0123456789:W;<=>?@AXY!BCDZ[ NoneH~SRUQPTMNOVWXYZ[~SRUQPTVMNOYZ[XWNone"#%\dhallThis type is a E enriched with a ^= flag to efficiently track if any difference was detected`dhall@Render the difference between the normal form of two expressionsadhall-Render the difference between two expressions\]^_`a\]^_`a3None@A edhallA e! that is almost identical to Text.Megaparsec.F9 except treating Haskell-style comments as whitespacehdhallAn exception annotated with a q spanGdhallDoesn't force the  partHdhall count n p parses n occurrences of pIdhall range lo hi p parses n ocurrences of p where  lo <= n <= hiJdhalloption p tries to apply parser p returning mempty if parsing failedKdhallstar p tries to apply a parser 0 or more timesLdhallplus p tries to apply a parser 1 or more timesMdhall satisfy p_ creates a parser that consumes and return the next character if it satisfies the predicate pNdhall takeWhile p creates a parser that accepts the longest sequence of characters that match the given predicate possibly returning an empty sequenceOdhall takeWhile1 p creates a parser that accepts the longest sequence of characters that match the given predicate. It fails when no character was consumedPdhallJConstruct a 'Set a' from a '[a]', failing if there was a duplicate elementQdhallVCreates a map with the given key-value pairs, failing if there was a duplicate key.RdhallWCreates a 'Map Text a' using the provided combining function and the key-value pairsefghiGHIJKLMNOPQRNone"#ThjdhallThe  pathComponentj function uses this type to distinguish whether to parse a URL path component or a file path componentmdhallReturns  if the given  is a valid Unicode codepointndhall:Parse 0 or more whitespace characters (including comments)This corresponds to the whsp rule in the official grammarodhall:Parse 1 or more whitespace characters (including comments)This corresponds to the whsp1 rule in the official grammarpdhall*Parse a hex digit (uppercase or lowercase)This corresponds to the HEXDIG rule in the official grammarqdhallParse a  literalThis corresponds to the double-literal rule from the official grammarrdhallParse a signed InfinityThis corresponds to the minus-infinity-literal and plus-infinity-literal$ rules from the official grammarsdhall Parse an  literalThis corresponds to the integer-literal rule from the official grammartdhallParse a  literal This corresponds to the natural-literal rule from the official grammarudhall1Parse an identifier (i.e. a variable or built-in)GVariables can have an optional index to disambiguate shadowed variablesThis corresponds to the  identifier rule from the official grammarvdhall<Parse a hexademical number and convert to the corresponding wdhall3Parse a Dhall's single-line comment, starting from `--`- and until the last character of the line before the end-of-line characterxdhall*Parsed text doesn't include opening bracesydhall1Parse a braced sequence of comma-separated labels?For example, this is used to parse the record projection syntaxThis corresponds to the labels rule in the official grammarzdhall6Parse a label (e.g. a variable/field/alternative name)/Rejects labels that match built-in names (e.g.  Natural/even)This corresponds to the nonreserved-label rule in the official grammar{dhallSame as z' except that built-in names are allowedThis corresponds to the  any-label rule in the official grammar|dhallSame as { except that  is allowedThis corresponds to the any-label-or-some rule in the official grammar}dhall,Parse a valid Bash environment variable nameThis corresponds to the bash-environment-variable! rule in the official grammar~dhallParse a valid POSIX environment variable name, which permits a wider range of characters than a Bash environment variable nameThis corresponds to the posix-environment-variable! rule in the official grammarSdhallParse a path componentdhallParse a dhall0Parse an HTTP(S) URL without trailing whitespaceThis corresponds to the http-raw rule in the official grammardhallA variation on T6 that doesn't quote the expected in error messagesdhallA variation on U< that doesn't quote the expected token in error messagesdhall Parse the if keywordThis corresponds to the if rule from the official grammardhall Parse the then keywordThis corresponds to the then rule from the official grammardhall Parse the else keywordThis corresponds to the else rule from the official grammardhall Parse the let keywordThis corresponds to the let rule from the official grammardhall Parse the in keywordThis corresponds to the in rule from the official grammardhall Parse the as keywordThis corresponds to the as rule from the official grammardhall Parse the using keywordThis corresponds to the using rule from the official grammardhall Parse the merge keywordThis corresponds to the merge rule from the official grammardhall Parse the toMap keywordThis corresponds to the toMap rule from the official grammardhall Parse the assert keywordThis corresponds to the assert rule from the official grammardhall Parse the with keyworddhall Parse the Some built-inThis corresponds to the Some rule from the official grammardhall Parse the None built-inThis corresponds to the None rule from the official grammardhall Parse the  Natural/fold built-inThis corresponds to the  Natural-fold rule from the official grammardhall Parse the  Natural/build built-inThis corresponds to the  Natural-build rule from the official grammardhall Parse the Natural/isZero built-inThis corresponds to the Natural-isZero rule from the official grammardhall Parse the  Natural/even built-inThis corresponds to the  Natural-even rule from the official grammardhall Parse the  Natural/odd built-inThis corresponds to the  Natural-odd rule from the official grammardhall Parse the Natural/toInteger built-inThis corresponds to the Natural-toInteger rule from the official grammardhall Parse the  Natural/show built-inThis corresponds to the  Natural-show rule from the official grammardhall Parse the Natural/subtract built-inThis corresponds to the Natural-subtract rule from the official grammardhall Parse the  Integer/clamp built-inThis corresponds to the  Integer-clamp rule from the official grammardhall Parse the Integer/negate built-inThis corresponds to the Integer-negate rule from the official grammardhall Parse the  Integer/show built-inThis corresponds to the  Integer-show rule from the official grammardhall Parse the Integer/toDouble built-inThis corresponds to the Integer-toDouble rule from the official grammardhall Parse the  Double/show built-inThis corresponds to the  Double-show rule from the official grammardhall Parse the  List/build built-inThis corresponds to the  List-build rule from the official grammardhall Parse the  List/fold built-inThis corresponds to the  List-fold rule from the official grammardhall Parse the  List/length built-inThis corresponds to the  List-length rule from the official grammardhall Parse the  List/head built-inThis corresponds to the  List-head rule from the official grammardhall Parse the  List/last built-inThis corresponds to the  List-last rule from the official grammardhall Parse the  List/indexed built-inThis corresponds to the  List-indexed rule from the official grammardhall Parse the  List/reverse built-inThis corresponds to the  List-reverse rule from the official grammardhall Parse the Bool built-inThis corresponds to the Bool rule from the official grammardhall Parse the Optional built-inThis corresponds to the Optional rule from the official grammardhall Parse the Natural built-inThis corresponds to the Natural rule from the official grammardhall Parse the Integer built-inThis corresponds to the Integer rule from the official grammardhall Parse the Double built-inThis corresponds to the Double rule from the official grammardhall Parse the Text built-inThis corresponds to the Text rule from the official grammardhall Parse the  Text/show built-inThis corresponds to the  Text-show rule from the official grammardhall Parse the List built-inThis corresponds to the List rule from the official grammardhall Parse the True built-inThis corresponds to the True rule from the official grammardhall Parse the False built-inThis corresponds to the False rule from the official grammardhallParse a NaN literalThis corresponds to the NaN rule from the official grammardhall Parse the Type built-inThis corresponds to the Type rule from the official grammardhall Parse the Kind built-inThis corresponds to the Kind rule from the official grammardhall Parse the Sort built-inThis corresponds to the Sort rule from the official grammardhall Parse the Location keywordThis corresponds to the Location rule from the official grammardhall Parse the = symboldhall Parse the || symboldhall Parse the + symboldhall Parse the ++ symboldhall Parse the # symboldhall Parse the && symboldhall Parse the * symboldhall Parse the == symboldhall Parse the != symboldhall Parse the . symboldhall Parse the { symboldhall Parse the } symboldhall Parse the [] symboldhall Parse the ] symboldhall Parse the < symboldhall Parse the > symboldhall Parse the | symboldhall Parse the , symboldhall Parse the ( symboldhall Parse the ) symboldhall Parse the : symboldhall Parse the @ symboldhallParse the equivalence symbol (=== or "a)dhall Parse the missing keyworddhall Parse the ? symboldhall#Parse the record combine operator (/\ or "')dhall(Parse the record type combine operator (//\\ or *S)dhall$Parse the record "prefer" operator (// or *)dhallParse a lambda (\ or )dhallParse a forall (forall or ")dhallParse a right arrow (-> or !)dhallParse a double colon (::)ijklmnopqrstuvwxyz{|}~imnwxo}~jklz|{ypuvqrtsNone "#$Xvdhall< distinguishes certain subtypes of application expressions.dhall merge x y, Some x or toMap x, unparenthesized.dhallAn import expression.dhall!Any other application expression.dhallVFor efficiency (and simplicity) we only expose two parsers from the result of the M function, since these are the only parsers needed outside of this moduledhall)Get the current source offset (in tokens)dhallSet the current source offsetdhallWrap a e2 to still match the same text but return only the q spandhallSame as %, except also return the parsed valuedhallWrap a e= to still match the same text, but to wrap the resulting m in a  constructor containing the q spandhallBParse a complete expression (with leading and trailing whitespace)This corresponds to the complete-expression# rule from the official grammardhallParse an "import expression"This is not the same thing as  . This parses any expression of the same or higher precedence as an import expression (such as a selector expression). For example, this parses (1)This corresponds to the import-expression rule from the official grammardhallGiven a parser for imports, dhall$Parse an environment variable importThis corresponds to the env rule from the official grammardhall0Parse a local import without trailing whitespacedhallParse a local importThis corresponds to the local rule from the official grammardhallParse an HTTP(S) importThis corresponds to the http rule from the official grammardhallParse a  importThis corresponds to the missing rule from the official grammardhall Parse an This corresponds to the  import-type rule from the official grammardhallParse a This corresponds to the hash rule from the official grammardhall Parse an This corresponds to the  import-hashed rule from the official grammardhall Parse an This corresponds to the import rule from the official grammarNone"#SX~dhallPretty-print a valuedhall Escape a % literal using Dhall's escaping rules8Note that the result does not include surrounding quotesdhallUtility used to implement the --censor flag, by:Replacing all q text with spacesReplacing all ( literals inside type errors with spacesdhallUtility used to censor - by replacing all characters with a spacedhall#Convenience utility for converting V-based exceptions to W-based exceptionsmno      !"#$%&'()*+,-./0123456no     m0123,-)*+./%54!"#6'$ (&None"#dhallGA header corresponds to the leading comment at the top of a Dhall file._The header includes comment characters but is stripped of leading spaces and trailing newlinesdhallA parsing errordhall'Parser for a top-level Dhall expressiondhallParser for a top-level Dhall expression. The expression is parameterized over any parseable type, allowing the language to be extended as needed.dhallAReplace the source code with spaces when rendering error messages&This utility is used to implement the --censor flagdhallParse an expression from  containing a Dhall programdhallBCreate a header with stripped leading spaces and trailing newlinesdhallLike r but also returns the leading comments and whitespace (i.e. header) up to the last newline before the code begins5In other words, if you have a Dhall file of the form: -- Comment 1 {- Comment -} 2Then this will preserve  Comment 1 , but not  Comment 2This is used by  dhall-format, to preserve leading comments and whitespacedhallUUser-friendly name describing the input expression, used in parsing error messagesdhallInput expression to parsedhallUUser-friendly name describing the input expression, used in parsing error messagesdhallInput expression to parseqrstuefghiqrstuhiefgNone "#$%dhall(Automatically improve a Dhall expressionCurrently this:removes unused let bindings with .fixes  let a = x "a y to be let a = assert : x "a yconsolidates nested let bindings to use a multiple-let binding with fixes paths of the form ./../foo to ../foodhallRemove unused  bindings.dhallFix . bindings that the user probably meant to be assertsdhallThis transforms ./../foo into ../foodhallThe difference between let x = 1 let y = 2 in x + yand let x = 1 in let y = 2 in x + y,is that in the second expression, the inner  is wrapped by a .We remove such a > in order to consolidate nested let-blocks into a single one.dhallHThis replaces a record of key-value pairs with the equivalent use of toMapThis is currently not used by  dhall lint because this would sort Map keys, which is not necessarily a behavior-preserving change, but is still made available as a convenient rewrite rule. For example, {json,yaml}-to-dhall+ use this rewrite to simplify their output.4None"#ɅdhallWrapper around 56s with a prettier X instance8In order to keep the library API constant even when the  with-httpP Cabal flag is disabled the pretty error message is pre-rendered and the real 56 is stored in a YZdhall]This exception indicates that there was an internal error in Dhall's import-related logic)This exception indicates that an invalid '7 was provided to the 8 functiondhall,State threaded throughout the import process dhall Stack of @s that we've imported along the way to get to the current point dhallYGraph of all the imports visited so far, represented by a list of import dependencies. dhallCache of imported expressions with their node id in order to avoid importing the same expression twice with different valuesdhallUsed to cache the  when making multiple requestsdhall:The remote resolver, fetches the content at the given URL.dhallShared state for HTTP requestsdhallYThis enables or disables the semantic cache for imports protected by integrity checksdhall imports (i.e. depends on) dhall(An import that has been fully interpeted[dhall7The fully resolved import, typechecked and beta-normal.dhall]A fully "chained" import, i.e. if it contains a relative path that path is relative to the current directory. If it is a remote import with headers those are well-typed (either of type `List { header : Text, value Text}` or `List { mapKey : Text, mapValue Text})` and in normal form. These invariants are preserved by the API exposed by  Dhall.Import.dhallThe underlying importdhallThe default HTTP \dhallInitial , parameterised over the HTTP G and the remote resolver, importing relative to the given directory. dhall Lens from a  to its   field!dhall Lens from a  to its   field"dhall Lens from a  to its   field#dhall Lens from a  to its  field$dhall Lens from a  to its  field%dhall Lens from a  to its  field&dhall Lens from a  to its  field'Z]     ^[_\ !"#$%& None"#pdhall>Utility function to cut out the interior of a large text block'dhallException thrown when the --check( flag to a command-line subcommand fails+dhall)Some command-line subcommands can either , their input or -k that the input has already been modified. This type is shared between them to record that choice..dhallPath to output1dhallSpecifies whether or not an input's transitive dependencies should also be processed. Transitive dependencies are restricted to relative file imports.2dhall&Do not process transitive dependencies3dhall/Process transitive dependencies in the same way4dhallIFor utilities that may want to process transitive dependencies, like  dhall freeze`dhallJPath to input or raw input text, necessary since we can't read STDIN twice7dhall Path to input:dhallSet to :< if you want to censor error text that might include secrets=dhallLike p , but for EsNote that this has to be opinionated and render ANSI color codes, but that should be fine because we don't use this in a non-interactive context>dhall/Function to insert an aligned pretty expression?dhallPrefix used for error messagesadhall#Convenience utility for converting V-based exceptions to W-based exceptions@dhall/Convenient utility for retrieving an expressionAdhallEConvenient utility for retrieving an expression along with its headerBdhallConvenient utility for retrieving an expression along with its header from | text already read from STDIN (so it's not re-read)p'()*+-,./0123456798:<;=>?@ABp=>?:<;798456123+-,./0@AB'()*None"#%2SXEdhalloNewtype used to wrap error messages so that they render with a more detailed explanation of what went wrongGdhallGWrap a type error in this exception type to censor source code and  literals from the error messageJdhall-A structured type error that includes contextOdhall Output of 4, containing short- and long-form error messagesQdhall6Default succinct 1-line explanation of what went wrongRdhall1Longer and more detailed explanation of the errorSdhallThe specific type errordhall+Function that converts the value inside an & constructor into a new expressiondhallA type synonym for RThis is provided for backwards compatibility, since Dhall used to use its own  type instead of  Data.Void.. You should use  instead of  nowdhallzType-check an expression and return the expression's type if type-checking succeeds or an error if type-checking fails does not necessarily normalize the type since full normalization is not necessary for just type-checking. If you actually care about the returned type then you may want to 1 it afterwards. The supplied h records the types of the names in scope. If these are ill-typed, the return value may be ill-typed.dhallGeneralization of  that allows type-checking the " constructor with custom logicbdhall' is implemented internally in terms of infer/ in order to speed up equivalence checking.Specifically, we extend the  to become a Ctx0, which can store the entire contents of a `let`q expression (i.e. the type *and* the value of the bound variable). By storing this extra information in the Ctx% we no longer need to substitute `let`3 expressions at all (which is very expensive!).(However, this means that we need to use +90 to perform equivalence checking instead of . since only .g is unable to use the information stored in the extended context for accurate equivalence checking.dhall is the same as  with an empty context, meaning that the expression must be closed (i.e. no free variables), otherwise type-checking will fail.dhall Convert a S to short- and long-form Odhall Traversal that traverses every m in a SdhallcThis function verifies that a custom context is well-formed so that type-checking will not loop Note that  already calls  for you on the  that you supplyXEFGIHJKLMNOPQRSZTUVXWYacb^\[_f`dehionlpgjkqryz|{}stuxvw]m~XJKLMNEFGIHSZTUVXWYacb^\[_f`dehionlpgjkqryz|{}stuxvw]m~OPQRNone_1[ cdhallFor example, for the line: let foo = "foo"# the tag is: > Tag "let " "foo"ddhallIn vtags source code this field is named "pattern" and EMacs used it as a regex pattern to locate line with tag. It's looking for ^ tagpattern#. Looks like vi is not using it.edhallKtext, that editor compare with selected text. So it's really name of entityfdhall3line number, starting from 1, where to find the taggdhall>byte offset from start of file. Not sure if any editor uses ithdhall3line number, starting from 1, where to find the tagidhallcolumn of line where tag isdhall$Generate etags for Dhall expressionsjdhallFind tags in Text (second argument) and generates a list of them To make tags for filenames that works in both emacs and vi, add two initial tags. First for filename for vi and second with  /filename0 for emacs. Other tags are working for both.kdhallqUsed to update tag position and to build tag from term. After getTagsFromExpr line and column in line are in  LineColumn for each tag. And tagPattern is not added. Emacs use tag pattern to check if tag is on line. It compares line from start with tag pattern and in case they are the same, relocate user. fixPosAndDefinition change position to line and byte offset ( LineOffset9) and add tag pattern. For example, for Dhall string:8let dhallSource = "let foo = \"bar\"\nlet baz = \"qux\""Input for this function is:/foundTerms = [(LC 1 4, "foo"), (LC 2 4, "baz")]And:*fixPosAndDefinition dhallSource foundTerms[(LO {loLine = 1, loOffset = 5},Tag {tagPattern = "let foo ", tagName = "foo"}),(LO {loLine = 2, loOffset = 21},Tag {tagPattern = "let baz ", tagName = "baz"})](where 21 is byte offset from file start.ldhall#Generate list of files for a given 7dhall7Where to look for files. This can be a directory name (.! for example), a file name or 8. If 8-, then this will wait for file names from STDIN+. This way someone can combine tools in bash& to send, for example, output from find to the input of  dhall tags.dhall>List of suffixes for dhall files or Nothing to check all filesdhallFlag if  should follow symlinksdhallContent for tags fileldhallIf +, this function will follow symbolic linksdhallList of suffixes. If D, all files will be returned. This parameter only works when the 7 is an 9 and point to a directory.:None"#1mNone "#$%29SX$dhall A call to - failed because there was at least one importdhall.Exception thrown when an integrity check failsndhall *canonicalize . canonicalize = canonicalize Gcanonicalize (a <> b) = canonicalize (canonicalize a <> canonicalize b)odhallNException thrown when a HTTP url is imported but dhall was built without the  with-http Cabal flag.dhall HTTP headersdhallCList of Exceptions we encounter while resolving Import Alternativesdhall8Exception thrown when an environment variable is missingdhall1Exception thrown when an imported file is missingdhall6Extend another exception with the current import stackdhall)Imports resolved so far, in reverse orderdhallThe nested exceptiondhallDhall tries to ensure that all expressions hosted on network endpoints are weakly referentially transparent, meaning roughly that any two clients will compile the exact same result given the same URL.To be precise, a strong interpretaton of referential transparency means that if you compiled a URL you could replace the expression hosted at that URL with the compiled result. Let's call this "static linking". Dhall (very intentionally) does not satisfy this stronger interpretation of referential transparency since "statically linking" an expression (i.e. permanently resolving all imports) means that the expression will no longer update if its dependencies change.`In general, either interpretation of referential transparency is not enforceable in a networked context since one can easily violate referential transparency with a custom DNS, but Dhall can still try to guard against common unintentional violations. To do this, Dhall enforces that a non-local import may not reference a local import.Local imports are defined as:A fileA URL with a host of  localhost or  127.0.0.1-All other imports are defined to be non-localdhallThe offending opaque importdhall7An import failed because of a cycle in the import graphdhallThe offending cyclic importdhallConstruct the file path corresponding to a local import. If the import is _relative_ then the resulting path is also relative.dhallGiven a - import construct the corresponding unhashed M import (interpreting relative path as relative to the current directory).dhall*Adjust the import mode of a chained importdhallBChain imports, also typecheck and normalize headers if applicable.pdhallZLoad an import, resulting in a fully resolved, type-checked and normalised expression.  loadImport handles the "hot" cache in Status and defers to loadImportWithSemanticCache for imports that aren't in the Status cache already.qdhall7Load an import from the 'semantic cache'. Defers to loadImportWithSemisemanticCachet for imports that aren't frozen (and therefore not cached semantically), as well as those that aren't cached yet.dhallwEnsure that the given expression is present in the semantic cache. The given expression should be alpha-beta-normal.dhallGiven a well-typed (of type `List { header : Text, value Text }` or `List { mapKey : Text, mapValue Text }`) headers expressions in normal form construct the corresponding binary http headers; otherwise return the empty list.dhall'Warn if no cache directory is availabledhallDefault starting ,, importing relative to the given directory.dhallSee .dhallGeneralized version of ;You can configure the desired behavior through the initial  that you supplydhall(Resolve all imports within an expressiondhallSee .dhallUResolve all imports within an expression, importing relative to the given directory.dhallSee .dhall Hash a fully resolved expressiondhalliConvenience utility to hash a fully resolved expression and return the base-16 encoded hash with the sha256: prefix{In other words, the output of this function can be pasted into Dhall source code to add an integrity check to an importdhall(Assert than an expression is import-freedhallThis function is used by the  --transitive option of the dhall {freeze,format,lint}@ subcommands to determine which dependencies to descend intodependencyToFile (emptyStatus ".") Import{ importHashed = ImportHashed{ hash = Nothing, importType = Local Here (File (Directory []) "foo") }, importMode = Code } Just "./foo"dependencyToFile (emptyStatus "./foo") Import{ importHashed = ImportHashed{ hash = Nothing, importType = Local Here (File (Directory []) "bar") }, importMode = Code }Just "./foo/bar"dependencyToFile (emptyStatus "./foo") Import{ importHashed = ImportHashed{ hash = Nothing, importType = Remote (URL HTTPS "example.com" (File (Directory []) "") Nothing Nothing) }, importMode = Code }NothingdependencyToFile (emptyStatus ".") Import{ importHashed = ImportHashed{ hash = Nothing, importType = Env "foo" }, importMode = Code }Nothingdhall3canonicalize (Directory {components = ["..",".."]})$Directory {components = ["..",".."]}rdhall=( means to encode without the version tagK      !"#$%&K      "!#$%&None "#9KdhallErrors that can be thrown by dhallArguments to the rewrite-with-schemas subcommanddhallImplementation of the dhall rewrite-with-schemas subcommanddhall5Simplify a Dhall expression using a record of schemasdhallRecord of schemasdhall1Expression to simplify using the supplied schemas  None"#$%dhall5Specifies why we are adding semantic integrity checksdhallsProtect imports with an integrity check without a fallback so that import resolution fails if the import changesdhallProtect imports with an integrity check and also add a fallback import import without an integrity check. This is useful if you only want to cache imports when possible but still gracefully degrade to resolving them if the semantic integrity check has changed.dhall!Specifies which imports to freezedhall&Freeze only remote imports (i.e. URLs)dhall>Freeze all imports (including paths and environment variables)dhall Retrieve an 1 and update the hash to match the latest contentsdhallSee .dhall)Freeze an import only if the import is a  importdhallSee .dhallImplementation of the  dhall freeze subcommand dhallSee . dhall"Slightly more pure version of the  functionThis still requires W[ to freeze the import, but now the input and output expression are passed in explicitly dhallSee  .dhallCurrent working directorydhallCurrent working directory dhallStarting directory      None"# dhallArguments to the  subcommanddhallImplementation of the  dhall format subcommand    None "#%dhallOThis error indicates that you supplied an invalid Dhall expression to the R function. The Dhall expression could not be translated to a directory tree.dhall@Attempt to transform a Dhall record into a directory tree where:'Records are translated into directoriesMap&s are also translated into directoriesText+ values or fields are translated into filesOptional values are omitted if None(For example, the following Dhall record: c{ dir = { `hello.txt` = "Hello\n" } , `goodbye.txt`= Some "Goodbye\n" , `missing.txt` = None Text },... should translate to this directory tree: $ tree result result %%% dir % %%% hello.txt %%% goodbye.txt $ cat result/dir/hello.txt Hello $ cat result/goodbye.txt GoodbyeUse this in conjunction with the Prelude's support for rendering JSON/YAML in "pure Dhall" so that you can generate files containing JSON. For example: slet JSON = https://prelude.dhall-lang.org/v12.0.0/JSON/package.dhall sha256:843783d29e60b558c2de431ce1206ce34bdfde375fcf06de8ec5bf77092fdef7 in { `example.json` = JSON.render (JSON.array [ JSON.number 1.0, JSON.bool True ]) , `example.yaml` = JSON.renderYAML (JSON.object (toMap { foo = JSON.string "Hello", bar = JSON.null })) }... which would generate: a$ cat result/example.json [ 1.0, true ] $ cat result/example.yaml ! "bar": null ! "foo": "Hello"qThis utility does not take care of type-checking and normalizing the provided expression. This will raise a N exception upon encountering an expression that cannot be converted as-is.None"#%,-048=>?@AHMPSUVX`kIdhall allows you to build an & for a Dhall record.8For example, let's take the following Haskell data type::{data Status = Queued Natural | Result Text | Errored Text:}WAnd assume that we have the following Dhall union that we would like to parse as a Status: R< Result : Text | Queued : Natural | Errored : Text >.Result "Finish successfully"Our encoder has type & Status>, but we can't build that out of any smaller encoders, as &1s cannot be combined. However, we can use an  to build an & for Status::{ injectStatus :: Encoder Status%injectStatus = adapt >$< unionEncoder, ( encodeConstructorWith "Queued" inject, >|< encodeConstructorWith "Result" inject, >|< encodeConstructorWith "Errored" inject ) where adapt (Queued n) = Left n& adapt (Result t) = Right (Left t)' adapt (Errored e) = Right (Right e):}"Or, since we are simply using the $/ instance to inject each branch, we could write:{ injectStatus :: Encoder Status%injectStatus = adapt >$< unionEncoder ( encodeConstructor "Queued" >|< encodeConstructor "Result"! >|< encodeConstructor "Errored" ) where adapt (Queued n) = Left n& adapt (Result t) = Right (Left t)' adapt (Errored e) = Right (Right e):}dhallThe > divisible (contravariant) functor allows you to build an & for a Dhall record.8For example, let's take the following Haskell data type::{data Project = Project { projectName :: Text , projectDescription :: Text , projectStars :: Natural }:}XAnd assume that we have the following Dhall record that we would like to parse as a Project: w{ name = "dhall-haskell" , description = "A configuration language guaranteed to terminate" , stars = 289 }Our encoder has type & Project>, but we can't build that out of any smaller encoders, as &$s cannot be combined (they are only ss). However, we can use an  to build an & for Project::{ injectProject :: Encoder ProjectinjectProject = recordEncoder- ( adapt >$< encodeFieldWith "name" inject4 >*< encodeFieldWith "description" inject. >*< encodeFieldWith "stars" inject ) whereK adapt (Project{..}) = (projectName, (projectDescription, projectStars)):}"Or, since we are simply using the $. instance to inject each field, we could write:{ injectProject :: Encoder ProjectinjectProject = recordEncoder" ( adapt >$< encodeField "name") >*< encodeField "description"# >*< encodeField "stars" ) whereK adapt (Project{..}) = (projectName, (projectDescription, projectStars)):}dhallThe  monoid allows you to build a > from a Dhall union8For example, let's take the following Haskell data type::{data Status = Queued Natural | Result Text | Errored Text:}WAnd assume that we have the following Dhall union that we would like to parse as a Status: R< Result : Text | Queued : Natural | Errored : Text >.Result "Finish successfully"Our decoder has type > Status>, but we can't build that out of any smaller decoders, as >$s cannot be combined (they are only ts). However, we can use a  to build a > for Status::{status :: Decoder Statusstatus = union2 ( ( Queued <$> constructor "Queued" natural )5 <> ( Result <$> constructor "Result" strictText )5 <> ( Errored <$> constructor "Errored" strictText ) ):}dhallThe + applicative functor allows you to build a > from a Dhall record.8For example, let's take the following Haskell data type::{data Project = Project { projectName :: Text , projectDescription :: Text , projectStars :: Natural }:}XAnd assume that we have the following Dhall record that we would like to parse as a Project: w{ name = "dhall-haskell" , description = "A configuration language guaranteed to terminate" , stars = 289 }Our decoder has type > Project>, but we can't build that out of any smaller decoders, as >$s cannot be combined (they are only ts). However, we can use a  to build a > for Project::{project :: Decoder Project project = record) ( Project <$> field "name" strictText0 <*> field "description" strictText' <*> field "stars" natural ):}!dhall-This is the underlying class that powers the <H class's support for automatically deriving a generic implementation#dhallA compatibility alias for $ This will eventually be removed.$dhallThis class is used by < instance for functions: 7instance (ToDhall a, FromDhall b) => FromDhall (a -> b)You can convert Dhall functions with "simple" inputs (i.e. instances of this class) into Haskell functions. This works by:QMarshaling the input to the Haskell function into a Dhall expression (i.e. x :: Expr Src Void)"Applying the Dhall function (i.e. f :: Expr Src Void!) to the Dhall input (i.e. App f x)"Normalizing the syntax tree (i.e. normalize (App f x))CMarshaling the resulting Dhall expression back into a Haskell valuePThis class auto-generates a default implementation for types that implement C. This does not auto-generate an instance for recursive types.*The default instance can be tweaked using  and custom 5, or using  ghttps://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#extension-DerivingVia DerivingVia and ; from Dhall.Deriving.&dhallAn  (Encoder a)- represents a way to marshal a value of type 'a' from Haskell into Dhall(dhall,Embeds a Haskell value as a Dhall expression)dhallDhall type of the Haskell value*dhall-This is the underlying class that powers the <Y class's support for automatically deriving a generic implementation for a union type,dhall-This is the underlying class that powers the <H class's support for automatically deriving a generic implementation.dhallPThis type specifies how to model a Haskell constructor with 1 field in Dhall@For example, consider the following Haskell datatype definition: /data Example = Foo { x :: Double } | Bar DoubleJDepending on which option you pick, the corresponding Dhall type could be: 9< Foo : Double | Bar : Double > -- Bare << Foo : { x : Double } | Bar : { _1 : Double } > -- Wrapped :< Foo : { x : Double } | Bar : Double > -- Smart/dhall Never wrap the field in a record0dhall!Always wrap the field in a record1dhall)Only fields in a record if they are named2dhallThis is only used by the <z instance for functions in order to normalize the function input before marshaling the input into a Dhall expression5dhallMUse these options to tweak how Dhall derives a generic implementation of <7dhall\Function used to transform Haskell field names into their corresponding Dhall field names8dhallhFunction used to transform Haskell constructor names into their corresponding Dhall alternative names9dhallKSpecify how to handle constructors with only one field. The default is 1:dhall!This type is exactly the same as u except with a different <_ instance. This intermediate type simplifies the implementation of the inner loop for the < instance for u;dhallA compatibility alias for < This will eventually be removed.<dhallAny value that implements <G can be automatically decoded based on the inferred return type of e-input auto "[1, 2, 3]" :: IO (Vector Natural)[1,2,3]@input auto "toMap { a = False, b = True }" :: IO (Map Text Bool)!fromList [("a",False),("b",True)]PThis class auto-generates a default implementation for types that implement C. This does not auto-generate an instance for recursive types.*The default instance can be tweaked using  and custom 5, or using  ghttps://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#extension-DerivingVia DerivingVia and ; from Dhall.Deriving.>dhallA  (Decoder a)- represents a way to marshal a value of type 'a' from Dhall into HaskellYou can produce >s either explicitly: 6example :: Decoder (Vector Text) example = vector text... or implicitly using : /example :: Decoder (Vector Text) example = autoYou can consume > s using the e function: "input :: Decoder a -> Text -> IO a@dhall0Extracts Haskell value from the Dhall expressionAdhallDhall type of the Haskell valueBdhallDdhallEdhallFdhallEvery >E must obey the contract that if an expression's type matches the A type then the @ function must not fail with a type error. However, decoding may still fail for other reasons (such as the decoder for <s rejecting a Dhall List with duplicate elements).UThis error type is used to indicate an internal error in the implementation of a > where the expected type matched the Dhall expression, but the expression supplied to the extraction function did not match the expected type. If this happens that means that the > itself needs to be fixed.JdhallExtraction of a value can fail for two reasons, either a type mismatch (which should not happen, as expressions are type-checked against the expected type before being passed to extractC), or a term-level error, described with a freeform text value.NdhallZOne or more errors returned from extracting a Dhall expression to a Haskell expressionOdhallGError type used when determining the Dhall type of a Haskell expressionQdhallWOne or more errors returned when determining the Dhall type of a Haskell expressionRdhallUseful synonym for the v1 type used when marshalling Dhall expressionsSdhall"Useful synonym for the equivalent V* type used when marshalling Dhall codeTdhallUseful synonym for the v1 type used when marshalling Dhall expressionsUdhall4A newtype suitable for collecting one or more errorsXdhall2Render a given prefix and some errors to a string.YdhallGenerate a type error during extraction by specifying the expected type and the actual type. The expected type is not yet determined.ZdhallTurn a # message into an extraction failure[dhallSwitches from an  Applicative5 extraction result, able to accumulate errors, to a Monad7 extraction result, able to chain sequential operations\dhallSwitches from a Monad< extraction result, able to chain sequential errors, to an  Applicative- extraction result, able to accumulate errors]dhall5Default input settings: resolves imports relative to .@ (the current working directory), report errors as coming from (input)(, and default evaluation settings from `.^dhall4Access the directory to resolve imports relative to._dhallAccess the name of the source to report locations from; this is only used in error messages, so it's okay if this is a best guess or something symbolic.`dhallkDefault evaluation settings: no extra entries in the initial context, and no special normalizer behaviour.adhallBAccess the starting context used for evaluation and type-checking.bdhall Access the custom substitutions.cdhallAccess the custom normalizer.d$dhall$Access the HTTP manager initializer.edhallIType-check and evaluate a Dhall program, decoding the result into Haskell@The first argument determines the type of value that you decode:input integer "+2"2"input (vector double) "[1.0, 2.0]" [1.0,2.0]Use T to automatically select which type to decode based on the inferred return type:input auto "True" :: IO BoolTrueThis uses the settings from ].fdhallExtend e with a root directory to resolve imports relative to, a file to mention in errors as the source, a custom typing context, and a custom normalization process.gdhallNType-check and evaluate a Dhall program that is read from the file-system.This uses the settings from `.hdhallExtend gE with a custom typing context and a custom normalization process.idhall Similar to e%, but without interpreting the Dhall m into a Haskell type.Uses the settings from ].jdhallExtend i with a root directory to resolve imports relative to, a file to mention in errors as the source, a custom typing context, and a custom normalization process.wdhall.Helper function for the input* function familykdhallUse this function to extract Haskell values directly from Dhall AST. The intended use case is to allow easy extraction of Dhall values for making the function 2 easier to use.For other use cases, use e from Dhall; module. It will give you a much better user experience.ldhall0Use this to provide more detailed error messages {> input auto "True" :: IO Integer *** Exception: Error: Expression doesn't match annotation True : Integer (input):1:1  > detailed (input auto "True") :: IO Integer *** Exception: Error: Expression doesn't match annotation Explanation: You can annotate an expression with its type or kind using the 'p:'q symbol, like this: % %%%%%%%% % x : t % 'px'q is an expression and 'pt'q is the annotated type or kind of 'px'q %%%%%%%%% The type checker verifies that the expression's type or kind matches the provided annotation For example, all of the following are valid annotations that the type checker accepts: % %%%%%%%%%%%%%% % 1 : Natural % 'p1'q is an expression that has type 'pNatural'q, so the type %%%%%%%%%%%%%%% checker accepts the annotation % %%%%%%%%%%%%%%%%%%%%%%%% % Natural/even 2 : Bool % 'pNatural/even 2'q has type 'pBool'q, so the type %%%%%%%%%%%%%%%%%%%%%%%%% checker accepts the annotation % %%%%%%%%%%%%%%%%%%%%% % List : Type ! Type % 'pList'q is an expression that has kind 'pType ! Type'q, %%%%%%%%%%%%%%%%%%%%%% so the type checker accepts the annotation % %%%%%%%%%%%%%%%%%%% % List Text : Type % 'pList Text'q is an expression that has kind 'pType'q, so %%%%%%%%%%%%%%%%%%%% the type checker accepts the annotation However, the following annotations are not valid and the type checker will reject them: % %%%%%%%%%%% % 1 : Text % The type checker rejects this because 'p1'q does not have type %%%%%%%%%%%% 'pText'q % %%%%%%%%%%%%%% % List : Type % 'pList'q does not have kind 'pType'q %%%%%%%%%%%%%%% You or the interpreter annotated this expression: ! True ... with this type or kind: ! Integer ... but the inferred type or kind of the expression is actually: ! Bool Some common reasons why you might get this error: % The Haskell Dhall interpreter implicitly inserts a top-level annotation matching the expected type For example, if you run the following Haskell code: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % >>> input auto "1" :: IO Text % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ... then the interpreter will actually type check the following annotated expression: % %%%%%%%%%%% % 1 : Text % %%%%%%%%%%%% ... and then type-checking will fail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% True : Integer (input):1:1mdhall Decode a xinput bool "True"Truendhall Decode a =>input natural "42"42odhall Decode an yinput integer "+42"42pdhall Decode a z from a Dhall Naturalinput word "42"42qdhall Decode a { from a Dhall Naturalinput word8 "42"42rdhall Decode a | from a Dhall Naturalinput word16 "42"42sdhall Decode a } from a Dhall Naturalinput word32 "42"42tdhall Decode a ~ from a Dhall Naturalinput word64 "42"42udhall Decode an  from a Dhall Integerinput int "-42"-42vdhall Decode an  from a Dhall Integerinput int8 "-42"-42wdhall Decode an  from a Dhall Integerinput int16 "-42"-42xdhall Decode an  from a Dhall Integerinput int32 "-42"-42ydhall Decode an  from a Dhall Integerinput int64 "-42"-42zdhall Decode a  rinput scientific "1e100"1.0e100{dhall Decode a input double "42.0"42.0|dhall Decode lazy input lazyText "\"Test\"""Test"}dhallDecode strict input strictText "\"Test\"""Test"~dhall Decode a input (maybe natural) "Some 1"Just 1dhall Decode a $input (sequence natural) "[1, 2, 3]"fromList [1,2,3]dhall Decode a list input (list natural) "[1, 2, 3]"[1,2,3]dhall Decode a "input (vector natural) "[1, 2, 3]"[1,2,3]dhall/Decode a Dhall function into a Haskell functionHf <- input (function inject bool) "Natural/even" :: IO (Natural -> Bool)f 0Truef 1FalsedhallNDecode a Dhall function into a Haskell function using the specified normalizercf <- input (functionWith defaultInputNormalizer inject bool) "Natural/even" :: IO (Natural -> Bool)f 0Truef 1Falsedhall Decode a  from a 1input (setIgnoringDuplicates natural) "[1, 2, 3]"fromList [1,2,3]Duplicate elements are ignored.1input (setIgnoringDuplicates natural) "[1, 1, 3]"fromList [1,3]dhall Decode a  from a 5input (hashSetIgnoringDuplicates natural) "[1, 2, 3]"fromList [1,2,3]Duplicate elements are ignored.5input (hashSetIgnoringDuplicates natural) "[1, 1, 3]"fromList [1,3]dhall Decode a  from a  with distinct elements/input (setFromDistinctList natural) "[1, 2, 3]"fromList [1,2,3]3An error is thrown if the list contains duplicates. >>> input (setFromDistinctList natural) "[1, 1, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: One duplicate element in the list: 1 >>> input (setFromDistinctList natural) "[1, 1, 3, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: 2 duplicates were found in the list, including 1 dhall Decode a  from a  with distinct elements3input (hashSetFromDistinctList natural) "[1, 2, 3]"fromList [1,2,3]3An error is thrown if the list contains duplicates. >>> input (hashSetFromDistinctList natural) "[1, 1, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: One duplicate element in the list: 1  >>> input (hashSetFromDistinctList natural) "[1, 1, 3, 3]" *** Exception: Error: Failed extraction The expression type-checked successfully but the transformation to the target type failed with the following error: 2 duplicates were found in the list, including 1 dhall Decode a  from a toMap expression or generally a Prelude.Map.TypeAinput (Dhall.map strictText bool) "toMap { a = True, b = False }"!fromList [("a",True),("b",False)]Minput (Dhall.map strictText bool) "[ { mapKey = \"foo\", mapValue = True } ]"fromList [("foo",True)]If there are duplicate mapKey s, later mapValues take precedence:Rlet expr = "[ { mapKey = 1, mapValue = True }, { mapKey = 1, mapValue = False } ]"#input (Dhall.map natural bool) exprfromList [(1,False)]dhall Decode a  from a toMap expression or generally a Prelude.Map.TypeEinput (Dhall.hashMap strictText bool) "toMap { a = True, b = False }"!fromList [("a",True),("b",False)]Qinput (Dhall.hashMap strictText bool) "[ { mapKey = \"foo\", mapValue = True } ]"fromList [("foo",True)]If there are duplicate mapKey s, later mapValues take precedence:Rlet expr = "[ { mapKey = 1, mapValue = True }, { mapKey = 1, mapValue = False } ]"'input (Dhall.hashMap natural bool) exprfromList [(1,False)]dhallDecode a tuple from a Prelude.Map.Entry recordPinput (pairFromMapEntry strictText natural) "{ mapKey = \"foo\", mapValue = 3 }" ("foo",3)dhallDecode () from an empty record.=input unit "{=}" -- GHC doesn't print the result if it is ()dhallDecode  from an empty union.Since <> is uninhabited, e  will always fail.dhall Decode a input string "\"ABC\"""ABC"dhallGiven a pair of >,s, decode a tuple-record into their pairing.3input (pair natural bool) "{ _1 = 42, _2 = False }" (42,False)dhallFUse the default input normalizer for interpreting a configuration file &auto = autoWith defaultInputNormalizerdhall# is the default implementation for  if you derive <&. The difference is that you can use , without having to explicitly provide a <5 instance for a type as long as the type derives dhall is a configurable version of .dhall@Default normalization-related settings (no custom normalization)dhallgDefault interpret options for generics-based instances, which you can tweak or override, like this: cgenericAutoWith (defaultInterpretOptions { fieldModifier = Data.Text.Lazy.dropWhile (== '_') })dhall6Use the default input normalizer for injecting a value *inject = injectWith defaultInputNormalizerdhallYUse the default options for injecting a value, whose structure is determined generically.&This can be used when you want to use $= on types that you don't want to define orphan instances for.dhallTUse custom options for injecting a value, whose structure is determined generically.&This can be used when you want to use $= on types that you don't want to define orphan instances for.dhallRun a  to build a >.dhall!Parse a single field of a record.dhallRun a  to build a >.dhall%Parse a single constructor of a uniondhallInfix dhallISpecify how to encode one field of a record by supplying an explicit & for that fielddhall>Specify how to encode one field of a record using the default $ instance for that typedhall Convert a  into the equivalent &dhall Combines two  values. See  for usage notes.Ideally, this matches ?@; however, this allows  to not need a 2 instance itself (since no instance is possible).dhall Convert a  into the equivalent &dhall>Specify how to encode an alternative by providing an explicit & for that alternativedhall:Specify how to encode an alternative by using the default $ instance for that typedhallKYou can use this instance to marshal recursive types from Dhall to Haskell.(Here is an example use of this instance: {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TemplateHaskell #-} import Data.Fix (Fix(..)) import Data.Text (Text) import Dhall (FromDhall) import GHC.Generics (Generic) import Numeric.Natural (Natural) import qualified Data.Fix as Fix import qualified Data.Functor.Foldable as Foldable import qualified Data.Functor.Foldable.TH as TH import qualified Dhall import qualified NeatInterpolation data Expr = Lit Natural | Add Expr Expr | Mul Expr Expr deriving (Show) TH.makeBaseFunctor ''Expr deriving instance Generic (ExprF a) deriving instance FromDhall a => FromDhall (ExprF a) example :: Text example = [NeatInterpolation.text| \(Expr : Type) -> let ExprF = < LitF : Natural | AddF : { _1 : Expr, _2 : Expr } | MulF : { _1 : Expr, _2 : Expr } > in \(Fix : ExprF -> Expr) -> let Lit = \(x : Natural) -> Fix (ExprF.LitF x) let Add = \(x : Expr) -> \(y : Expr) -> Fix (ExprF.AddF { _1 = x, _2 = y }) let Mul = \(x : Expr) -> \(y : Expr) -> Fix (ExprF.MulF { _1 = x, _2 = y }) in Add (Mul (Lit 3) (Lit 7)) (Add (Lit 1) (Lit 2)) |] convert :: Fix ExprF -> Expr convert = Fix.foldFix Foldable.embed main :: IO () main = do x <- Dhall.input Dhall.auto example :: IO (Fix ExprF) print (convert x :: Expr)dhallsNote that this instance will throw errors in the presence of duplicates in the list. To ignore duplicates, use .dhallsNote that this instance will throw errors in the presence of duplicates in the list. To ignore duplicates, use .dhallEmbed a AB as a Prelude.Map.TypeCprettyExpr $ embed inject (HashMap.fromList [(1 :: Natural, True)])#[ { mapKey = 1, mapValue = True } ]GprettyExpr $ embed inject (HashMap.fromList [] :: HashMap Natural Bool)/[] : List { mapKey : Natural, mapValue : Bool }dhallEmbed a A as a Prelude.Map.TypeDprettyExpr $ embed inject (Data.Map.fromList [(1 :: Natural, True)])#[ { mapKey = 1, mapValue = True } ]MprettyExpr $ embed inject (Data.Map.fromList [] :: Data.Map.Map Natural Bool)/[] : List { mapKey : Natural, mapValue : Bool }dhall+Note that the output list may not be sorted3let x = Data.HashSet.fromList ["hi", "mom" :: Text]prettyExpr $ embed inject x[ "mom", "hi" ]dhall(Note that the output list will be sorted/let x = Data.Set.fromList ["mom", "hi" :: Text]prettyExpr $ embed inject x[ "hi", "mom" ]dhallembed inject (12 :: Word64) NaturalLit 12dhallembed inject (12 :: Word32) NaturalLit 12dhallembed inject (12 :: Word16) NaturalLit 12dhallembed inject (12 :: Word8) NaturalLit 12dhallembed inject (12 :: Word) NaturalLit 12edhallThe decoder for the Dhall valuedhallThe Dhall programdhallThe decoded value in HaskellfdhallThe decoder for the Dhall valuedhallThe Dhall programdhallThe decoded value in HaskellgdhallThe decoder for the Dhall valuedhallThe path to the Dhall program.dhallThe decoded value in Haskell.hdhallThe decoder for the Dhall valuedhallThe path to the Dhall program.dhallThe decoded value in Haskell.idhallThe Dhall programdhallThe fully normalized ASTjdhallThe Dhall programdhallThe fully normalized ASTwdhallThe Dhall programdhallThe fully normalized ASTkdhallThe decoder for the Dhall valuedhallAa closed form Dhall program, which evaluates to the expected typedhallThe decoded value in Haskell !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJMLKNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~efghij^_abcd]E`DBCl>?@A &'()<=;FGHINJMLKTSYZ[\QOPR56789234./01mnopqrstuvwxyz{|}~,-*+$%#!"UVWXk:55CNoneNNone"#456 dhallUsed by ) to specify how to generate Haskell typesdhallOGenerate a Haskell type with more than one constructor from a Dhall union typedhall@Generate a Haskell type with one constructor from any Dhall typeTo generate a constructor with multiple named fields, supply a Dhall record type. This does not support more than one anonymous field.dhall"Name of the generated Haskell typedhall)Dhall code that evaluates to a union typedhallName of the constructordhalllThis fully resolves, type checks, and normalizes the expression, so the resulting AST is self-contained.This can be used to resolve all of an expression s imports at compile time, allowing one to reference Dhall expressions from Haskell without having a runtime dependency on the location of Dhall files.For example, given a file "./Some/Type.dhall" containing 0< This : Natural | Other : ../Other/Type.dhall >:... rather than duplicating the AST manually in a Haskell 7, you can do: Dhall.Type (\case UnionLit "This" _ _ -> ... UnionLit "Other" _ _ -> ...) $(staticDhallExpression "./Some/Type.dhall").This would create the Dhall Expr AST from the "./Some/Type.dhall" file at compile time with all imports resolved, making it easy to keep your Dhall configs and Haskell interpreters in sync.dhallConvert a Dhall type to a Haskell type that does not require any new data declarations beyond the data declarations supplied as the first argumentdhallFConvert a Dhall type to the corresponding Haskell datatype declarationdhall=Convert a Dhall type to the corresponding Haskell constructordhallGenerate a Haskell datatype declaration from a Dhall union type where each union alternative corresponds to a Haskell constructor*For example, this Template Haskell splice: @Dhall.TH.makeHaskellTypeFromUnion "T" "< A : { x : Bool } | B >" ... generates this Haskell code: $data T = A {x :: GHC.Types.Bool} | BThis is a special case of : ZmakeHaskellTypeFromUnion typeName code = makeHaskellTypes [ MultipleConstructors{..} ]dhallOGenerate a Haskell datatype declaration with one constructor from a Dhall typeThis comes in handy if you need to keep Dhall types and Haskell types in sync. You make the Dhall types the source of truth and use Template Haskell to generate the matching Haskell type declarations from the Dhall types.#For example, given this Dhall code: 9-- ./Department.dhall < Sales | Engineering | Marketing > D-- ./Employee.dhall { name : Text, department : ./Department.dhall }!... this Template Haskell splice: h{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} Dhall.TH.makeHaskellTypes [ MultipleConstructors "Department" "./tests/th/Department.dhall" , SingleConstructor "Employee" "MakeEmployee" "./tests/th/Employee.dhall" ] ... generates this Haskell code: Ydata Department = Engineering | Marketing | Sales deriving stock (GHC.Generics.Generic) deriving anyclass (Dhall.FromDhall, Dhall.ToDhall) data Employee = MakeEmployee {department :: Department, name :: Data.Text.Internal.Text} deriving stock (GHC.Generics.Generic) deriving anyclass (Dhall.FromDhall, Dhall.ToDhall)gCarefully note that the conversion makes a best-effort attempt to auto-detect when a Dhall type (like ./Employee.dhall&) refers to another Dhall type (like ./Department.dhallC) and replaces that reference with the corresponding Haskell type.MThis Template Haskell splice requires you to enable the following extensions:  DeriveGeneric DerivingAnyClass DerivingStrategies,By default, the generated types only derive , <, and $*. To add any desired instances (such as //X), you can use the StandaloneDeriving language extension, like this: T{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TemplateHaskell #-} Dhall.TH.makeHaskellTypes [ MultipleConstructors "Department" "./tests/th/Department.dhall" , SingleConstructor "Employee" "MakeEmployee" "./tests/th/Employee.dhall" ] deriving instance Eq Department deriving instance Ord Department deriving instance Show Department deriving instance Eq Employee deriving instance Ord Employee deriving instance Show Employeedhall#All Dhall-derived data declarationseUsed to replace complex types with references to one of these data declarations when the types matchdhall4Dhall expression to convert to a simple Haskell typedhall (constructorName, fieldType)dhall"Name of the generated Haskell typedhall)Dhall code that evaluates to a union type  None -.=>HUVXkdhallType-level version of 1S Wrap the field of a singleton constructor in a record only if the field is nameddhallType-level version of 0> Always wrap the field of a singleton constructor in a recorddhallType-level version of />. Never wrap the field of a singleton constructor in a recorddhallConvert a type of kind SingletonConstructors into a value of type SingletonConstructors!dhallSetSingletonConstructors t replaces the singletonConstructors from options! with the value-level version of t."dhallConvert casing to Train-Cased-Phrase#dhallConvert casing to spinal-cased-phrase$dhallConvert casing to snake_cased_phrase%dhallConvert casing to PascalCasedPhrase&dhallConvert casing to camelCasedPhrase'dhallConvert casing to Title Cased Phrase(dhallDropPrefix prefix, corresponds to the value level function 4 prefix)dhallConvert a type into a  Text -> Text function+dhall Constructor t post-composes the constructorModifier from options$ with the value-level version of t, obtained with  TextFunction,dhallField t post-composes the  fieldModifier from options$ with the value-level version of t, obtained with  TextFunction-dhallComposition for functions on 5 and on Text . We use <<< since .N isn't a valid type operator yet (it will be valid starting from ghc-8.8.1).dhallThe identity for functions on 5 and on Text. Useful for deriving  FromDhall and ToDhall with the default options./dhallConvert a type into a $InterpretOptions -> InterpretOptions function1dhallIntended for use on  deriving via clauses for types with a  instance. The tag% argument is used to construct an 51 value which is used as the first argument to .4dhalldropPrefix prefix text returns the suffix of text if its prefix matches prefix, or the entire text otherwise5dhalladdFieldModifier f options post-composes the  fieldModifier from options with f.6dhall addConstructorModifier f options post-composes the constructorModifier from options with f.7dhall"setSingletonConstructors v options replaces the singletonConstructors from options with v. !"#$%&'()*+,-./01234567123/0,+!)*('&%$#" .-4567-1DSafe)SafeBKdhall The current  of the Haskell implementationLdhallThe current version  for the Haskell implementationKLKLNone"#$%>_OMdhallImplementation of the  dhall repl subcommanddhall7Find the index for the current _active_ dhall save filedhall6Find the name for the current _active_ dhall save filedhall*Find the name for the next dhall save fileMMNone"#$0_ dhallGroups of subcommandsNdhall5This specifies how to resolve transitive dependenciesOdhallGenerate a DOT file for graphvizPdhall6List all transitive dependencies as text, one per lineQdhall1List immediate dependencies as text, one per lineRdhallThe subcommands for the dhall executablezdhallTop-level program optionsdhall for the z typedhall for the z typedhall!Run the command specified by the z typedhallEntry point for the dhall executable7NOPQR\YVaTS[WbZ]cX^_U`dvjhwgspefyqrtinxklmouz{~|}7z{~|}R\YVaTS[WbZ]cX^_U`dvjhwgspefyqrtinxklmouNOPQEFGEH>IJKELMENOPQRSTUVWXYZ[\]]^_`abcdefgWhijklmnoXpqrstuZvwxyz{|}~["#$%&<<[iW~nox'''   22''''''''''''''''''''''''''''''''''''''''''''''''''''''''>'''''''''''''''''''''K'''''''''''''' ' ' ' ' '''''''''''''''''''' '!'!'"'#'$'%'&'''''(')'*'+','-'.'/'0'0'1'1'2'3'3'4'5'6'7'8'9':'7';'<'='>'?'@'A'B'C'D'E'F'G'H'I'J'K'L'M'N'O+P,Q,Q,R,S,T,U,V,W,X,Y,Z,[,\,] ^ W _ ` a b c d e f g h i j k l m n o p q r2s2t2u2v2w2x2y2z2{2|2}2~22233333     8 !"#$4%4%4&4&4'4(4)4*4+4,4-4.4/40414243444545464748494:4;4<4=4>4?4@4A4B C C D E F G H I J K L M N O P Q R S T U V U W X X Y Z [ \ ]^^_`_aabcdeefghijklmnopqrstuvwxyz{|}~-8     8 !"#$%%&'()*+,-./001223456789::;<=>?@AABCDmEDFEGHIJKLLMNOPQRSTUVB@AW8XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~y    /.- ;; !"#$%&'()*+,-./0123456789:;<=>?@7ABCDEFGHKIJKLMNOPQRS>TU8VWXYYZ[\]^_D`EabcdeEfgEahij1 ;PklPm<ENnopqEfropsopotu'vopw'x'yEaz'{'|'}'~''''ot''''***++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++9+U+++X+WopE,Eace  2222222E2r22222222222222222222222 2 2 2 2 2222222222222222222 2!"#$%(&3'3(3)3*3+3,3-3.3/3033123434E56op7E89E:;4<4=4>4<4849 ? @ABCDEFGHIJ:KLMNOjELPEaQRSTUVWXopYZop[E\]E\^E\_E\`EabEacEadEaefghEfijkljmBn?on?pqrsDODtDuDvDwDxDyDzE{?|}~#dhall-1.35.0-F5yW0FOiobMBsrDoe2tc54DhallDhall.TypeCheck Dhall.Context Dhall.Crypto Dhall.Map Dhall.Optics Dhall.Set Dhall.Core Dhall.Util Dhall.Src Dhall.PrettyDhall.Substitution Dhall.Binary Dhall.Diff Dhall.ParserDhall.Parser.TokenDhall.Parser.Expression Dhall.Lint Dhall.Import Dhall.Tags Dhall.Schemas Dhall.Freeze Dhall.FormatDhall.DirectoryTreeDhall.THDhall.Deriving Dhall.Version Dhall.Repl Dhall.MainData.MapMapDhall.Import.Manager Control.Lens rewriteOf transformOf rewriteMOf transformMOfmapMOf Dhall.SyntaxText.Megaparsec SourcePos Dhall.URL Dhall.EvalDhall.NormalizetypeWithCodec.CBOR.TermTerm Control.Monad replicateMDhall.Pretty.InternalDhall.Parser.CombinatorsDhall.Import.TypesNetwork.HTTP.Client HttpExceptionTypeinputconvDhall.Import.HTTPCodecSetPreludeNatural$Data.Functor.Contravariant.DivisiblechosenDataHashMapDhall.Tutorial Paths_dhallbase GHC.GenericsGeneric GHC.Natural text-1.2.3.1Data.Text.InternalTextData.Functor.Contravariant>$< Data.Voidabsurdcontainers-0.6.0.1Data.Sequence.InternalSeq&vector-0.12.1.2-KSb3nsihfSnCDYOh5IjlsC Data.VectorVectorContextemptyinsertmatchlookuptoList$fFunctorContext SHA256DigestunSHA256Digestsha256DigestFromByteString sha256HashtoString$fShowSHA256Digest$fEqSHA256Digest$fGenericSHA256Digest$fOrdSHA256Digest$fNFDataSHA256Digest$fByteArrayAccessSHA256Digest singletonfromListfromListWithKeyfromMapunorderedSingletonunorderedFromListsortisSorted insertWithdeletefilter restrictKeys withoutKeysmapMaybeunconsmembersizeunion unionWith outerJoin intersectionintersectionWith differencefoldMapWithKey mapWithKeytraverseWithKeyunorderedTraverseWithKeyunorderedTraverseWithKey_ toAscListtoMapkeyselemskeysSet $fIsListMap $fShowMap $fMonoidMap$fSemigroupMap$fTraversableMap $fFoldableMap $fFunctorMap$fOrdMap$fEqMap $fDataKeys $fGenericKeys $fLiftKeys $fNFDataKeys $fDataMap $fGenericMap $fLiftMap $fNFDataMaptoSettoSeqfromSetappendnull $fFoldableSet$fOrdSet$fEqSet $fGenericSet $fShowSet $fDataSet $fNFDataSet $fLiftSetExprConstVarsnipSrcsrcStartsrcEndsrcText $fPrettySrc $fLiftSrc $fDataSrc$fEqSrc $fGenericSrc$fOrdSrc $fShowSrc $fNFDataSrcAnn prettyExprImport importHashed importMode ImportHashedhash importType ImportModeCodeRawTextLocation ImportTypeLocalRemoteEnvMissingURLscheme authoritypathqueryheadersSchemeHTTPHTTPS FilePrefixAbsoluteHereParentHomeFile directoryfile Directory componentsMultiLetLamPiAppLetAnnotBoolBoolLitBoolAndBoolOrBoolEQBoolNEBoolIf NaturalLit NaturalFold NaturalBuild NaturalIsZero NaturalEven NaturalOddNaturalToInteger NaturalShowNaturalSubtract NaturalPlus NaturalTimesInteger IntegerLit IntegerClamp IntegerNegate IntegerShowIntegerToDoubleDouble DoubleLit DoubleShowTextLit TextAppendTextShowListListLit ListAppend ListBuildListFold ListLengthListHeadListLast ListIndexed ListReverseOptionalSomeNoneRecord RecordLitUnionCombine CombineTypesPreferRecordCompletionMergeToMapFieldProjectAssert EquivalentWithNote ImportAltEmbedFieldSelectionfieldSelectionSrc0fieldSelectionLabelfieldSelectionSrc1FunctionBindingfunctionBindingSrc0functionBindingVariablefunctionBindingSrc1functionBindingSrc2functionBindingAnnotation RecordFieldrecordFieldSrc0recordFieldValuerecordFieldSrc1recordFieldSrc2PreferAnnotationPreferFromSourcePreferFromWithPreferFromCompletionChunks DhallDoublegetDhallDoubleBinding bindingSrc0variable bindingSrc1 annotation bindingSrc2valueVKindSort makeBindingmakeRecordFieldmakeFunctionBindingmakeFieldSelectionmultiLet wrapInLetssubExpressions bindingExprsrecordFieldExprsfunctionBindingExprs chunkExprs pathCharacterdenoterenote shallowDenotereservedIdentifiersshift desugarWith internalErrortextShowReifiedNormalizergetReifiedNormalizer Normalizer NormalizerMjudgmentallyEqualsubstalphaNormalize normalize normalizeWithnormalizeWithMisNormalizedWith isNormalizedfreeIn Substitutions substituteDecodingFailureCBORIsNotDhallStandardVersion NoVersionV_5_0_0V_4_0_0V_3_0_0V_2_0_0V_1_0_0renderStandardVersionencodeExpressiondecodeExpression$fSerialiseExpr$fSerialiseExpr0$fShowDecodingFailure$fExceptionDecodingFailure$fEnumStandardVersion$fBoundedStandardVersion$fEqDecodingFailure CharacterSetASCIIUnicodeKeywordSyntaxLabelLiteralBuiltinOperatorannToAnsiStyle escapeLabelescapeEnvironmentVariableprettyCharacterSetlayout layoutOptsDiffsamedocdiffNormalizeddiff$fIsStringDiff $fMonoidDiff$fSemigroupDiffParserunParserSourcedException ComponentType URLComponent FileComponentvalidCodepoint whitespacenonemptyWhitespacehexdig doubleLiteraldoubleInfinityintegerLiteralnaturalLiteral identifier hexNumber lineComment blockCommentlabelslabelanyLabelanyLabelOrSomebashEnvironmentVariableposixEnvironmentVariablefile_httpRawtextchar_if_then_else_let_in_as_using_merge_toMap_assert_with_Some_None _NaturalFold _NaturalBuild_NaturalIsZero _NaturalEven _NaturalOdd_NaturalToInteger _NaturalShow_NaturalSubtract _IntegerClamp_IntegerNegate _IntegerShow_IntegerToDouble _DoubleShow _ListBuild _ListFold _ListLength _ListHead _ListLast _ListIndexed _ListReverse_Bool _Optional_Natural_Integer_Double_Text _TextShow_List_True_False_NaN_Type_Kind_Sort _Location_equal_or_plus _textAppend _listAppend_and_times _doubleEqual _notEqual_dot _openBrace _closeBrace _openBracket _closeBracket _openAngle _closeAngle_bar_comma _openParens _closeParens_colon_at _equivalent_missing _importAlt_combine _combineTypes_prefer_lambda_forall_arrow _doubleColonApplicationExprInfoNakedMergeOrSomeOrToMap ImportExprApplicationExprParserscompleteExpression_importExpression_ getOffset setOffsetsrcsrcAndnotedcompleteExpressionimportExpressionparsersenv localOnlylocalhttpmissing importType_ importHash_ importHashed_import_pretty escapeTextcensorExpression censorTextthrowsHeader ParseErrorunwrapexprexprAcensor exprFromText createHeaderexprAndHeaderFromText$fExceptionParseError$fShowParseError $fShowHeaderlintremoveUnusedBindings fixAssert fixParentPathremoveLetInLetuseToMapPrettyHttpExceptionStatus_stack_graph_cache _newManager_manager_remote_substitutions _normalizer_startingContext_semanticCacheModeManagerSemanticCacheModeIgnoreSemanticCacheUseSemanticCacheDependsparentchildImportSemanticsChained chainedImportdefaultNewManagerstackgraphcacheremote substitutions normalizerstartingContext CheckFailedcommandmodified OutputModeWriteCheckOutputStandardOutput OutputFile Transitivity NonTransitive TransitivePossiblyTransitiveInputNonTransitiveStandardInputPossiblyTransitiveInputFileInput StandardInput InputFileCensorNoCensorsnipDoc_ERROR getExpressiongetExpressionAndHeader#getExpressionAndHeaderFromStdinText$fShowCheckFailed$fExceptionCheckFailedDetailedTypeErrorCensoredCensoredDetailed TypeErrorcontextcurrent typeMessage ErrorMessagesshortlong TypeMessageUnboundVariableInvalidInputTypeInvalidOutputType NotAFunction TypeMismatch AnnotMismatchUntypedMissingListTypeMismatchedListElementsInvalidListElementInvalidListTypeListLitInvariant InvalidSomeInvalidPredicateIfBranchMismatchIfBranchMustBeTermInvalidFieldTypeInvalidAlternativeTypeListAppendMismatchMustUpdateARecordMustCombineARecordInvalidDuplicateFieldInvalidRecordCompletionCompletionSchemaMustBeARecordCombineTypesRequiresRecordTypeRecordTypeMismatchDuplicateFieldCannotBeMergedFieldCollisionFieldTypeCollisionMustMergeARecordMustMergeUnionOrOptionalMustMapARecordInvalidToMapRecordKindHeterogenousRecordToMapInvalidToMapTypeMapTypeMismatchMissingToMapType UnusedHandlerMissingHandlerHandlerInputTypeMismatchDisallowedHandlerTypeHandlerOutputTypeMismatchInvalidHandlerOutputTypeMissingMergeTypeHandlerNotAFunction CantAccess CantProjectCantProjectByExpression MissingFieldMissingConstructorProjectionTypeMismatchAssertionFailedNotAnEquivalenceIncomparableExpressionEquivalenceTypeMismatchCantAndCantOrCantEQCantNECantInterpolateCantTextAppendCantListAppendCantAdd CantMultiplyTyperX typeWithAtypeOfprettyTypeMessagemessageExpressions checkContext$fPrettyTypeError$fExceptionTypeError$fShowTypeError$fPrettyDetailedTypeError$fExceptionDetailedTypeError$fShowDetailedTypeError$fPrettyCensored$fExceptionCensored$fShowCensored$fShowTypeMessagegenerate $fMonoidTags$fSemigroupTags$fEqLineColumn$fOrdLineColumn$fShowLineColumn$fEqLineOffset$fOrdLineOffset$fShowLineOffset $fShowTagImportResolutionDisabled HashMismatch expectedHash actualHash HTTPHeaderMissingImportsMissingEnvironmentVariablename MissingFileImported importStacknestedReferentiallyOpaque opaqueImportCycle cyclicImport localToPathchainedFromLocalHerechainedChangeMode chainImportwriteExpressionToSemanticCache toHeaderswarnAboutMissingCaches emptyStatusemptyStatusWithManagerloadWithloadloadWithManagerloadRelativeToloadRelativeToWithManagerhashExpressionhashExpressionToCodeassertNoImportsdependencyToFile $fShowCycle$fExceptionCycle$fShowReferentiallyOpaque$fExceptionReferentiallyOpaque$fShowImported$fExceptionImported$fShowMissingFile$fExceptionMissingFile $fShowMissingEnvironmentVariable%$fExceptionMissingEnvironmentVariable$fShowMissingImports$fExceptionMissingImports$fShowCannotImportHTTPURL$fExceptionCannotImportHTTPURL$fCanonicalizeImport$fCanonicalizeImportHashed$fCanonicalizeImportType$fCanonicalizeFile$fCanonicalizeDirectory$fShowHashMismatch$fExceptionHashMismatch$fShowImportResolutionDisabled#$fExceptionImportResolutionDisabled SchemasErrorNotASchemaRecordSchemas characterSet outputModeschemasschemasCommandrewriteWithSchemas$fShowSchemasError$fExceptionSchemasErrorIntentSecureCacheScopeOnlyRemoteImports AllImports freezeImportfreezeImportWithManagerfreezeRemoteImportfreezeRemoteImportWithManagerfreezefreezeWithManagerfreezeExpressionfreezeExpressionWithManagerFormatformatFilesystemErrorunexpectedExpressiontoDirectoryTree$fExceptionFilesystemError$fShowFilesystemError UnionEncoder RecordEncoder UnionDecoder RecordDecoderGenericToDhallgenericToDhallWithNormalizerInjectToDhall injectWithEncoderembeddeclaredGenericFromDhallUniongenericUnionAutoWithNormalizerGenericFromDhallgenericAutoWithNormalizerSingletonConstructorsBareWrappedSmartInputNormalizergetInputNormalizerInterpretOptions fieldModifierconstructorModifiersingletonConstructorsResult Interpret FromDhallautoWithDecoderextractexpectedHasEvaluateSettingsevaluateSettingsEvaluateSettings InputSettingsInvalidDecoderinvalidDecoderExpectedinvalidDecoderExpression ExtractErrorExpectedTypeError ExtractErrorsRecursiveTypeErrorExpectedTypeErrorsExpectorMonadicExtractor Extractor DhallErrors getErrorsshowDhallErrors typeError extractError toMonadic fromMonadicdefaultInputSettings rootDirectory sourceNamedefaultEvaluateSettings newManagerinputWithSettings inputFileinputFileWithSettings inputExprinputExprWithSettingsrawInputdetailedboolnaturalintegerwordword8word16word32word64intint8int16int32int64 scientificdoublelazyText strictTextmaybesequencelistvectorfunction functionWithsetIgnoringDuplicateshashSetIgnoringDuplicatessetFromDistinctListhashSetFromDistinctListmaphashMappairFromMapEntryunitvoidstringpairauto genericAutogenericAutoWithdefaultInputNormalizerdefaultInterpretOptionsinjectgenericToDhallgenericToDhallWithrecordfield constructor>*<encodeFieldWith encodeField recordEncoder>|< unionEncoderencodeConstructorWithencodeConstructor$fExceptionDhallErrors$fExceptionExpectedTypeError$fShowDhallErrors$fShowInvalidDecoder$fExceptionInvalidDecoder$fExceptionExtractError$fShowExtractError$fShowDhallErrors0%$fHasEvaluateSettingsEvaluateSettings"$fHasEvaluateSettingsInputSettings$fGenericFromDhallTYPEkaM1$fGenericFromDhallTYPEka2:*:$fGenericFromDhallTYPEka1:*:$fGenericFromDhallkkt:*:$fGenericFromDhallkktU1$fGenericFromDhallkktM1$fGenericFromDhallkktV1$fGenericFromDhallkktM10$fGenericFromDhallkktM11$fGenericFromDhallkkt:*:0$fGenericFromDhallkkt:*:1$fGenericFromDhallkkt:*:2$fFromDhallFix$fFromDhallResult$fFromDhall(,)$fFromDhallHashMap$fFromDhallMap$fFromDhallHashSet$fFromDhallSet$fFromDhallVector $fFromDhall[]$fFromDhallSeq$fFromDhallMaybe$fFromDhallText$fFromDhallText0$fFromDhall[]0$fFromDhallDouble$fFromDhallScientific$fFromDhallInt64$fFromDhallInt32$fFromDhallInt16$fFromDhallInt8$fFromDhallInt$fFromDhallInteger$fFromDhallWord64$fFromDhallWord32$fFromDhallWord16$fFromDhallWord8$fFromDhallWord$fFromDhallNatural$fFromDhallBool $fFromDhall()$fFromDhallVoid$fContravariantEncoder$fGenericToDhallkU1$fGenericToDhallk:*:$fGenericToDhallk:+:$fGenericToDhallk:+:0$fGenericToDhallk:+:1$fGenericToDhallk:+:2$fGenericToDhallkM1$fGenericToDhallkM10$fGenericToDhallk:*:0$fGenericToDhallk:*:1$fGenericToDhallk:*:2$fGenericToDhallkM11$fToDhallHashMap $fToDhallMap $fToDhall(,)$fToDhallHashSet $fToDhallSet$fToDhallVector $fToDhall[] $fToDhallSeq$fToDhallMaybe $fToDhall()$fToDhallScientific$fToDhallDouble$fToDhallWord64$fToDhallWord32$fToDhallWord16$fToDhallWord8 $fToDhallWord $fToDhallInt$fToDhallInteger$fToDhallNatural $fToDhall[]0 $fToDhallText$fToDhallText0 $fToDhallBool $fToDhallVoid $fFromDhall->$fMonoidUnionDecoder$fSemigroupUnionDecoder$fGenericFromDhallkkt:+:$fGenericFromDhallUnionkktM1$fGenericFromDhallUnionkkt:+:$fDivisibleRecordEncoder$fContravariantRecordEncoder$fEqDhallErrors$fFunctorDhallErrors$fSemigroupDhallErrors$fEqExpectedTypeError$fShowExpectedTypeError$fFunctorDecoder$fFunctorRecordDecoder$fApplicativeRecordDecoder$fFunctorUnionDecoder$fContravariantUnionEncoder HaskellTypeMultipleConstructorsSingleConstructortypeNamecodeconstructorNamestaticDhallExpressionmakeHaskellTypeFromUnionmakeHaskellTypes$fFunctorHaskellType$fFoldableHaskellType$fTraversableHaskellTypeToSingletonConstructorsasSingletonConstructorsSetSingletonConstructors TrainCase SpinalCase SnakeCase PascalCase CamelCase TitleCase DropPrefix TextFunction textFunction Constructor<<<AsIs ModifyOptions modifyOptionsunCodec dropPrefixaddFieldModifieraddConstructorModifiersetSingletonConstructors$fToDhallCodec$fFromDhallCodec$fModifyOptionsTYPE()$fModifyOptionsTYPE<<<$fModifyOptionsTYPEConstructor$fModifyOptionsTYPEField$fTextFunctionTYPE<<<$fTextFunctionTYPE()$fTextFunctionTYPEDropPrefix$fTextFunctionTYPETitleCase$fTextFunctionTYPECamelCase$fTextFunctionTYPEPascalCase$fTextFunctionTYPESnakeCase$fTextFunctionTYPESpinalCase$fTextFunctionTYPETrainCase+$fModifyOptionsTYPESetSingletonConstructors$fToSingletonConstructorsBare $fToSingletonConstructorsWrapped$fToSingletonConstructorsSmart dhallVersiondhallVersionStringrepl ResolveModeDotListTransitiveDependenciesListImmediateDependenciesModeDefaultVersionResolve NormalizeReplFreezeHashLintTagsEncodeDecode DirectoryTree SyntaxTreeoutputannotatealphasemanticCacheModeversion resolveModequietpossiblyTransitiveInputall_expr1expr2suffixesfollowSymlinksjsonOptionsmodeexplainplainascii parseOptionsparserInfoOptionsmainGHC.Basefmapbytestring-0.10.8.2Data.ByteString.Internal ByteString GHC.MaybeNothingString*http-client-0.7.2.1-CGHOG2GvWNiCFyP5jTtrrlNetwork.HTTP.Client.TypesData.Map.InternalnubOrdData.Set.InternalVoidghc-prim GHC.TypesIntJustTrue GHC.ClassesEqunsafeSubExpressionsCharreservedKeywordssplitOnNonEmpty linesLiteralunlinesLiteral emptyLine leadingSpaceslongestSharedWhitespacePrefix dropLiteraltoDoubleQuoted$fOrdDhallDoubleOrd$fEqDhallDouble $fPrettyExpr $fOrdExpr$fEqExprrenderComponent renderQuery renderURLHLamInfoevalVHLamValquotePrimTypedNaturalSubtractZeronf $fShowValNamesBind EmptyNamesVPiVHPiVConstVVarVPrimVarVAppVLamVBoolVBoolLitVBoolAndVBoolOrVBoolEQVBoolNEVBoolIfVNatural VNaturalLit VNaturalFold VNaturalBuildVNaturalIsZero VNaturalEven VNaturalOddVNaturalToInteger VNaturalShowVNaturalSubtract VNaturalPlus VNaturalTimesVInteger VIntegerLit VIntegerClampVIntegerNegate VIntegerShowVIntegerToDoubleVDouble VDoubleLit VDoubleShowVTextVTextLit VTextAppend VTextShowVListVListLit VListAppend VListBuild VListFold VListLength VListHead VListLast VListIndexed VListReverse VOptionalVSomeVNoneVRecord VRecordLitVUnionVCombine VCombineTypesVPreferVMergeVToMapVFieldVInjectVProjectVAssert VEquivalentVEmbedClosure EnvironmentEmptyExtendSkiptoVHPi~>envNames countNamesFalseGHC.Errerror boundedTypeMonadData.ByteString.Lazy.InternalunApplyreplicateDecoder duplicateencloseenclose' renderSrc renderCommentrenderSrcMaybecontainsComment Data.MaybeisJustanglesbracesarrowsforallmultilineChunksescapeSharedWhitespacePrefixescapeControlCharacterssplitOnPredicateescapeTrailingSingleQuotepretty_escapeSingleQuotedText escapeText_prettyImportExpressionprettyEnvironmentVariable prettyConst prettyVar prettySrcExprkeywordliteralbuiltinoperatorcommalbracketrbracketlangleranglelbracerbracelparenrparenpipecolonequalsdotlambdararrow prettyLabelprettyAnyLabel prettyLabels prettyNumber prettyInt prettyNatural prettyDoubleprettyToStringdocToStrictTextprettyToStrictText)prettyprinter-1.7.0-3a58dVee6cSUUePu4NnX6Prettyprinter.InternalDoc'megaparsec-9.0.0-CRKRRSoqPia7uOlYeDVII9ParseclaxSrcEqcountrangeoptionstarplussatisfy takeWhile takeWhile1 noDuplicates toMapWith pathComponent&parsers-0.12.10-FVkQfOaczEoEQYf7cFmN5EText.Parser.Char Data.EitherEitherIOGHC.ShowShow Data.DynamicDynamic InternalErrorimportSemanticsemptyStatusWithInputOrTextFromStdininferTag tagPatterntagNameloLineloOffset_lcLine _lcColumnfileTagsfixPosAndDefinition inputToFilesfetchFromHttpUrl CanonicalizeCannotImportHTTPURL loadImportloadImportWithSemanticCache ContravariantFunctor%data-fix-0.3.0-FaaNgXifXnhHfaye3afnG4Data.FixFix$either-5.0.1.1-YxzX0jsTU8DPd0MCZDRGqData.Either.Validation Validation inputHelper integer-gmpGHC.Integer.TypeWordGHC.WordWord8Word16Word32Word64GHC.IntInt8Int16Int32Int64)scientific-0.3.6.2-HDoLkL8YC3O28Jlh4HmWvSData.Scientific ScientificMaybe4unordered-containers-0.2.12.0-7BikmbtnebBBqNM33KNnUdData.HashSet.InternalHashSetData.HashMap.Internal*contravariant-1.5.2-1ZQM8SswnWXJmdlHRX0Vigdivided DivisibletoNestedHaskellType toDeclaration toConstructor getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName Data.VersioncurrentSaveFileIndexcurrentSaveFile nextSaveFileGroup4optparse-applicative-0.16.0.0-E5Dxh7kuNAQF6FmeVf71ufOptions.Applicative.Types ParserInfo