NorfairKing / autodocodec

self(auto)- documenting encoders and decoders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to build with aeson 2

larskuhtz opened this issue · comments

src/Autodocodec/Aeson/Encode.hs:52:33: error:
    • Couldn't match expected type ‘JSON.Key’ with actual type ‘Text’
    • In the first argument of ‘(JSON..=)’, namely ‘k’
      In the expression: k JSON..= go a c
      In a case alternative: RequiredKeyCodec k c _ -> k JSON..= go a c
   |
52 |       RequiredKeyCodec k c _ -> k JSON..= go a c
   |                                 ^

Jup this doesn't surprise me. I don't use aeson 2 yet so I'll fix this when I get to it.