Dhall-haskell: Marshalling HashMap

Created on 5 Oct 2019  Â·  13Comments  Â·  Source: dhall-lang/dhall-haskell

In analogy to #1391 and #1392, we could also have support for Interpreting and Injecting HashMaps from unordered-containers.

Not sure whether we should also add a newtype RecordHashMap for Injecting to Record.

Hacktoberfest enhancement marshalling

All 13 comments

Not sure whether we should also add a newtype RecordHashMap for Injecting to Record.

As pointed out in https://github.com/dhall-lang/dhall-haskell/issues/1392#issuecomment-540872043, Inject wouldn't currently allow this.

I would love to work on this.

@tenniscp25: Yeah, feel free to go for it! 🙂

Please check #1412, especially the tests, it should be very simple to add one for HashMaps

Thanks @jiegillet. Your tests help a lot.

Btw, do I need to run tests with nix? I tried running stack test from master and got a few errors.

You don't need nix. Make sure that you have the latest version of stack first.

I'm using stack 2.1.3, which to my understanding is the latest version. 🤔

@tenniscp25 What kind of errors are you seeing?

Indeed. What errors do you get?

Sorry. It was my fault. I forgot to update the git submodule.. 😞

Are these doctest errors expected?

The doctests in dhall are supposed to work – at least with stack. I believe we have some in dhall-lsp-server that are broken. @quasicomputational might be able to help with your errors.

For now I suggest you just use stack test dhall:tasty.

Fixed by #1426

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DrSensor picture DrSensor  Â·  4Comments

Profpatsch picture Profpatsch  Â·  4Comments

SiriusStarr picture SiriusStarr  Â·  5Comments

Gabriel439 picture Gabriel439  Â·  6Comments

jwoudenberg picture jwoudenberg  Â·  6Comments