constraints-0.14.2: Constraint manipulation
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Constraint.Char

Description

Utilities for working with KnownChar constraints.

This module is only available on GHC 9.2 or later.

Synopsis

Documentation

type family CharToNat (a :: Char) :: Natural where ... #

Convert a character to its Unicode code point (cf. ord)

Since: base-4.16.0.0

type family NatToChar (a :: Natural) :: Char where ... #

Convert a Unicode code point to a character (cf. chr)

Since: base-4.16.0.0

natToChar :: forall n. (n <= 1114111, KnownNat n) :- KnownChar (NatToChar n) Source #