First steps with Haskell text API improvement