Skip to content

Commit 1b111d4

Browse files
authored
Merge pull request #16 from DunetsNM/fix/stack-packages-default
if stack packages missing assume it is ["."]
2 parents eb606df + a269f57 commit 1b111d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hie/Locate.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ newtype Pkgs = Pkgs [FilePath]
3131
deriving (Eq, Ord)
3232

3333
instance FromJSON Pkgs where
34-
parseJSON (Object v) = Pkgs <$> v .: "packages"
34+
parseJSON (Object v) = Pkgs <$> v .:? "packages" .!= ["."]
3535
parseJSON _ = fail "could not read packages from stack.yaml"
3636

3737
stackYamlPkgs :: FilePath -> MaybeT IO [FilePath]

0 commit comments

Comments
 (0)