Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created February 22, 2014 16:45
Show Gist options
  • Select an option

  • Save danidiaz/9157819 to your computer and use it in GitHub Desktop.

Select an option

Save danidiaz/9157819 to your computer and use it in GitHub Desktop.
:m + System.Process System.Process.Streaming Control.Concurrent.Async
:set prompt #
let z = (async (execute (proc "gvim" []) show $ separate purge purge)) >>= \a -> threadDelay (10^6) >> cancel
a <- async $ execute (proc "gvim" []) show $ separate purge purge
cancel a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment