From owner-freebsd-haskell@freebsd.org Sun Jan 14 09:29:25 2018 Return-Path: Delivered-To: freebsd-haskell@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 421B9EB64E6 for ; Sun, 14 Jan 2018 09:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7C2742CF for ; Sun, 14 Jan 2018 09:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 19CF3EB64E4; Sun, 14 Jan 2018 09:29:25 +0000 (UTC) Delivered-To: haskell@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1969FEB64E3 for ; Sun, 14 Jan 2018 09:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F393B742CE for ; Sun, 14 Jan 2018 09:29:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E29DB51E7 for ; Sun, 14 Jan 2018 09:29:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0E9TO9c079965 for ; Sun, 14 Jan 2018 09:29:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0E9TOD4079964 for haskell@FreeBSD.org; Sun, 14 Jan 2018 09:29:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: haskell@FreeBSD.org Subject: [Bug 214966] New port: x11-toolkits/hs-gtk3: Haskell bindings for GTK 3.0 Date: Sun, 14 Jan 2018 09:29:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 6yearold@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-haskell@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD-specific Haskell issues and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2018 09:29:25 -0000 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.=