Source code on Github
{-# OPTIONS --with-K #-}
module Prelude.Hashable where

open import Prelude.Init; open SetAsType
open import Prelude.Bitstring
open import Prelude.FromN

record Hashable (A : Type ) : Type  where
  field _♯ : A  Bitstring
open Hashable ⦃...⦄ public

instance
  Hashable-ℕ : Hashable 
  Hashable-ℕ ._♯ = fromℕ