1. Summarise the issue (what were doing, what went wrong?)
as described at https://github.com/NixOS/nixpkgs/issues/53433, building
with LTS 13.0 fails with:
src/Darcs/Util/Tree.hs:420:11: error:
• Could not deduce (Control.Monad.Fail.MonadFail m)
arising from a do statement
with the failable pattern ‘SubTree t''’
from the context: Monad m
bound by the type signature for:
partiallyUpdateTree :: forall (m :: * -> *).
Monad m =>
(TreeItem m -> m (TreeItem m))
-> (AnchoredPath -> TreeItem m
-> Bool)
-> Tree m
-> m (Tree m)
at src/Darcs/Util/Tree.hs:(415,1)-(416,86)
Possible fix:
add (Control.Monad.Fail.MonadFail m) to the context of
the type signature for:
partiallyUpdateTree :: forall (m :: * -> *).
Monad m =>
(TreeItem m -> m (TreeItem m))
-> (AnchoredPath -> TreeItem m ->
Bool) -> Tree m -> m (Tree m)
• In a stmt of a 'do' block:
SubTree t'' <- fun . SubTree
$ t {items = items', treeHash = NoHash}
In the expression:
do items' <- M.fromList
<$> mapM (maybeupdate path) (listImmediate t)
SubTree t'' <- fun . SubTree
$ t {items = items', treeHash = NoHash}
return t''
In an equation for ‘go’:
go path t
= do items' <- M.fromList
<$> mapM (maybeupdate path) (listImmediate t)
SubTree t'' <- fun . SubTree
$ t {items = items', treeHash = NoHash}
return t''
|
420 | SubTree t'' <- fun . SubTree $ t { items = items'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
Applying
https://github.com/jerith666/nixpkgs/commit/f97acd9da6e9dc1fbf83bd48a25371357a2b8af6
to fix that, the next error is:
[222 of 224] Compiling Darcs.UI.Defaults ( src/Darcs/UI/Defaults.hs,
dist/build/Darcs/UI/Defaults.o )
[223 of 224] Compiling Darcs.UI.RunCommand ( src/Darcs/UI/RunCommand.hs,
dist/build/Darcs/UI/RunCommand.o )
[224 of 224] Compiling Darcs.UI.Commands.Help (
src/Darcs/UI/Commands/Help.hs, dist/build/Darcs/UI/Commands/Help.o )
dist/build/darcs/darcs.1: openFile: does not exist (No such file or
directory)
builder for
'/nix/store/j3q93kwc6glvs8y2zkz9vmyxrh11mjmi-darcs-2.14.1.drv' failed
with exit code 1
error: build of
'/nix/store/j3q93kwc6glvs8y2zkz9vmyxrh11mjmi-darcs-2.14.1.drv' failed
2. What behaviour were you expecting instead?
successful compilation
3. What darcs version are you using? (Try: darcs --exact-version)
2.14.1
4. What operating system are you running?
NixOS
|