"Some logic was borrowed from Hugs and GHC where such information was provided as a l" . . . .