[m-users.] Mercury Project Manager

Sebastian Godelet sebastian.godelet at outlook.com
Fri Mar 29 15:40:58 AEDT 2019


Hi Charles,

Thanks for this contribution!
I checked out the latest branch from bitbucket.org, and ran make, yielding the following error:

Making Mercury/cs/mpm.build.c
mpm.build.m:226: Error: predicate `dependency_args'/5 declares a determinism
mpm.build.m:226:   without declaring the modes of its arguments.
** Error making `Mercury/cs/mpm.build.c'.
Makefile:8: recipe for target 'mpm' failed
make: *** [mpm] Error 1

The following diff fixes this:

diff --git a/src/mpm.build.m b/src/mpm.build.m
index 43adcd4..4defc2e 100644
--- a/src/mpm.build.m
+++ b/src/mpm.build.m
@@ -223,8 +223,12 @@ init_files_in_dep_src(Flag, Dependency, InitFileListIn, InitFileListOut, !IO) :-



-:- pred dependency_args(mpm.project.project, pred(mpm.project.dependency.dependency, list(string), list(string), io, io), string, io, io) is det.
-:- mode dependency_args(in, pred(in, in, out, di, uo) is det, out, di, uo).
+:- pred dependency_args(mpm.project.project,
+    pred(mpm.project.dependency.dependency, list(string), list(string), io, io),
+    string, io, io).
+:- mode dependency_args(in,
+    pred(in, in, out, di, uo) is det, out, di, uo) is det.
+
dependency_args(Project, FlagValuePred, Args, !IO) :-
   list.foldl2(FlagValuePred, Project ^ indirect_dependencies, [], IndirectList, !IO),
   list.foldl2(FlagValuePred, Project ^ direct_dependencies, [], DirectList, !IO),

Thanks,

Sebastian

________________________________
From: users <users-bounces at lists.mercurylang.org> on behalf of Charles Shuller <charles.shuller at gmail.com>
Sent: Thursday, March 28, 2019 11:46:07 PM
To: Mercury Users
Subject: [m-users.] Mercury Project Manager

Hello all,

I wrote a project manager for mercury, which is ultimately supposed to mirror functionality found in things like elm, npm, rebar, and cabal.   For now, it's usable with a lot of manual edits to the JSON config file.

https://bitbucket.org/charles_shuller/mpm/src/master/


Hopefully others will find it useful.


Cheers!

Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20190329/966c4ee6/attachment.html>


More information about the users mailing list