Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [12 of 12] Compiling Server.Servant ( server/Server/Servant.hs, interpreted )
- server/Server/Servant.hs:76:14: error:
- • Overlapping instances for HasServer
- (Servant.Auth.Server.Internal.AddSetCookie.AddSetCookieApi
- (Servant.Auth.Server.Internal.AddSetCookie.AddSetCookieApi
- (NamedRoutes InfoAPI)))
- '[JWTSettings]
- arising from a use of ‘genericServeTWithContext’
- Matching instances:
- instance [overlappable] forall k (api :: k) (context :: [*]).
- (TypeError ...) =>
- HasServer api context
- -- Defined in ‘Servant.Server.Internal’
- ...plus 33 instances involving out-of-scope types
- (use -fprint-potential-instances to see them all)
- (The choice depends on the instantiation of ‘’
- To pick the first instance above, use IncoherentInstances
- when compiling the other instance declarations)
- • In the second argument of ‘($)’, namely
- ‘genericServeTWithContext trn srv ctx’
- In a stmt of a 'do' block:
- run 8088 $ genericServeTWithContext trn srv ctx
- In the second argument of ‘($)’, namely
- ‘do let trn = flip runReaderT Env
- srv = srvr
- ....
- run 8088 $ genericServeTWithContext trn srv ctx’
- |
- 76 | run 8088 $ genericServeTWithContext trn srv ctx
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Failed, 11 modules loaded.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement