File fix-build-with-ghc-9.6.x.patch of Package ghc-libmpd
From 18dfb6fc1eb1624dd22386402af0951992900f0c Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Mon, 26 Jun 2023 14:00:56 +0200
Subject: [PATCH 1/2] Allow building with text-2.0.x.
---
libmpd.cabal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmpd.cabal b/libmpd.cabal
index 37a61f1..800b68e 100644
--- a/libmpd.cabal
+++ b/libmpd.cabal
@@ -45,7 +45,7 @@ Library
, containers >= 0.3 && < 1
, filepath >= 1 && < 2
, mtl >= 2.2.2 && < 3
- , text >= 0.11 && < 2
+ , text >= 0.11 && < 2.1
, time >= 1.5 && < 2
-- Additional dependencies
From 5737096a339edc265a663f51ad9d29baee262694 Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Mon, 26 Jun 2023 14:01:09 +0200
Subject: [PATCH 2/2] Import Control.Monad for missing foldM.
---
src/Network/MPD/Commands/Parse.hs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Network/MPD/Commands/Parse.hs b/src/Network/MPD/Commands/Parse.hs
index 49f23cb..f53283c 100644
--- a/src/Network/MPD/Commands/Parse.hs
+++ b/src/Network/MPD/Commands/Parse.hs
@@ -12,6 +12,7 @@ module Network.MPD.Commands.Parse where
import Network.MPD.Commands.Types
+import Control.Monad
import Control.Monad.Except
import Data.Maybe (fromMaybe)