Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Using List Notation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Using List Notation


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: Beta Ziliani <beta AT mpi-sws.org>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Using List Notation
  • Date: Mon, 2 Sep 2013 06:28:31 +0000

Worked. Thanks!


On Mon, Sep 2, 2013 at 6:24 AM, Beta Ziliani <beta AT mpi-sws.org> wrote:
Hi,

You need to import the list notations:

Require Import List.
Import ListNotations.

Eval compute in [1; 2].




On Mon, Sep 2, 2013 at 8:20 AM, t x <txrev319 AT gmail.com> wrote:
> Hi,
>
>   I'm trying to use Coq's List Notation of [ .. ; .. ; .. ].
>
>   I try the following:
>
> Require Import List.
> Local Open Scope list_scope.
>
> Eval compute in [1; 2].
>
>
>   Instead of getting a (1 :: 2 :: nil), I get back
>
>   Syntax error: [constr: lconstr] expected after 'in' ...
>
> What am I doing wrong?




Archive powered by MHonArc 2.6.18.

Top of Page