Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2018 09:29:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 214966] New port: x11-toolkits/hs-gtk3: Haskell bindings for GTK 3.0
Message-ID:  <bug-214966-16154-tB2f4yCoy6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-214966-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-214966-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214966

arrowd <6yearold@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |6yearold@gmail.com

--- Comment #2 from arrowd <6yearold@gmail.com> ---
At this point it doesn't compile with current GHC. After updating to the la=
test
upstream version it should do, I presume. I can do that when I find free ti=
me,
but OP is also invited to do that.

Error log:

=3D=3D=3D>  Configuring for hs-gtk3-0.14.2
[1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs, SetupWrapper.o )

SetupWrapper.hs:86:16: error:
    * Couldn't match expected type `IO (PackageIndex.PackageIndex a0)'
                  with actual type `ProgramConfiguration
                                    -> IO PackageIndex.InstalledPackageInde=
x'
    * Probable cause: `getInstalledPackages' is applied to too few arguments
      In a stmt of a 'do' block:
        index <- getInstalledPackages verbosity usePackageDB conf
      In the expression:
        do { index <- getInstalledPackages verbosity usePackageDB conf;
             let cabalDep
                   =3D Dependency
                       (PackageName "Cabal") (orLaterVersion useCabalVersio=
n);
             case PackageIndex.lookupDependency index cabalDep of {
               []
                 -> die
                    $ "The package requires Cabal library version "
                      ++
                        display useCabalVersion ++ " but no suitable versio=
n is
installed."
               pkgs -> return $ bestVersion (map fst pkgs) } }
      In an equation for `installedCabalVersion':
          installedCabalVersion comp conf
            =3D do { index <- getInstalledPackages verbosity usePackageDB c=
onf;
                   let cabalDep =3D ...;
                   case PackageIndex.lookupDependency index cabalDep of {
                     []
                       -> die
                          $ "The package requires Cabal library version "
                            ++
                              display useCabalVersion ++ " but no suitable
version is installed."
                     pkgs -> return $ bestVersion (map fst pkgs) } }
            where
                bestVersion =3D maximumBy (comparing preference)
                preference version
                  =3D (sameVersion, sameMajorVersion, stableVersion,
latestVersion)
                  where
                      sameVersion =3D version =3D=3D cabalVersion
                      sameMajorVersion
                        =3D majorVersion version =3D=3D majorVersion cabalV=
ersion
                      ....

SetupWrapper.hs:86:47: error:
    * Couldn't match expected type `Compiler'
                  with actual type `[PackageDB]'
    * In the second argument of `getInstalledPackages', namely
        `usePackageDB'
      In a stmt of a 'do' block:
        index <- getInstalledPackages verbosity usePackageDB conf
      In the expression:
        do { index <- getInstalledPackages verbosity usePackageDB conf;
             let cabalDep
                   =3D Dependency
                       (PackageName "Cabal") (orLaterVersion useCabalVersio=
n);
             case PackageIndex.lookupDependency index cabalDep of {
               []
                 -> die
                    $ "The package requires Cabal library version "
                      ++
                        display useCabalVersion ++ " but no suitable versio=
n is
installed."
               pkgs -> return $ bestVersion (map fst pkgs) } }

SetupWrapper.hs:120:54: error:
    * Couldn't match type `Distribution.Simple.Program.Db.ProgramDb'
                     with `[PackageDB]'
      Expected type: PackageDBStack
        Actual type: ProgramConfiguration
    * In the second argument of `cabalLibVersionToUse', namely `conf'
      In a stmt of a 'do' block:
        cabalLibVersion <- cabalLibVersionToUse comp conf
      In the second argument of `($)', namely
        `do { debug verbosity "Setup script is out of date, compiling...";
              (comp, _, conf) <- configCompilerEx
                                   (Just GHC) Nothing Nothing
defaultProgramConfiguration verbosity;
              cabalLibVersion <- cabalLibVersionToUse comp conf;
              let cabalPkgid
                    =3D PackageIdentifier (PackageName "Cabal") cabalLibVer=
sion;
              .... }'
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-toolkits/hs-gtk3

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214966-16154-tB2f4yCoy6>