mirror of
https://github.com/Avi-D-coder/implicit-hie.git
synced 2024-11-26 00:04:23 +03:00
default to cabal if stack.yaml not found
This commit is contained in:
parent
a1fa2b9a17
commit
53996020b6
@ -18,7 +18,8 @@ main = do
|
||||
sOrC =
|
||||
if | any ((".stack-work" ==) . takeFileName) files -> stackHieYaml
|
||||
| any (("dist-newstyle" ==) . takeFileName) files -> cabalHieYaml
|
||||
| otherwise -> stackHieYaml
|
||||
| any (("stack.yaml" ==) . takeFileName) files -> stackHieYaml
|
||||
| otherwise -> cabalHieYaml
|
||||
when (null path) $ error "No .cabal file found!\n You may need to run stack build."
|
||||
file <- T.readFile $ head path
|
||||
case parseOnly parsePackage file of
|
||||
|
Loading…
Reference in New Issue
Block a user