git clone https://github.com/sboosali/Haskell-NSSpeechRecognizer
cd Haskell-NSSpeechRecognizer
stack setup && stack build && stack exec -- NSSpeechRecognizer-example
# also, you may need to authorize "accessibility features"
running the example will listen for "testing" (and a few other phrases) and print to stdout. say "help" to view the set of phrases being listened for.
the example program is at NSSpeechRecognizer.Example.
TODO