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/ini-compat/Main.hs failed to compile #22

Closed
juhp opened this issue Jan 3, 2019 · 2 comments
Closed

test/ini-compat/Main.hs failed to compile #22

juhp opened this issue Jan 3, 2019 · 2 comments

Comments

@juhp
Copy link
Contributor

juhp commented Jan 3, 2019

Testsuite build failure in current Stackage Nightly:

Building test suite 'test-ini-compat' for config-ini-0.2.4.0..
[1 of 1] Compiling Main             ( test/ini-compat/Main.hs, dist/build/test-ini-compat/test-ini-compat-tmp/Main.o )

test/ini-compat/Main.hs:53:8: error:
    • The constructor ‘I1.Ini’ should have 2 arguments, but has been given 1
    • In the pattern: I1.Ini ini
      In an equation for ‘lower’:
          lower (I1.Ini ini)
            = go (fmap go ini)
            where
                go hm = HM.fromList [(T.toLower k, v) | (k, v) <- HM.toList hm]
   |
53 | lower (I1.Ini ini) = go (fmap go ini)
   |        ^^^^^^^^^^

test/ini-compat/Main.hs:74:3: error:
    • Couldn't match type ‘[(Text, Text)] -> I1.Ini’ with ‘I1.Ini’
      Expected type: GenT Data.Functor.Identity.Identity I1.Ini
        Actual type: GenT
                       Data.Functor.Identity.Identity ([(Text, Text)] -> I1.Ini)
    • In a stmt of a 'do' block: return (I1.Ini (HM.fromList ss))
      In the expression:
        do ss <- Gen.list (Range.linear 0 10)
                   $ do name <- textChunk
                        section <- Gen.list (Range.linear 0 10)
                                     $ (,) <$> textChunk <*> textChunk
                        ....
           return (I1.Ini (HM.fromList ss))
      In an equation for ‘mkIni’:
          mkIni
            = do ss <- Gen.list (Range.linear 0 10)
                         $ do name <- textChunk
                              ....
                 return (I1.Ini (HM.fromList ss))
   |
74 |   return (I1.Ini (HM.fromList ss))
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

test/ini-compat/Main.hs:74:19: error:
    • Couldn't match type ‘HashMap Text Text’ with ‘[(Text, Text)]’
      Expected type: HashMap Text [(Text, Text)]
        Actual type: HashMap Text (HashMap Text Text)
    • In the first argument of ‘I1.Ini’, namely ‘(HM.fromList ss)’
      In the first argument of ‘return’, namely
        ‘(I1.Ini (HM.fromList ss))’
      In a stmt of a 'do' block: return (I1.Ini (HM.fromList ss))
   |
74 |   return (I1.Ini (HM.fromList ss))
   |                   ^^^^^^^^^^^^^^
juhp added a commit to commercialhaskell/stackage that referenced this issue Jan 3, 2019
trofi pushed a commit to gentoo-haskell/gentoo-haskell that referenced this issue Jan 18, 2020
Bug: aisamanra/config-ini#22
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
@clinty
Copy link

clinty commented Jun 13, 2020

This broke because the API changed between ini 0.3.6 and ini 0.4.0.

@aisamanra
Copy link
Owner

...well, I dragged my feet on this for quite a while, but it is fixed as of this commit. Sorry about the, uh, pretty egregious delay here!

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

3 participants