atspkg icon indicating copy to clipboard operation
atspkg copied to clipboard

hGetContents fails

Open bbarker opened this issue 6 years ago • 3 comments

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)

bbarker avatar Mar 23 '19 10:03 bbarker

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.

vmchale avatar Mar 23 '19 20:03 vmchale

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 avatar Mar 24 '19 02:03 bbarker

@bbarker I think the errors you posted suggest that the dhall version you used could not handle the new union literal syntax.

sjakobi avatar Sep 15 '19 00:09 sjakobi