Haskell: Convert Unicode Integer to Actual Unicode Character

Suppose my Haskell function is given an input, which should be the number of the Unicode code point. How can I convert this to the corresponding character?

Example:

123 to '{'.

+3
source share
1 answer

Use toEnum. ( Charimplement class Enum.)

+5
source

Source: https://habr.com/ru/post/1738851/


All Articles