Maxim Kulkin

Results 84 comments of Maxim Kulkin

I guess the problem is in this line https://github.com/schell/hdevtools/blob/master/src/Cabal.hs#L119: you need to pass --enable-tests option in cfgFlags (along with any other standard or custom options that you have in *.cabal...

This patch should fix that: https://github.com/maximkulkin/hdevtools/commit/4806bd9d152261bf3c71673af2647bd75288040f Just pass extra argument to hdevtools: ``` hdevtools check --cabalopts "--enable-tests" MyFile.hs ```

There still could be situations when this approach won't work. Currently hdevtools merges all options from all enabled artefacts in Cabal file. It could possible be situation when two artefacts...

The message you see is from GHC itself, so in order to use "-v" flag you need to pass it via `--ghcopts "-v"`

@2chilled Yes, the original author seems like have abandoned the project and you are left with option to install it from alternative repositories like @schell

I'm planning to work on this further to improve usability but it is pretty usable already.

You need to have cabal.sandbox.config next to your *.cabal file (as you normally do). Then you run hdevtools command for some file inside your cabal package and the rest is...

Right. Hdevtools depends on GHC which depends on particular Cabal version (1.16 for GHC 7.6 and 1.18 for GHC 7.8). Hdevtools cabal code depends on Cabal API which has changed....

Yes, this patch takes default language extensions defined in .cabal file into account.

@darthdeus Yes, this patch doesn't support GHC 7.8 yet. You might see "no cabal support" in output of "hdevtools --version". I plan to work on this in near future.