{-# OPTIONS --safe #-} module Prelude.ToN where open import Prelude.Init; open SetAsType record Toℕ (A : Type ℓ) : Type ℓ where field toℕ : A → ℕ open Toℕ ⦃...⦄ public instance Toℕ-ℕ : Toℕ ℕ Toℕ-ℕ .toℕ = id Toℕ-Char : Toℕ Char Toℕ-Char .toℕ = Ch.toℕ Toℕ-Fin : ∀ {n} → Toℕ (Fin n) Toℕ-Fin .toℕ = F.toℕ Toℕ-Word : Toℕ Word64 Toℕ-Word .toℕ = Word.toℕ open Meta Toℕ-Meta : Toℕ Meta Toℕ-Meta .toℕ = Meta.Meta.toℕ