Toy program in Haskell using tries to implement some autocompletion stuff