ghc-pkg-lib is a library that lists the installed packages in a given sandbox and/or in the global and user package databases.
ghc-pkg-lib is currently NOT maintained anymore. Feel free to fork and take up maintainership!
a library mimicking ghc-pkg list function
License: BSD 3-Clause "New" or "Revised" License
It would be nice if Travis CI is used for reproducible testing/building of this library against multiple ghc versions. See https://github.com/adp-multi/adp-multi/blob/master/.travis.yml for some inspiration. If you need help, just ask.
configureFlags: --verbose --prefix=/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-haskell-ghc-pkg-lib-0.3.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/lib/ghc-7.10.1/ghc-pkg-lib-0.3 --ghc-option=-j8 --enable-split-objs --disable-library-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests
Configuring ghc-pkg-lib-0.3...
Flags chosen: lib-werror=False
Dependency Cabal >=1.14: using Cabal-1.22.2.0
Dependency base <5: using base-4.8.0.0
Dependency directory -any: using directory-1.2.2.0
Dependency filepath -any: using filepath-1.4.0.0
Dependency ghc -any: using ghc-7.10.1
Dependency ghc-paths >=0.1.0: using ghc-paths-0.1.0.9
Using Cabal-1.22.2.0 compiled by ghc-7.10
Using compiler: ghc-7.10.1
Using install prefix:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3
Binaries installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/bin
Libraries installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/lib/ghc-7.10.1/ghc-pkg-lib-0.3
Private binaries installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/libexec
Data files installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/share/x86_64-linux-ghc-7.10.1/ghc-pkg-lib-0.3
Documentation installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/share/doc/x86_64-linux-ghc-7.10.1/ghc-pkg-lib-0.3
Configuration files installed in:
/nix/store/5817a9izzyar4vmwgb0df4880p8q1ql3-haskell-ghc-pkg-lib-0.3/etc
No alex found
Using ar found on system at:
/nix/store/yxg5zsjxp1l16xk7r23rayyc18fkxynk-binutils-2.23.1/bin/ar
No c2hs found
No cpphs found
Using gcc version 4.8.4 given by user at:
/nix/store/ylj1q31a7x3pvcraxk60dyv9y4wmwcrc-gcc-wrapper-4.8.4/bin/gcc
Using ghc version 7.10.1 found on system at:
/nix/store/bc84hdk730zcdm1c9s5yf2ahpvm51lzp-ghc-7.10.1/bin/ghc
Using ghc-pkg version 7.10.1 found on system at:
/nix/store/bc84hdk730zcdm1c9s5yf2ahpvm51lzp-ghc-7.10.1/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.16.0 found on system at:
/nix/store/bc84hdk730zcdm1c9s5yf2ahpvm51lzp-ghc-7.10.1/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/bc84hdk730zcdm1c9s5yf2ahpvm51lzp-ghc-7.10.1/bin/hpc
Using hsc2hs version 0.67 found on system at:
/nix/store/bc84hdk730zcdm1c9s5yf2ahpvm51lzp-ghc-7.10.1/bin/hsc2hs
Using hscolour version 1.22 found on system at:
/nix/store/g6mfdhbmwm0499n88bnzd32y96gmnfn9-hscolour-1.23/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/ylj1q31a7x3pvcraxk60dyv9y4wmwcrc-gcc-wrapper-4.8.4/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.23 found on system at:
/nix/store/yxg5zsjxp1l16xk7r23rayyc18fkxynk-binutils-2.23.1/bin/strip
Using tar found on system at:
/nix/store/blyc5sprbm85ph2fmksyhrqislp9j0im-gnutar-1.28/bin/tar
No uhc found
building
Building ghc-pkg-lib-0.3...
Preprocessing library ghc-pkg-lib-0.3...
[1 of 1] Compiling Language.Haskell.Packages ( src/Language/Haskell/Packages.hs, dist/build/Language/Haskell/Packages.o )
src/Language/Haskell/Packages.hs:170:13:
Couldn't match type ‘[Char]’
with ‘Distribution.ModuleName.ModuleName’
Expected type: InstalledPackageInfo_
Distribution.ModuleName.ModuleName
Actual type: InstalledPackageInfoString
In the expression: pkgconf
In the expression:
pkgconf {exposedModules = convert e, hiddenModules = convert h}
src/Language/Haskell/Packages.hs:170:47:
Couldn't match type ‘ExposedModule’ with ‘[Char]’
Expected type: [String]
Actual type: [ExposedModule]
In the first argument of ‘convert’, namely ‘e’
In the ‘exposedModules’ field of a record
src/Language/Haskell/Packages.hs:171:39:
Couldn't match type ‘ExposedModule’
with ‘Distribution.ModuleName.ModuleName’
Expected type: [Distribution.ModuleName.ModuleName]
Actual type: [ExposedModule]
In the ‘hiddenModules’ field of a record
In the expression:
pkgconf {exposedModules = convert e, hiddenModules = convert h}
Can't install scion-browser and build-wrapper due to:
src\Language\Haskell\Packages.hs:74:18:
Not in scope: data constructor `TOOL_VERSION_ghc'
OS Windows 7 64bit, Haskell Platworm 2014.2.0.0
GHC version:
The Glorious Glasgow Haskell Compilation System, version 7.10.1
Error:
[1 of 1] Compiling Language.Haskell.Packages ( src/Language/Haskell/Packages.hs, dist/dist-sandbox-d8107c13/build/Language/Haskell/Packages.o )
src/Language/Haskell/Packages.hs:170:13:
Couldn't match type ‘[Char]’
with ‘Distribution.ModuleName.ModuleName’
Expected type: InstalledPackageInfo_
Distribution.ModuleName.ModuleName
Actual type: InstalledPackageInfoString
In the expression: pkgconf
In the expression:
pkgconf {exposedModules = convert e, hiddenModules = convert h}
src/Language/Haskell/Packages.hs:170:47:
Couldn't match type ‘ExposedModule’ with ‘[Char]’
Expected type: [String]
Actual type: [ExposedModule]
In the first argument of ‘convert’, namely ‘e’
In the ‘exposedModules’ field of a record
src/Language/Haskell/Packages.hs:171:39:
Couldn't match type ‘ExposedModule’
with ‘Distribution.ModuleName.ModuleName’
Expected type: [Distribution.ModuleName.ModuleName]
Actual type: [ExposedModule]
In the ‘hiddenModules’ field of a record
In the expression:
pkgconf {exposedModules = convert e, hiddenModules = convert h}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.