From b9c22083ac97a7dfc8c02a9525d88fc69d9ecfba Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Sun, 21 Jun 2026 05:58:26 +0200 Subject: [PATCH] add: ghc-fail (#13213) Signed-off-by: Owen-sz --- anda/langs/haskell/ghc-fail/anda.hcl | 5 ++ anda/langs/haskell/ghc-fail/ghc-fail.spec | 72 +++++++++++++++++++++++ anda/langs/haskell/ghc-fail/update.rhai | 1 + 3 files changed, 78 insertions(+) create mode 100644 anda/langs/haskell/ghc-fail/anda.hcl create mode 100644 anda/langs/haskell/ghc-fail/ghc-fail.spec create mode 100644 anda/langs/haskell/ghc-fail/update.rhai diff --git a/anda/langs/haskell/ghc-fail/anda.hcl b/anda/langs/haskell/ghc-fail/anda.hcl new file mode 100644 index 0000000000..d9fe1b487e --- /dev/null +++ b/anda/langs/haskell/ghc-fail/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ghc-fail.spec" + } +} diff --git a/anda/langs/haskell/ghc-fail/ghc-fail.spec b/anda/langs/haskell/ghc-fail/ghc-fail.spec new file mode 100644 index 0000000000..cca9d62add --- /dev/null +++ b/anda/langs/haskell/ghc-fail/ghc-fail.spec @@ -0,0 +1,72 @@ +# generated by cabal-rpm-2.3.2 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name fail +%global pkgver %{pkg_name}-%{version} +%{?haskell_setup} + +Name: ghc-%{pkg_name} +Version: 4.9.0.0 +Release: 1%{?dist} +Summary: Forward-compatible MonadFail class + +License: BSD-3-Clause +URL: https://hackage.haskell.org/package/fail +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources + +# Begin cabal-rpm deps: +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-Cabal-devel +# End cabal-rpm deps + +Packager: Owen Zimmerman + +%description +This package contains the "Control.Monad.Fail" module providing the + class +that became available in for older 'base' package versions. + +This package turns into an empty package when used with GHC versions which +already provide the "Control.Monad.Fail" module to make way for GHC's own +"Control.Monad.Fail" module. + + +%package devel +Summary: Haskell %{pkg_name} library development files +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build_without_haddock +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install -m +mv %{buildroot}%{_ghcdocdir}{,-devel} +# End cabal-rpm install + + +%files devel -f %{name}-devel.files +%license LICENSE + + +%changelog +* Sun Jun 21 2026 Owen Zimmerman - 4.9.0.0-1 +- Initial commit diff --git a/anda/langs/haskell/ghc-fail/update.rhai b/anda/langs/haskell/ghc-fail/update.rhai new file mode 100644 index 0000000000..1014d94332 --- /dev/null +++ b/anda/langs/haskell/ghc-fail/update.rhai @@ -0,0 +1 @@ +rpm.version(hackage("fail"));