I'm trying to get a handle on the basics of Haskell by creating a Notational Velocity style find-as-you-type file search on the command line. Instead of tackling the whole problem, I'm trying a very basic version of it: There exists a file with 10 lines, and a 3 letter word on each line. After each letter I type, I want to update the display of a list of line numbers that might contain the word I'm typing, based on my input so far.
Can someone demonstrate a Haskell program that does this? I think my problem lies in forcing reevaluation on every character input. Thanks a million in advance.