{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, MagicHash #-}
module GHC.Char
(
chr
, eqChar, neChar
) where
import GHC.Base
import GHC.Show
chr :: Int -> Char
chr :: Int -> Char
chr i :: Int
i@(I# i# :: Int#
i#)
| Int# -> Bool
isTrue# (Int# -> Word#
int2Word# Int#
i# Word# -> Word# -> Int#
`leWord#` 0x10FFFF##) = Char# -> Char
C# (Int# -> Char#
chr# Int#
i#)
| Bool
otherwise
= [Char] -> Char
forall a. [Char] -> a
errorWithoutStackTrace ("Prelude.chr: bad argument: " [Char] -> [Char] -> [Char]
forall a. [a] -> [a] -> [a]
++ Int -> Int -> [Char] -> [Char]
showSignedInt (Int# -> Int
I# 9#) Int
i "")