我正在尝试使用Aeson来处理haskell中的json,在文档中它显示了toEncoding的语法:
toEncoding (Person name age) = pairs ("name" .= name <> "age" .= age)
但是,当我尝试编译时,我收到错误:
Not in scope: ‘<>’
Perhaps you meant one of these:
‘<*>’ (imported from Control.Applicative),
‘>>’ (imported from Control.Monad),
‘<$>’ (imported from Control.Applicative)
我做错了什么?我是否需要以某种方式导入(&lt;&gt;)?