A 'Char' in Haskell represents a single Unicode code point.

On Sun, Dec 26, 2010 at 10:04 AM, michael rice <[email protected]> wrote:

> How are characters encoded?
>
> *Main System.Random Control.Monad.State.Lazy> random (mkStdGen 0) ::
> (Char,StdGen)
> ('\64685',40014 40692)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\1052295',1601120196 1655838864)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\639025',1346387765 2103410263)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\625672',439883729 1872071452)
>
> Michael
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to