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.
1 parent eb606df commit a269f57Copy full SHA for a269f57
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