summaryrefslogtreecommitdiff
path: root/dhall/src/error (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-08-19s/to_valuef/to_whnf/ and avoid cloning ValueFs when possibleNadrieril1-10/+10
2019-08-13Implement inline headers parsingNadrieril1-4/+4
2019-08-13Add new error type for serde_dhallNadrieril1-12/+0
2019-08-13Move api into its own crateNadrieril1-0/+10
2019-08-08Add support for dependent typesNadrieril1-2/+4
2019-08-06Add some new tests and implement import alternativesNadrieril1-1/+1
2019-08-01Add typechecking for RecursiveRecordTypeMerge.FintanH1-0/+3
The implementation brings with it intersection_with_key over HashMaps to help with the type checking of records of records. The implementation first checks that the Const values line up with the LHS and RHS. Then checks that combining the records does not result in a FieldCollision. It will finally return the shared Const type of the arguments.
2019-08-01Add the typechecking of RecursiveRecordMerge.FintanH1-0/+3
This introduces an external function for HashMaps to perform an outer join so that you can do a unionWith but with more power by having a new tagert type. Using outer_join and recursively looking through records of records we have an implementation for combining records.
2019-07-31Add case for RightBasedRecordMerge in the typechecking phase.Fintan Halpenny1-0/+2
The implementation checks the types and kinds of the LHS and RHS. In the happy path it unions the HashMap prefering keys on the RHS over the LHS, and the result is the type of the resulting HashMap. The error cases are: - If the kinds of the records differ it results in a RecordMismatch error. - If either the LHS or RHS are not records it results in a MustCombineRecord error.
2019-05-12Implement binary encodingNadrieril1-0/+12
Closes #39
2019-05-09Make shift fallible and improve shift ergonomicsNadrieril1-0/+1
2019-05-09Detect duplicate record fields in typecheckNadrieril1-0/+2
2019-05-08Typecheck record projectionNadrieril1-0/+2
2019-05-08Typecheck mergeNadrieril1-0/+7
2019-05-07Unify typecheck and normalization contextsNadrieril1-6/+0
2019-05-06Move main datatypes into their own modulesNadrieril1-1/+1
2019-05-06Consolidate errors in the error moduleNadrieril35-0/+1934