[Git][haskell-team/DHG_packages][master] recursion-schemes: Fix use with profiling

Scott Talbert (@swt2c) gitlab at salsa.debian.org
Wed Jul 27 16:41:45 BST 2022



Scott Talbert pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
a9b0e89b by Scott Talbert at 2022-07-27T11:36:59-04:00
recursion-schemes: Fix use with profiling

- - - - -


3 changed files:

- p/haskell-recursion-schemes/debian/changelog
- + p/haskell-recursion-schemes/debian/patches/fix-profiling.patch
- + p/haskell-recursion-schemes/debian/patches/series


Changes:

=====================================
p/haskell-recursion-schemes/debian/changelog
=====================================
@@ -1,8 +1,12 @@
-haskell-recursion-schemes (5.2.2.2-2) UNRELEASED; urgency=medium
+haskell-recursion-schemes (5.2.2.2-2) unstable; urgency=medium
 
+  [ Ilias Tsitsimpis ]
   * Declare compliance with Debian policy 4.6.1
 
- -- Ilias Tsitsimpis <iliastsi at debian.org>  Tue, 28 Jun 2022 15:32:59 +0300
+  [ Scott Talbert ]
+  * Fix use of recursion-schemes with profiling
+
+ -- Scott Talbert <swt at techie.net>  Wed, 27 Jul 2022 11:36:30 -0400
 
 haskell-recursion-schemes (5.2.2.2-1) unstable; urgency=medium
 


=====================================
p/haskell-recursion-schemes/debian/patches/fix-profiling.patch
=====================================
@@ -0,0 +1,27 @@
+Description: Fix use of recursion-schemes when profiling enabled
+Origin: https://github.com/recursion-schemes/recursion-schemes/issues/128
+
+diff --git a/recursion-schemes.cabal b/recursion-schemes.cabal
+index c35f2c6..e692ade 100644
+--- a/recursion-schemes.cabal
++++ b/recursion-schemes.cabal
+@@ -93,6 +93,7 @@ library
+       Paths_recursion_schemes
+ 
+   ghc-options: -Wall
++  ghc-prof-options: -DPROFILING_ENABLED
+   if impl(ghc >= 8.6)
+     ghc-options: -Wno-star-is-type
+   default-language: Haskell2010
+diff --git a/src/Data/Functor/Foldable/TH.hs b/src/Data/Functor/Foldable/TH.hs
+index b3d5ac8..d4ef0e4 100644
+--- a/src/Data/Functor/Foldable/TH.hs
++++ b/src/Data/Functor/Foldable/TH.hs
+@@ -1,4 +1,7 @@
+ {-# LANGUAGE CPP, PatternGuards, Rank2Types #-}
++#if defined(PROFILING_ENABLED)
++{-# OPTIONS_GHC -O0 #-}
++#endif
+ module Data.Functor.Foldable.TH
+   ( MakeBaseFunctor(..)
+   , BaseRules


=====================================
p/haskell-recursion-schemes/debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix-profiling.patch



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/a9b0e89be0170c094a478c6f0d63bf0b6954784e

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/a9b0e89be0170c094a478c6f0d63bf0b6954784e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20220727/4326ff12/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list