A pure-Haskell (no FFI) module for accessing terminfo databases