~singpolyma/dhall-ruby

ref: 6033bb7a8b2269779f043740f3c01a425bccaa0b dhall-ruby/lib/dhall d---------
Refactor some of typecheck

Get closer to fitting the metrics
Run tests per docs
Clean up style violations
Implement integrity checks
Always encode OptionalNone in new style
Flatten/unfill applications and builtins when encoding
Remove multi-argument applications

They only exist in binary encoding, so let's keep them there.
Working typechecker
Type inference/checking about half done

Passing unit tests for features implemented so far
Support headers for HTTP import
Binary encoding

Every AST node uses as_json to express the generic structure for
encoding itself.  Expression aliases as_cbor to as_json by default and
then uses as_cbor in to_cbor (aliased as to_binary).

This design is because we need to override the encoding of Double for
CBOR, but want to keep the normal Float value for as_json in case that
is used directly (to avoid surprising the user).
If trying to import from IPFS, fallback to gateway
First pass at import resolution
Try on generic visitor
Generic subexpression_map

Make every Expression a ValueSemantics and use the known list of
attributes to map generically over any AST node.

Introduces a conditional, but removes boilerplate from every single
class.
Alpha normalization

Internal flag to disable for acceptance tests from the standard (which
assume beta-only normalization in some cases).  Otherwise, just always
alpha normalize as we go.
Update to fixed tests
Update to latest binary format
Fix binary tests
Next