Friday 3 June 2016

Haskell: load module


By using :m (or) :module command you can load modules.
*Main> :m Data.Char
Prelude Data.Char> chr 99
'c'
Prelude Data.Char> ord 'c'
99

chr converts an integer to character, where as ord converts a character to an integer.



Previous                                                 Next                                                 Home

No comments:

Post a Comment