~singpolyma/dhall-ruby

ref: 2b29af325093994cc48a6b3f6b63b04dfb5254f4 dhall-ruby/bin/json-to-dhall -rwxr-xr-x 156 bytes
2b29af32Stephen Paul Weber List stores full type, allows for unusual annotation 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)