[@@ FStar.Tactics.Typeclasses.tcinstance]
val bool_has_eq:deq bool
instance bool_has_eq : deq bool = eq_instance_of_eqtype
[@@ FStar.Tactics.Typeclasses.tcinstance]
val bool_has_eq:deq bool
[@@ FStar.Tactics.Typeclasses.tcinstance]
let bool_has_eq:deq bool =
eq_instance_of_eqtype
FStar.Class.Eq.Raw.fst.checked
prims.fst.checked FStar.Tactics.Typeclasses.fsti.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
FStar.Class.Eq.Raw.fst
FStar.Class.Eq.Raw.eq_instance_of_eqtype Prims.bool
(*
   Copyright 2008-2023 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)
module FStar.Class.Eq.Raw

class deq a = {
  eq : a -> a -> bool;
}

let eq_instance_of_eqtype (#a:eqtype) : deq a = {
  eq = (fun x y -> x = y)
}

// FIXME: It would be easier to have a single eqtype instance,
// but resolution will sometimes use for any type, even though
// it should not.
instance int_has_eq : deq int = eq_instance_of_eqtype
[@@ FStar.Tactics.Typeclasses.tcinstance]
val bool_has_eq:deq bool
FStar.Class.Eq.Raw.deq Prims.bool