NCrashed / servant-auth-token

Servant based API and server for token based authorisation
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

Error compiling the library with ghc 8.6.3 #17

Open wpoosanguansit opened 5 years ago

wpoosanguansit commented 5 years ago

Hi,

I have got this error:

/run/user/1000/stack-491e522e8f2f91c0/servant-auth-token-0.5.6.0/src/Servant/Server/Auth/Token/Combinator.hs:39:10: error:
    * Illegal nested constraint `PermsList (PlainPerms perms)'
      (Use UndecidableInstances to permit this)
    * In the instance declaration for
        `HasServer (AuthPerm perms :> api) context'
   |
39 | instance ( HasServer api context
   |          ^^^^^^^^^^^^^^^^^^^^^^^...

on ghc 8.6.3 - NixOS 18.09. Thanks for your help.

hughjfchen commented 5 years ago

fix this with PR #18