[Haskell-beginners] How to interact with a process

Martin Drautzburg Martin.Drautzburg at web.de
Fri Feb 1 21:57:38 CET 2013

On Wednesday, 30. January 2013 23:51:03 David McBride wrote:
> Then the answer depends on how you are going about playing midi.
> 1. Is the api call for this playMidiFile :: FilePath -> IO (), where it
> waits until the file finishes before it returns?
> You may have to spawn a thread (forkIO) before you play, save it's threadId
> in some sort of state and then attempt to kill it from the input thread
> when the time comes.

Yes, my player is a function from Something to IO(), so forkIO is what I was 
looking for.


More information about the Beginners mailing list