diff --git a/package.yaml b/package.yaml index 8f56864..04d0afe 100644 --- a/package.yaml +++ b/package.yaml @@ -99,6 +99,7 @@ dependencies: - servant-conduit - serialise - stm +- stm-chans - text - these - time diff --git a/share-api.cabal b/share-api.cabal index 45d8289..5f7338b 100644 --- a/share-api.cabal +++ b/share-api.cabal @@ -267,6 +267,7 @@ library , share-auth , share-utils , stm + , stm-chans , text , these , time @@ -415,6 +416,7 @@ executable share-api , share-auth , share-utils , stm + , stm-chans , text , these , time diff --git a/src/Share/Utils/Servant/CBOR.hs b/src/Share/Utils/Servant/CBOR.hs index 0cf66ee..85fa517 100644 --- a/src/Share/Utils/Servant/CBOR.hs +++ b/src/Share/Utils/Servant/CBOR.hs @@ -12,8 +12,7 @@ import Servant -- | Content-type for encoding and decoding objects as their CBOR representations data CBOR --- | Mime-type for CBOR and additional ones using the word "hackage" and the --- name of the package "serialise". +-- | Mime-type for CBOR instance Accept CBOR where contentTypes Proxy = NonEmpty.singleton ("application" MediaType.// "cbor")