[Haskell-beginners] Can I lift this interestingly typed function into a Maybe?