<div dir="ltr"><div>I'm not sure I understand your problem exactly, but note that registering a package in `~/.agda/libraries` only makes it available as a possible dependency. As long as the library name doesn't clash with other libraries and you don't add it to `~/.agda/defaults` it will not interfere with other libraries. In your case it should be enough to rename the modified version of the standard library (or add a special version number [1]).<br><br></div>/ Ulf<br><div><br>[1] <a href="http://agda.readthedocs.io/en/latest/tools/package-system.html#version-numbers">http://agda.readthedocs.io/en/latest/tools/package-system.html#version-numbers</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 9:59 AM, Frederik Hanghøj Iversen <span dir="ltr"><<a href="mailto:fhi.1990@gmail.com" target="_blank">fhi.1990@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can I depend on a package only locally?<div><br></div><div>I know I can put a package in `~/.agda/libraries` and thus make it available globally on my system.</div><div><br></div><div>What I really need is a way for a library to ship with it's own dependencies. So that I can e.g. use git-submodules to explicitly list dependencies.</div><div><br></div><div>The problem I have is that I'm working on a library that explicitly does not want to depend on the standard library (for reasons I guess) - but I also need to use this library in another library that depends on this library *and* the standard library - but it would make my life a *lot easier* if we agreed on the definition of e..g Sigma. So I want to depend on a modified version of the library. But if I have two versions lying around in my system I can work on the dependency as all module names are suddenly ambiguous. And if I don't register the dependency globally I cannot use it in the dependent package.</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div class="m_-6581973969134688312gmail_signature" data-smartmail="gmail_signature"><div>Regards</div><div><i>Frederik Hanghøj Iversen</i></div></div>
</div></font></span></div>
<br>______________________________<wbr>_________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" rel="noreferrer" target="_blank">https://lists.chalmers.se/<wbr>mailman/listinfo/agda</a><br>
<br></blockquote></div><br></div>