Synthetica9 / nix-linter

Linter for the Nix expression language
BSD 3-Clause "New" or "Revised" License
158 stars 16 forks source link

Support aeson 2.0 #65

Open sternenseemann opened 2 years ago

sternenseemann commented 2 years ago
[5 of 8] Compiling Nix.Linter.Types ( src/Nix/Linter/Types.hs, dist/build/Nix/Linter/Types.o, dist/build/Nix/Linter/Types.dyn_o )

src/Nix/Linter/Types.hs:55:28: error:
    • Couldn't match type ‘Text’ with ‘Key’
      Expected: Note -> aeson-2.0.3.0:Data.Aeson.Types.Internal.Pair
        Actual: Note -> (Text, Value)
    • In the first argument of ‘(<$>)’, namely ‘toJSON <$$> convert’
      In the second argument of ‘($)’, namely
        ‘toJSON <$$> convert <$> xs’
      In the expression: object $ toJSON <$$> convert <$> xs
   |
55 |   toJSONList xs = object $ toJSON <$$> convert <$> xs where
   |                            ^^^^^^^^^^^^^^^^^^^