Skip to main content

Aeson 2 (Part 2)

The yaml compatibility with aeson-2.0 issue broke a lot of important packages, so it was resolved quickly! Version 0.11.7.0 is compatible with Aeson 2.

I tested the new release with bm. It compiles without issue, and all tests pass. Since this software parses YAML configuration files that the user creates, it is not susceptible to denial-of-service attacks. I set the ordered-keymap flag to false so that the HashMap data structure is used.

The following is the my test Stack configuration:

resolver: lts-18.13

packages:
  - .

extra-deps:
  - aeson-2.0.1.0
  - hashable-1.3.4.1
  - semialign-1.2
  - time-compat-1.9.6.1
  - yaml-0.11.7.0

flags:
  aeson:
    ordered-keymap: false

The following is my test Cabal configuration:

packages:
    ./

constraints:
    aeson -ordered-keymap