Bug#1084123: haskell-libmpd: FTBFS: Variable not in scope
Sebastian Ramacher
sramacher at debian.org
Sat Oct 5 13:40:03 BST 2024
Source: haskell-libmpd
Version: 0.10.0.0-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher at debian.org
https://buildd.debian.org/status/fetch.php?pkg=haskell-libmpd&arch=amd64&ver=0.10.0.0-2%2Bb3&stamp=1727373231&raw=0
[10 of 48] Compiling Network.MPD.Commands.Parse ( src/Network/MPD/Commands/Parse.hs, dist-ghc/build/specs/specs-tmp/Network/MPD/Commands/Parse.o )
src/Network/MPD/Commands/Parse.hs:25:14: error: [GHC-88464]
Variable not in scope:
foldM
:: (Count -> (ByteString, ByteString) -> Either String Count)
-> t2 -> [(ByteString, ByteString)] -> Either String Count
Suggested fix:
Perhaps use one of these:
‘foldl’ (imported from Prelude),
‘UTF8.foldl’ (imported from Data.ByteString.UTF8),
‘foldr’ (imported from Prelude)
|
25 | parseCount = foldM f def . toAssocList
| ^^^^^
src/Network/MPD/Commands/Parse.hs:35:22: error: [GHC-88464]
Variable not in scope:
foldM
:: (Device -> (a1, ByteString) -> Either String Device)
-> t1 -> [(ByteString, ByteString)] -> Either String Device
Suggested fix:
Perhaps use one of these:
‘foldl’ (imported from Prelude),
‘UTF8.foldl’ (imported from Data.ByteString.UTF8),
‘foldr’ (imported from Prelude)
|
35 | parseOutputs = mapM (foldM f def)
| ^^^^^
src/Network/MPD/Commands/Parse.hs:47:14: error: [GHC-88464]
Variable not in scope:
foldM
:: (Stats -> (a0, ByteString) -> Either String Stats)
-> t0 -> [(ByteString, ByteString)] -> Either String Stats
Suggested fix:
Perhaps use one of these:
‘foldl’ (imported from Prelude),
‘UTF8.foldl’ (imported from Data.ByteString.UTF8),
‘foldr’ (imported from Prelude)
|
47 | parseStats = foldM f def . toAssocList
| ^^^^^
src/Network/MPD/Commands/Parse.hs:72:26: error: [GHC-88464]
Variable not in scope:
foldM
:: (Song -> (ByteString, ByteString) -> Either String Song)
-> Song -> [(ByteString, ByteString)] -> Either String Song
Suggested fix:
Perhaps use one of these:
‘foldl’ (imported from Prelude),
‘UTF8.foldl’ (imported from Data.ByteString.UTF8),
‘foldr’ (imported from Prelude)
|
72 | ("file", path):ys -> foldM f (defaultSong (Path path)) ys
| ^^^^^
Cheers
--
Sebastian Ramacher
More information about the Pkg-haskell-maintainers
mailing list