Use fromMaybe.
Put the collection function parameter last.
Refactor findAnagrams.
Use Maybe to represent terminals.
More refactor.