ghcid icon indicating copy to clipboard operation
ghcid copied to clipboard

Can I make PR? --wait to run a command on a compile finished

Open aiya000 opened this issue 5 years ago • 6 comments

Hi, I'm a ghcid user, thanks :smiley:

I'm planning to make PR for below --wait. Can I implement this?


My thinking --wait is a command specification, the command is executed after a compile finished (after --verbose's %WAIT shew).

e.g.

$ cd some-haskell-project
$ ghcid --wait='notify-send "finished!"'

...

Foo.hs:11:1-49: warning: [-Wunused-imports]
    The import of ‘Bar’ from module ‘Baz’ is redundant
    ...

# "finished" shows my desktop at here.

# And I fixed the warning.

...

All good!

# "finished" shows my desktop at here too.

I want to this --wait, because I have an issue (https://github.com/aiya000/vim-ghcid-quickfix/pull/15). That issue needs to --wait to fix :joy:

Thanks!

aiya000 avatar May 23 '19 13:05 aiya000