Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 53bca49

Browse files
committed
Look for a stack.yaml before selecting .cabal location as project root
1 parent 310450e commit 53bca49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hie-plugin-api/Haskell/Ide/Engine/Cradle.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ findCabalHelperEntryPoint fp = do
235235
isStackProject (Ex ProjLocStackYaml {}) = True
236236
isStackProject _ = False
237237

238-
isCabalNewProject (Ex ProjLocV2Dir {}) = True
239238
isCabalNewProject (Ex ProjLocV2File {}) = True
240239
isCabalNewProject _ = False
241240

242241
isCabalOldProject (Ex ProjLocV1Dir {}) = True
243242
isCabalOldProject (Ex ProjLocV1CabalFile {}) = True
243+
isCabalOldProject (Ex ProjLocV2Dir {}) = True
244244
isCabalOldProject _ = False
245245

246246
{- | Given a FilePath, find the cradle the FilePath belongs to.

0 commit comments

Comments
 (0)