Fix #997 (pass --ghc-options -hpcdir) only on --coverage
Fix #997 (pass --ghc-options -hpcdir) only on --coverage

This patch extends `extraBuildOptions` in `Execute.hs` to accept
an extra argument of type `BuildOpts`, as well as checking if coverage
is enabled. In case it is, `-hpcdir` is passed as `--ghc-option`.

This is needed to avoid certain in-memory REPL (like
[hint](https://hackage.haskell.org/package/hint)) to choke
on that command line option.

rrnewton/stack,anton-dessiatov/stack,robstewart57/stack,Fuuzetsu/stack,AndrewRademacher/stack,kairuku/stack,keent/stack,martin-kolinek/stack,phadej/stack,luigy/stack,achernyak/stack,mathhun/stack,anton-dessiatov/stack,rvion/stack,kairuku/stack,meiersi-11ce/stack,mathhun/stack,harendra-kumar/stack,achernyak/stack,robstewart57/stack,mrkkrp/stack,sjakobi/stack,Heather/stack,sjakobi/stack,juhp/stack,meiersi-11ce/stack,Andrew-the-Ubergeek/stack,harendra-kumar/stack,narrative/stack,AndreasPK/stack,rubik/stack,vigoo/stack,phadej/stack,vigoo/stack,MichielDerhaeg/stack,supermario/stack,rrnewton/stack,lukexi/stack,MichielDerhaeg/stack,rvion/stack,supermario/stack,Andrew-the-Ubergeek/stack,AndreasPK/stack,Blaisorblade/stack,lukexi/stack,keent/stack,martin-kolinek/stack,Heather/stack,fizruk/stack,Blaisorblade/stack,mrkkrp/stack,AndrewRademacher/stack,fizruk/stack,sinelaw/stack,sinelaw/stack,Fuuzetsu/stack,deech/stack,luigy/stack,juhp/stack,deech/stack,rubik/stack,narrative/stack