cabalism / hpack-dhall

Use hpack's phrasing in dhall to write cabal files
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Couldn't match type ‘Value’ with ‘([String], Value)’ with ghc-8.6.1. #7

Closed philderbeast closed 5 years ago

philderbeast commented 5 years ago

With stack-8.6.1.yaml;

resolver: nightly-2018-10-15
packages:
- '.'
extra-deps:
- dhall-1.18.0
- cborg-0.2.1.0
- dhall-json-1.2.4
- hpack-0.31.0
- megaparsec-7.0.1
- repline-0.2.0.0
- serialise-0.2.1.0
- infer-license-0.2.0
hpack-dhall> stack build --stack-yaml=stack-8.6.1.yaml
...
[1 of 3] Compiling Hpack.Dhall      ( src/Hpack/Dhall.hs, .stack-work/.../Dhall.o )

/Users/pdejoux/dev/src/haskell/hpack-dhall/src/Hpack/Dhall.hs:34:69: error:
    • Couldn't match type ‘Value’ with ‘([String], Value)’
      Expected type: FilePath -> IO (Either String ([String], Value))
        Actual type: FilePath -> IO (Either String Value)
    • In the first argument of ‘Hpack.setDecode’, namely ‘decodeDhall’
      In the second argument of ‘Hpack.hpack’, namely
        ‘(Hpack.setDecode decodeDhall options)’
      In the expression:
        Hpack.hpack verbose (Hpack.setDecode decodeDhall options)
   |
34 |     Just (verbose, options) -> Hpack.hpack verbose (Hpack.setDecode decodeDhall options)
   |                                                                     ^^^^^^^^^^^

Completed 54 action(s).
philderbeast commented 5 years ago

Fixed by #8.