Does ord no longer exist in the latest version of Haskell?

I came across this

When I tried to run it using GHCi it gave me an error. In the book it states that it is a library function.
I am getting an error. Has ord been deprecated ?

It just lives its little life in Data.Char. You should hoogle it next time. =)


I see.
I was still stuck on how to use it though. I stacked overflowed my way to the answer.
I had to import it .

import Data.Char

Yes indeed, it lives in its own module hierarchy and isn’t re-exported by the Prelude