Debian Codegraph @

test-suite/bugs/bug_19299.v

raw
1 Require Import ListDef.
2
3 Class MBind (M : Type -> Type) :=
4 mbind : forall {A B}, (A -> M B) -> M A -> M B.
5 #[global] Instance list_bind : MBind list.
6 exact (fun A B f =>
7 fix go (l : list A) :=
8 match l with nil => nil | cons x l => f x ++ go l end%list).
9 Defined.
10
11 Polymorphic Record dyn := Dyn { type : Type; elem : type }.
12
13 Definition fails : list dyn := (Dyn _ (@Datatypes.app)) :: nil.