fpco / stackage-curator

DEPRECATED Tools for curating Stackage package sets and building reusable package databases
MIT License
10 stars 11 forks source link

Stackage nightly build failure #46

Closed decentral1se closed 7 years ago

decentral1se commented 7 years ago
[10 of 22] Compiling Stackage.GithubPings ( Stackage/GithubPings.hs, dist/build/Stackage/GithubPings.o )

Stackage/GithubPings.hs:27:5: error:
    • Non type-variable argument in the constraint: Eq (Element b)
      (Use FlexibleContexts to permit this)
    • When checking the inferred type
        goHomepage :: forall b.
                      (Element b ~ Char, Eq (Element b), IsSequence b, IsString b) =>
                      b -> [b]
      In an equation for ‘getGithubPings’:
          getGithubPings gpd
            = setFromList
                $ map pack
                    $ goHomepage (homepage $ packageDescription gpd)
                        ++ concatMap goRepo (sourceRepos $ packageDescription gpd)
            where
                goHomepage t
                  = do prefix <- ...
                       ....
                goRepo sr
                  = case (repoType sr, repoLocation sr) of
                      (Just Git, Just s) -> goHomepage s
                      _ -> ...
   |
27 |     goHomepage t = do
   |     ^^^^^^^^^^^^^^^^^.
decentral1se commented 7 years ago

Hmmm, constraint didn't work, had to do https://github.com/fpco/stackage/commit/b2c8d1aa1b573d344789527db3c2bb3713161a37.

snoyberg commented 7 years ago

@lwm Should be fixed now, and I've pushed a commit to the stackage repo as well.

decentral1se commented 7 years ago

Thanks!