[Haskell-beginners] How to process a list that contains "undefined" values?