I\'m curious about the \'undefined\' value in Haskell. Its interesting because you can put it just about anywhere, and Haskell will be happy. The following are all a-ok
Therefore, I suppose that it's just implemented as throwing an exception:
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#g:2