cdepillabout / servant-checked-exceptions

type-level errors for Servant APIs.
https://hackage.haskell.org/package/servant-checked-exceptions
BSD 3-Clause "New" or "Revised" License
73 stars 14 forks source link

Build failure with latest servant libraries #15

Closed snoyberg closed 6 years ago

snoyberg commented 6 years ago
[ 7 of 12] Compiling Servant.Checked.Exceptions.Internal.Servant.Server ( src/Servant/Checked/Exceptions/Internal/Servant/Server
.hs, dist/build/Servant/Checked/Exceptions/Internal/Servant/Server.o )

src/Servant/Checked/Exceptions/Internal/Servant/Server.hs:42:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘hoistServerWithContext’
    • In the instance declaration for
        ‘HasServer (Throws e :> api) context’
   |
42 | instance (HasServer (Throwing '[e] :> api) context) =>
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/Servant/Checked/Exceptions/Internal/Servant/Server.hs:57:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘hoistServerWithContext’
    • In the instance declaration for
        ‘HasServer (Throwing es :> Verb method status ctypes a) context’
   |
57 | instance (HasServer (Verb method status ctypes (Envelope es a)) context) =>
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/Servant/Checked/Exceptions/Internal/Servant/Server.hs:72:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘hoistServerWithContext’
    • In the instance declaration for
        ‘HasServer (NoThrow :> Verb method status ctypes a) context’
   |
72 | instance (HasServer (Verb method status ctypes (Envelope '[] a)) context) =>
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
cdepillabout commented 6 years ago

This is fixed by #22.