~singpolyma/dhall-ruby

ref: bd80dfe9ecd83be8aa937d45a09c3b2d0860c271 dhall-ruby/bin/json-to-dhall -rwxr-xr-x 156 bytes
bd80dfe9Stephen Paul Weber Self-describe CBOR for Expression#to_binary 3 years ago
                                                                                
1
2
3
4
5
6
7
8
#!/usr/bin/ruby
# frozen_string_literal: true

require "dhall"
require "json"
using Dhall::AsDhall

STDOUT.write(JSON.parse(STDIN.read).as_dhall.to_binary)