Avi-D-coder / implicit-hie

Auto generate a stack or cabal multi component hie.yaml file
BSD 3-Clause "New" or "Revised" License
201 stars 17 forks source link

Don't generate a Cradle based on .cabal file if cabal version >= 3.4 #42

Open fendor opened 2 years ago

fendor commented 2 years ago

Since https://github.com/haskell/cabal/issues/6622 has been merged, cabal repl works reliably for file paths that are part of a cabal project. Thus, implicit-hie should generate (at least within HLS) only the most basic cabal cradle, and not attempt parsing .cabal file and generate a multi-cradle based on the .cabal file.

This way we reduce the surface for errors in implicit-hie quite considerably. (probably a bit faster too)

For the gen-hie utility, probably nothing should be changed.