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: Beta Ziliani <beta AT mpi-sws.org>
  • To: t x <txrev319 AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Using List Notation
  • Date: Mon, 2 Sep 2013 08:24:47 +0200

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