Data.Aeson import Key

Solution 1:

It looks like you're writing code targeting aeson 2.x, but that you have aeson 1.x installed. Either upgrade (recommended), or use Text in place of Key there.