Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to make local sources take precedence over the library?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to make local sources take precedence over the library?


Chronological Thread 
  • From: Maxime Dénès <mail AT maximedenes.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] How to make local sources take precedence over the library?
  • Date: Wed, 4 Sep 2019 11:37:32 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=mail AT maximedenes.fr; spf=Pass smtp.mailfrom=mail AT maximedenes.fr; spf=None smtp.helo=postmaster AT 1.mo177.mail-out.ovh.net
  • Ironport-phdr: 9a23:j5JdCxYZyxAGKOIA2/7yp0//LSx+4OfEezUN459isYplN5qZoMu+bnLW6fgltlLVR4KTs6sC17OM9fm/BCdZv96oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMhm6txjdu8sWjIdtN6o8ywbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrRy8uRJ/zY7aboKbOvVwcazSf88VS2VaU8ZNVCFMGJ+wY5cBAucDO+tTsonzp0EJrRu7HQSiA/ngyzBJhn/zw6IxzuovFhvA3As5BNIFrXPZrNDvO6cTVeC416zIwi/MbvNX3Dfy9pXHfQ4nof6SRrJ8a8TRyVM2Gg7Dk16ep4vlPzaP2eQMtWiW9+tgVeS1i24msQ59uDavxt0qh4LUhYwV0kjJ+Th7zYs2P9G1RkB2bcS5HJdMtSyWLZZ6T8wsTm1wtis3yKcKtYO6cSUK0pgr2hDSZvOdf4SV7B/uVOCcKipiin1/YrKwnROy/FCgyuLiUsm0105HojdfntnJsXAByh7e58qdRvt45Eih2DKP2xnU6uFZPUA4j63bK4AhwrIqkJocr1jDEjf3mEXwkqCWal0p9vWq5unkeLnrqJGRO5Vphg3iMKkigNGzDOs2PwQWWmiU4+W81Lnt/U3jR7VKi+U7kqzDv5DbIcQWvau5DBVa04Yi7hawESqp38oenXYZN1JJYhyHj5LxN1HUPP/4Feu/g0irkDpz2//GOaThDozRIXjHjbfuZq1w61VcyQo21dBQ/YhYCrAHIPLpW0/+rsbUDhEjM1/8/+GyA9Jkk4gaRGinA6mDMaqUv0XbyPgoJrypbZ8UvTu1B3kjZ+Wm2XowmFs1eKC53J4aZH2+E+8gLV/PMimkucsIDWpf5ll2d+ftklDXCWcPNUb3ZLo143QAMKzjFZ3KH97/hbWR3SK2EpBQa3sABEreSS65JbXBYO8FbWepGuEklzUFUba7TIp4i0OrvR/7zrdrI+zZ4WsWr8C6jYUn16jojRg3sAdMIYGd3mWKFT8mxyUNQGZpg+Z6qE15j1Ceze5/nfweE9FPtatE

Hi Théo,

I fully agree with your advice, by why don't we deprecate `Add
LoadPath`, then?

Maxime.

On 9/3/19 10:59 PM, Théo Zimmermann wrote:
> Hi again,
>
> I strongly recommend you never use Add LoadPath. Instead, you should use
> a _CoqProject file containing a single -R or -Q directive. From there
> you can use coq_makefile to generate a Makefile to compile your project.
> The _CoqProject file is also understood by Proof General and CoqIDE, so
> from there it should all work out of the box.
>
> I would link you to the documentation, but I'm on my phone so it's a bit
> difficult.
>
> Théo
>
>
> Le mar. 3 sept. 2019 à 20:44, Karl Crary
> <crary AT andrew.cmu.edu
> <mailto:crary AT andrew.cmu.edu>>
> a écrit :
>
> Hmm.  This doesn't quite seem to do what I want.  I'm trying:
>
> Add LoadPath "." as Here.
>  From Here Require Import Foo.
>
> and I get:
>
> The file .../Foo.vo contains library Foo and not library Here.Foo
>
>         -- Karl Crary
>
>
> On 9/3/2019 12:34 PM, Théo Zimmermann wrote:
> > Hi,
> >
> > If the collision occurs at Require Import time, you can use the From
> > prefix to specify that the module should be found in your own project
> > instead of Coq's library.
> > Cf.
>
> https://coq.inria.fr/refman/proof-engine/vernacular-commands.html#coq:cmdv.require-import
> >
> > Théo
> >
> > Le mar. 3 sept. 2019 à 18:31, Karl Crary
> <crary AT andrew.cmu.edu
>
> <mailto:crary AT andrew.cmu.edu>>
> a écrit :
> >>
> >> Hi all,
> >>
> >> I upgraded to 8.9.1, and found that several new modules have been
> added
> >> to the library whose names collide with my own.  Unfortunately, this
> >> breaks my code in many places.  Is there a way to tell Coq to give
> >> precedence to local sources over libraries?
> >>
> >> Thanks for any help.
> >>
> >>          -- Karl Crary
> >>
>



Archive powered by MHonArc 2.6.18.

Top of Page