You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequireImport Coq.Lists.List.
Import ListNotations.
From Equations RequireImport Equations.
Equations app {A} (l l' : list A) : list A :=
app [] l' := l' ; (* <- here notations work *)
app (a :: l) l' := a :: (app l l').
The error message is
Error: Syntax error: ')' expected after [lpatt] (in [patt]).
It works if I change (a :: l) with cons a l.
Tested with Coq 8.8.0, Equations 1.0, both installed via OPAM.
The text was updated successfully, but these errors were encountered:
The following snippet produces an error message.
The error message is
It works if I change
(a :: l)
withcons a l
.Tested with Coq 8.8.0, Equations 1.0, both installed via OPAM.
The text was updated successfully, but these errors were encountered: