atspkg
atspkg copied to clipboard
hGetContents fails
I thought I'd try to build polyglot to get a sense of how to use atspkg. There seem to be some character encoding issues. I tried specifying LC_ALL directly but this did not seem to help:
$ LC_ALL=en_US.UTF-8 atspkg build
atspkg:
/home/brandon/workspace/polyglot/atspkg.dhall
/home/brandon/workspace/polyglot/atspkg.dhall: hGetContents: invalid argument (invalid byte sequence)
I suspect this may be upstream - what happens when you run
cat atspkg.dhall | dhall
?
You can install dhall from here or via cabal new-install dhall.
Even if it's upstream, I can work around it, but such a thing would be good to know.
It seems that the dhall command on my system may be handling the encoding ok, but there is an error. Attached output as you suggested, and also with dhall --explain.
atspkg_dhall_err.txt
atspkg_dhall_err_detailed.txt
@bbarker I think the errors you posted suggest that the dhall version you used could not handle the new union literal syntax.