HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Char

Agda strings uses Data.Text [1], which can only represent unicode scalar values [2], excluding the surrogate code points 3. To allow primStringFromList to be injective we make sure character values also exclude surrogate code points, mapping them to the replacement character U+FFFD.

See #4999 for more information.

1

https://hackage.haskell.org/package/text-1.2.4.0/docs/Data-Text.html#g:2

2

https://www.unicode.org/glossary/#unicode_scalar_value

3

https://www.unicode.org/glossary/#surrogate_code_point

  • 4 values
  • PackageAgda-2.7.0.1
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceChar.hs
valueintegerToChar :: Integer -> Char
#

Total function to convert an integer to a character. Maps surrogate code points to the replacement character U+FFFD.