A Thue implementation written in Haskell.