functor (E : Eq-> sig type a = E.a val eq : a -> a -> bool end