null instead of ==

Viewed 15665

I have just started to learn Haskell out of interest. I follow learnyouahaskell.com.

There I found this:

null checks if a list is empty. If it is, it returns True, otherwise it returns False. Use this function instead of xs == [] (if you have a list called xs)

Why is that? Why should we use null instead of == when both produce the same result?

Thanks.

3 Answers
Related