Hi, I can't figure out how I can use the has function for a reference type. Looks like I've to implement the Hash interface but not sure how to achieve this. Can someone point me at some example ? I guess I can hack something using a TaggedClass and using the schema in the constructor but I'd prefer not to.
Example code :
``` import { expect, test } from "vitest" import * as fc from "fast-check" import * as HS from "@effect/data/HashSet" import * as S from "@effect/schema/Schema"
const Person = S.struct({ name: S.string, age: S.number, }) type Person = S.To<typeof Person>
test("hashset person", () => fc.assert( fc.property(fc.string(), fc.integer(), (name, age) => { const p = S.parse(Person)({ name, age }) const pClone = S.parse(Person)({ name, age }) const set = HS.fromIterable<Person>([p]) expect(HS.has(set, pClone)).toBe(true) }) ))