Predefined Functions on Numbers
Apart from the arithmetic operators
/, there are quite a few useful predefined functions for working with numbers. These functions live in a predefined Haskell module called Prelude. When starting
ghci, it loads the Prelude module by default, which is why you also see it displayed in the prompt of
Once again, here is a terminal widget, which you can use to run
ghci and try out the functions introduced in this lesson.