Not sure if this is an upstream dhall-rust issue, but according to the dhall documentation, the dhall language supports home-anchored imports as shown in the following example. The Python version however seems to support only the relative and absolute imports, but not the home-anchored import.
❯ dhall <<< '~/test.dhall'
"hello"
❯ python
>>> import dhall
>>> dhall.loads('./test.dhall')
'hello'
>>> dhall.loads('~/test.dhall')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Error(Dhall(Error { kind: Typecheck(TypeError { message: Custom("error: error\n --> <current file>:1:1\n |\n1 | ~/test.dhall\n | ^^^^^^^^^^^^ No such file or directory (os error 2)\n |") }) }))
Not sure if this is an upstream dhall-rust issue, but according to the dhall documentation, the dhall language supports home-anchored imports as shown in the following example. The Python version however seems to support only the relative and absolute imports, but not the home-anchored import.