~singpolyma/dhall-ruby

dbdc4b6d916082dfbd2b157fa8369284f924513b — Stephen Paul Weber 3 years ago ca1df3d
Add experimental json/yaml to dhall scripts
2 files changed, 16 insertions(+), 0 deletions(-)

A bin/json-to-dhall
A bin/yaml-to-dhall
A bin/json-to-dhall => bin/json-to-dhall +8 -0
@@ 0,0 1,8 @@
#!/usr/bin/ruby
# frozen_string_literal: true

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

STDOUT.write(CBOR.encode(JSON.parse(STDIN.read).as_dhall))

A bin/yaml-to-dhall => bin/yaml-to-dhall +8 -0
@@ 0,0 1,8 @@
#!/usr/bin/ruby
# frozen_string_literal: true

require "dhall"
require "yaml"
using Dhall::AsDhall

STDOUT.write(CBOR.encode(YAML.safe_load(STDIN.read).as_dhall))