I am trying to use Aeson to deal with json in haskell, in the documentation it shows the syntax for toEncoding as this:
toEncoding (Person name age) = pairs ("name" .= name <> "age" .= age)
however, when I try to compile this I get the error:
Not in scope: ‘<>’
Perhaps you meant one of these:
‘<*>’ (imported from Control.Applicative),
‘>>’ (imported from Control.Monad),
‘<$>’ (imported from Control.Applicative)
What am I doing wrong? Do I need to import (<>) somehow?