Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote-tracking branch 'origin/master' into fintan/typecheck-combine-types | FintanH | 2019-08-03 | 1 | -8/+74 |
|\ | |||||
| * | Merge remote-tracking branch 'origin/master' into fintan/typecheck-combine | FintanH | 2019-08-03 | 1 | -5/+47 |
| |\ | |||||
| * | | Mark RecursiveRecordMerge as unreachable | FintanH | 2019-08-01 | 1 | -0/+1 |
| | | | |||||
| * | | Add the typechecking of RecursiveRecordMerge. | FintanH | 2019-08-01 | 1 | -8/+73 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | | Simplify Const checking logic | FintanH | 2019-08-03 | 1 | -11/+7 |
| | | | |||||
* | | | Merge remote-tracking branch 'origin/master' into fintan/typecheck-combine-types | FintanH | 2019-08-03 | 1 | -5/+47 |
|\ \ \ | | |/ | |/| | |||||
| * | | Add unreachable call for RightBasedRecordMerge case | FintanH | 2019-07-31 | 1 | -0/+1 |
| | | | |||||
| * | | Reuse the merge_maps function to implement the right-biased union | FintanH | 2019-07-31 | 1 | -6/+6 |
| | | | |||||
| * | | Add case for RightBasedRecordMerge in the typechecking phase. | Fintan Halpenny | 2019-07-31 | 1 | -5/+46 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* / | Add typechecking for RecursiveRecordTypeMerge. | FintanH | 2019-08-01 | 1 | -7/+85 |
|/ | | | | | | | | | | 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. | ||||
* | clippy | Nadrieril | 2019-05-12 | 1 | -23/+10 |
| | |||||
* | Include success or failure prefix in test filtering | Nadrieril | 2019-05-12 | 1 | -4/+4 |
| | |||||
* | Implement binary encoding | Nadrieril | 2019-05-12 | 1 | -1/+1 |
| | | | | Closes #39 | ||||
* | Merge Type and Typed | Nadrieril | 2019-05-09 | 1 | -49/+40 |
| | |||||
* | Make visibilities more consistent | Nadrieril | 2019-05-09 | 1 | -9/+6 |
| | |||||
* | Rewrite the StaticType trait and everything around it | Nadrieril | 2019-05-09 | 1 | -1/+1 |
| | |||||
* | Reduce the distance between Type and Typed | Nadrieril | 2019-05-09 | 1 | -87/+78 |
| | |||||
* | Remove TypeIntermediate in favor of special-purpose functions | Nadrieril | 2019-05-09 | 1 | -214/+183 |
| | |||||
* | Small utility SubExpr::from_builtin | Nadrieril | 2019-05-09 | 1 | -9/+3 |
| | |||||
* | ExprF need not be generic in Label | Nadrieril | 2019-05-09 | 1 | -2/+1 |
| | |||||
* | Make shift fallible and improve shift ergonomics | Nadrieril | 2019-05-09 | 1 | -2/+11 |
| | |||||
* | Detect duplicate record fields in typecheck | Nadrieril | 2019-05-09 | 1 | -30/+33 |
| | |||||
* | Update dhall-lang submodule | Nadrieril | 2019-05-09 | 1 | -2/+14 |
| | |||||
* | Typecheck record projection | Nadrieril | 2019-05-08 | 1 | -7/+30 |
| | |||||
* | Typecheck merge | Nadrieril | 2019-05-08 | 1 | -12/+87 |
| | |||||
* | Don't discard normalization work done by typechecking | Nadrieril | 2019-05-07 | 1 | -52/+93 |
| | |||||
* | Slight improvement to typecheck ergonomics | Nadrieril | 2019-05-07 | 1 | -59/+28 |
| | |||||
* | Unify typecheck and normalization contexts | Nadrieril | 2019-05-07 | 1 | -2/+2 |
| | |||||
* | Promote shift and subst_shift to traits | Nadrieril | 2019-05-07 | 1 | -0/+1 |
| | |||||
* | Clean up some of the SubExpr type-changing methods | Nadrieril | 2019-05-07 | 1 | -3/+3 |
| | |||||
* | Unify Type, TypeInternal and Typed | Nadrieril | 2019-05-07 | 1 | -21/+7 |
| | |||||
* | Move main datatypes into their own modules | Nadrieril | 2019-05-06 | 1 | -208/+137 |
| | |||||
* | Consolidate errors in the error module | Nadrieril | 2019-05-06 | 1 | -103/+11 |
| | |||||
* | Reorganize dhall into a phase structure | Nadrieril | 2019-05-06 | 1 | -0/+1276 |