Skip to content
Snippets Groups Projects

Fix `Export` order for `length`. Remove `length` hack in strings.

Merged Robbert Krebbers requested to merge ci/robbert/length into master
3 unresolved threads
+ 6
6
From Coq Require Import Ascii.
From Coq Require Export String.
(** Re-export [Coq.Datatypes] so that the [length] function refers to the one on
lists instead of strings. Note that [length] is defined in [Coq.Datatypes] and
not [Coq.Lists]. *)
From Coq Require Export Datatypes.
From stdpp Require Export list.
From stdpp Require Import countable.
Set Default Proof Using "Type".
(* To avoid randomly ending up with String.length because this module is
imported hereditarily somewhere. *)
Notation length := List.length.
(** * Fix scopes *)
Open Scope string_scope.
(* Make sure [list_scope] has priority over [string_scope], so that
the "++" notation designates list concatenation. *)
(** Make sure [list_scope] has priority over [string_scope], so that the [++]
notation designates list concatenation. *)
Open Scope list_scope.
Infix "+:+" := String.append (at level 60, right associativity) : stdpp_scope.
Arguments String.append : simpl never.
Loading