Sunday 15 June 2014

http - wreq not compiling with cabal sandbox -



http - wreq not compiling with cabal sandbox -

i'm using cabal sandbox , got error when compiling wreq library:

network/wreq/lens/machinery.hs:20:58: couldn't match type `[name]' `name' expected type: name -> [name] -> name -> [defname] actual type: [name] -> name -> [defname] in homecoming type of phone call of `fieldname' probable cause: `fieldname' applied many arguments in sec argument of `(.~)', namely `fieldname id' in sec argument of `(&)', namely `lensfield .~ fieldname id' failed install wreq-0.2.0.0

i'm using these libraries in cabal file:

base of operations >=4.6 && <4.7, bytestring >=0.10 && <0.11, aeson >=0.7 && <0.8, yaml-config >= 0.2.0 && < 0.3, http >= 4000.0.7 &&< 4001, base64-string >= 0.2 && < 0.3, wreq >= 0.2.0.0 && < 0.3

any ideas how solve compilation error?

it looks lens-4.5 culprit.

add lens >= 4.4 && < 4.5 cabal file , compile (it did me.)

http haskell lens

No comments:

Post a Comment