Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test suite failure with servant-0.18.2 #62

Closed
jkachmar opened this issue Apr 22, 2021 · 1 comment
Closed

test suite failure with servant-0.18.2 #62

jkachmar opened this issue Apr 22, 2021 · 1 comment

Comments

@jkachmar
Copy link

The servant-elm-0.7.2 test suite appears to fail when compiled against servant-0.18.2 (et al. Servant 0.18.x supporting libraries).

The errors are as follows:

    /var/stackage/work/unpack-dir/unpacked/servant-elm-0.7.2-4b10f1da950fea1a0bcaf74a9e68dc0a1c01
36e8c09a136b9c3f6c89e09ad21a/test/Common.hs:41:13: error:
        • Expected kind ‘[*] -> * -> *’, but ‘PostNoContent’ has kind ‘*’
        • In the second argument of ‘(:>)’, namely
            ‘PostNoContent '[JSON] ()’
          In the second argument of ‘(:>)’, namely
            ‘ReqBody '[JSON] Book :> PostNoContent '[JSON] ()’
          In the first argument of ‘(:<|>)’, namely
            ‘"books" :> ReqBody '[JSON] Book :> PostNoContent '[JSON] ()’
       |
    41 |          :> PostNoContent '[JSON] ()
       |
    /var/stackage/work/unpack-dir/unpacked/servant-elm-0.7.2-4b10f1da950fea1a0bcaf74a9e68dc0a1c01
36e8c09a136b9c3f6c89e09ad21a/test/Common.hs:43:13: error:
        • Expected kind ‘[*] -> * -> *’, but ‘GetNoContent’ has kind ‘*’
        • In the second argument of ‘(:>)’, namely
            ‘GetNoContent '[JSON] ()’
          In the first argument of ‘(:<|>)’, namely
            ‘"nothing" :> GetNoContent '[JSON] ()’
          In the second argument of ‘(:<|>)’, namely
            ‘"nothing" :> GetNoContent '[JSON] ()
             :<|>
             "nothing" :> Put '[JSON] ()
             :<|>
             "with-a-header"
             :>
             Header "Cookie" String
             :>
             Header "myStringHeader" String
             :>
             Header "MyIntHeader" Int
             :>
             Header' '[Required] "MyRequiredStringHeader" String
             :>
             Header' '[Required] "MyRequiredIntHeader" Int :> Get '[JSON] String
             :<|>
             "with-a-response-header"
             :> Get '[JSON] (Headers '[Header "myResponse" String] String)’
       |
    43 |          :> GetNoContent '[JSON] ()
       |             ^^^^^^^^^^^^^^^^^^^^^^^
jkachmar added a commit to commercialhaskell/stackage that referenced this issue Apr 22, 2021
@k-bx
Copy link
Collaborator

k-bx commented Apr 23, 2021

Fixed in master, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants