Skip to content

Build problem with servant 0.19 #38

@marinelli

Description

@marinelli

It's not possible to build sevant-util with servant 0.19:

src/Servant/Util/Combinators/Filtering/Client.hs:47:41: error:
    • Couldn't match type ‘Text’ with ‘ByteString’
      Expected type: Maybe ByteString
        Actual type: Maybe Text
    • In the second argument of ‘appendToQueryString’, namely
        ‘(Just value)’
      In the expression: appendToQueryString key (Just value)
      In the expression:
        let
          filter :: TypeFilter fk a
            = cast sfFilter ?: error "Failed to cast filter"
          (op, value) = typeFilterToReq filter
          keymod = if op == DefFilteringCmd then "" else "[" <> op <> "]"
          ....
        in appendToQueryString key (Just value)
   |
47 |             in appendToQueryString key (Just value)
   |                                         ^^^^^^^^^^

The appendToQueryString type has changed here haskell-servant/servant#1432.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions