Supports GHC 7.8.3 and cabal sandboxes - #33
Conversation
Updates to GHC API Pretty.showDoc
Currently search for .cabal file is done from current directory which requires that hdevtools is run from package directory or it's subdirectory which is not always easy to achieve when hdevtools is run from inside editor. This fix changes search logic so that .cabal file is searched starting from target file's directory (for commands that have target file) or from current directory for other commands.
This allows running hdevtools first time from anywhere, not just from cabal package's (sub)directory.
grodin
commented
Aug 29, 2014
Any news on whether this will get merged, and if so when? |
schell
commented
Aug 29, 2014
grodin
commented
Aug 29, 2014
Great to know! On Sat, Aug 30, 2014 at 12:09 AM, Schell Carl Scivally <
|
dpnova
commented
Sep 7, 2014
Noob checking in here - what's the best way to get this version onto my local env? Cheers :) |
rgoulter
commented
Sep 10, 2014
@dpnova Since this PR is branch Should do the trick. |
dpnova
commented
Sep 11, 2014
Thanks @rgoulter :) |
schell
commented
Sep 23, 2014
This has been uploaded to hackage and is included in master on my fork at https://github.com/schell/hdevtools. I'm keeping this open though, as I'm not sure how else to handle it. |
real-or-random
commented
Jan 3, 2015
The handling of subdirectories does not really work for me: Assume the current folder contains .cabal file and .cabal-sandbox directory. Any ideas? |
schell
commented
Jan 3, 2015
@real-or-random - hmmm. I think the only way for hdevtools to respect a cabal file in parent directories is for it to look for the cabal file recursively up the filesystem. I can imagine that someone may have a cabal file somewhere in a parent directory while working on a project without a cabal file, which would cause a bit of a mix up. Do you think that case is rare enough not to worry about? |
maximkulkin
commented
Jan 3, 2015
real-or-random
commented
Jan 3, 2015
It's the current hdevtools-0.1.0.6 from hackage; I did a clean re-install to verify. The layout is pretty standard: |
schell
commented
Jan 7, 2015
@maximkulkin the patch is applied - https://github.com/schell/hdevtools/commits/master |
Includes updates for GHC 7.8.3 and cabal support from @maximkulkin's https://github.com/maximkulkin/hdevtools/tree/cabal-support