ghc-rpm-macros - RPM macros for building Haskell packages for GHC

Property Value
Distribution CentOS 7
Repository EPEL x86_64
Package filename ghc-rpm-macros-1.0.12-1.el7.x86_64.rpm
Package name ghc-rpm-macros
Package version 1.0.12
Package release 1.el7
Package architecture x86_64
Package type rpm
License GPLv3+
Maintainer -
Download size 43.03 KB
Installed size 45.42 KB
A set of macros for building GHC packages following the Haskell Guidelines
of the Fedora Haskell SIG.  ghc needs to be installed in order to make use of
these macros.


Package Version Architecture Repository
ghc-rpm-macros-1.4.18-1.sdl7.0.1.x86_64.rpm 1.4.18 x86_64 PUIAS Computational
ghc-rpm-macros - - -


Name Value
ghc-compiler -
hscolour -
prelink -
redhat-rpm-config -


Name Value
ghc-rpm-macros = 1.0.12-1.el7
ghc-rpm-macros(x86-64) = 1.0.12-1.el7


Type URL
Binary Package ghc-rpm-macros-1.0.12-1.el7.x86_64.rpm
Source Package ghc-rpm-macros-1.0.12-1.el7.src.rpm

Install Howto

  1. Download latest epel-release rpm from
  2. Install epel-release rpm:
    # rpm -Uvh epel-release*rpm
  3. Install ghc-rpm-macros rpm package:
    # yum install ghc-rpm-macros




2019-07-27 - Jens Petersen <> - 1.0.12-1
- set ghc_without_dynamic for Haskell static executable
2018-07-28 - Jens Petersen <> - 1.0.11-1
- update url
- add macros.ghc-os and cabal-tweak-drop-dep
- install licenses (Cabal docdir) in licenses dir
2016-12-01 - Jens Petersen <> - 1.0.10-1
- workaround unversioned _pkgdocdir in RHEL 7.3 (see #1392354)
2016-10-27 - Jens Petersen <> -
- sync with 1.2.20.fc21
- add aarch64 and ppc64le until RHEL 7.3 redhat-rpm-config
2016-10-26 - Jens Petersen <> -
- rebuild
2015-10-08 - Jens Petersen <> -
- cabal macro now sets utf8 locale
- introduce ghc_pkgdocdir since no _pkgdocdir in RHEL 7 and earlier
- add cabal_test macro
- ghc_fix_dynamic_rpath: on ARMv7 RPATH is RUNPATH
- add new names ghc_html_dir, ghc_html_libraries_dir, and ghc_html_pkg_dir
- correct cabal-tweak-flag error message for missing flag (#1184508)
- split ghc.attr into ghc_lib.attr and ghc_bin.attr for finer grained handling
- require ghc-compiler for ghc_version
- support ghc-pkg for ghc builds <= 7.4.2 as well
- ghc.attr needs to handle requires for /usr/bin files too
- improve ghc_fix_dynamic_rpath not to assume cwd = pkg_name
- drop -O2: it often uses too much build mem
- add an rpm .attr file for rather than running it
as an external dep generator (#1132275)
- condition use of execstack since no prelink on ppc64le or arm64
2014-05-17 - Jens Petersen <> -
- do bcond cabal configure --enable-tests also for Bin packages
- enable configure bcond check for tests
- use -O2 also for executable (Bin) packages and allow it to be overrided
- set Url field when generating subpackages
- update license tag to GPLv3+
- handle no _pkgdocdir in RHEL7 and docdir path different to F20+
- abort ghc_fix_dynamic_rpath if no chrpath
- Install macros to %{_rpmconfigdir}/macros.d.
- set datasubdir in cabal_configure for ghc-7.8
2014-03-28 - Jens Petersen <> -
- backport recent changes from F20:
- quote the ghc_fix_dynamic_rpath error message
- ghc_fix_dynamic_rpath: abort for non-existent executable name
- cabal-tweak-flag: add manual field to enforce flag changes
- fix ghc-pkg path when bootstrapping new ghc version
- fix when bootstrapping a new ghc version
- use objdump -p instead of ldd to read executable dependencies
- update to handling ghc-7.8 rts
- ghcpkgdocdir should be versioned (for F20 and earlier)
- add ghcpkgdocdir, which like _pkgdocdir allows for unversioned haddock dirs
2013-07-11 - Jens Petersen <> - 1.0.4-1
- check for bindir before looking for executables in ghc_clear_execstack
2013-07-10 - Jens Petersen <> - 1.0.3-1
- add ghc_clear_execstack and use it also in ghc_lib_install (#973512)
and require prelink for execstack

See Also

Package Description
ghc-rpm-macros-extra-1.0.12-1.el7.x86_64.rpm Extra RPM macros for building Haskell library subpackages
ghc-safe-0.3.3-8.el7.x86_64.rpm Library for safe (pattern match free) functions
ghc-safe-devel-0.3.3-8.el7.x86_64.rpm Haskell safe library development files
ghc-scientific- Arbitrary-precision floating-point numbers represented using scientific notation
ghc-scientific-devel- Haskell scientific library development files
ghc-semigroups-0.8.5-3.el7.x86_64.rpm Implementation of semigroups
ghc-semigroups-devel-0.8.5-3.el7.x86_64.rpm Haskell semigroups library development files
ghc-sendfile-0.7.9-1.el7.x86_64.rpm A portable sendfile library
ghc-sendfile-devel-0.7.9-1.el7.x86_64.rpm Haskell sendfile library development files
ghc-setenv-0.1.0-3.el7.x86_64.rpm Cross-platform library for setting environment variables
ghc-setenv-devel-0.1.0-3.el7.x86_64.rpm Haskell setenv library development files
ghc-shake-0.11.4-4.el7.x86_64.rpm Haskell shake library
ghc-shake-devel-0.11.4-4.el7.x86_64.rpm Haskell shake library development files
ghc-shakespeare- Toolkit for compile-time interpolated templates
ghc-shakespeare-devel- Haskell shakespeare library development files