made it compile with ghc-6.10 via a handwritten Show instance
replaced foldrWithKey by foldWithKey for ghc-6.10
used non-GHC import
changed layout for older ghcs
avoid text dependency
changed import