mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ganeti: Adjust to GHC 8.10 / Stackage 18.10.
* gnu/packages/patches/ganeti-haskell-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/virtualization.scm (ganeti)[source](patches): Add it. [arguments]: Add phase patch-version-constraints.
This commit is contained in:
parent
63162b1965
commit
0105f33a4d
3 changed files with 28 additions and 0 deletions
18
gnu/packages/patches/ganeti-haskell-compat.patch
Normal file
18
gnu/packages/patches/ganeti-haskell-compat.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Adjust to type change of TupE in Template Haskell 2.16.
|
||||
|
||||
diff --git a/src/Ganeti/THH/Types.hs b/src/Ganeti/THH/Types.hs
|
||||
--- a/src/Ganeti/THH/Types.hs
|
||||
+++ b/src/Ganeti/THH/Types.hs
|
||||
@@ -123,4 +123,11 @@ curryN n = do
|
||||
f <- newName "f"
|
||||
ps <- replicateM n (newName "x")
|
||||
return $ LamE (VarP f : map VarP ps)
|
||||
- (AppE (VarE f) (TupE $ map VarE ps))
|
||||
+ (AppE (VarE f) (nonUnaryTupE $ map VarE ps))
|
||||
+ where
|
||||
+ nonUnaryTupE :: [Exp] -> Exp
|
||||
+ nonUnaryTupE es = TupE $
|
||||
+#if MIN_VERSION_template_haskell(2,16,0)
|
||||
+ map Just
|
||||
+#endif
|
||||
+ es
|
Loading…
Add table
Add a link
Reference in a new issue