We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb606df + a269f57 commit 1b111d4Copy full SHA for 1b111d4
src/Hie/Locate.hs
@@ -31,7 +31,7 @@ newtype Pkgs = Pkgs [FilePath]
31
deriving (Eq, Ord)
32
33
instance FromJSON Pkgs where
34
- parseJSON (Object v) = Pkgs <$> v .: "packages"
+ parseJSON (Object v) = Pkgs <$> v .:? "packages" .!= ["."]
35
parseJSON _ = fail "could not read packages from stack.yaml"
36
37
stackYamlPkgs :: FilePath -> MaybeT IO [FilePath]
0 commit comments