Skip to content

Commit 982d89a

Browse files
qrilkaangerman
authored andcommitted
Use root package by default for Stack (#41)
1 parent 56b2a0c commit 982d89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack2nix/Stack2nix/Stack.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ instance FromJSON Stack where
165165
parseJSON = withObject "Stack" $ \s -> Stack
166166
<$> s .: "resolver"
167167
<*> s .:? "compiler" .!= Nothing
168-
<*> ((<>) <$> s .:? "packages" .!= []
168+
<*> ((<>) <$> s .:? "packages" .!= [LocalPath "."]
169169
<*> s .:? "extra-deps" .!= [])
170170

171171
instance FromJSON StackSnapshot where

0 commit comments

Comments
 (0)