haskell / lsp

Haskell library for the Microsoft Language Server Protocol
360 stars 89 forks source link

lsp-types fails to build, needs package bounds revision #500

Closed vmchale closed 1 year ago

vmchale commented 1 year ago

Error:

src/Language/LSP/Protocol/Types/Common.hs:171:11: error: [GHC-83865]
    • Expecting one more argument to ‘KeyValue kv’
      Expected a constraint, but ‘KeyValue kv’ has kind ‘* -> Constraint’
    • In the type signature:
        (.=?) :: (KeyValue kv, ToJSON v) => String -> Maybe v -> [kv]
    |
171 | (.=?) :: (J.KeyValue kv, J.ToJSON v) => String -> Maybe v -> [kv]
    |           ^^^^^^^^^^^^^

It builds fine with cabal build --constraint='aeson<2.2.0.0'

michaelpj commented 1 year ago

I've revised version 2.0.0.0 and 2.0.0.1