Skip to content

Commit

Permalink
Merge pull request #4784 from commercialhaskell/no-null-compiler
Browse files Browse the repository at this point in the history
No null compiler in snapshot output
  • Loading branch information
qrilka authored Apr 29, 2019
2 parents 78a113a + 92512df commit b5da6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subs/pantry/src/Pantry/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ data SnapshotLayer = SnapshotLayer
instance ToJSON SnapshotLayer where
toJSON snap = object $ concat
[ ["resolver" .= slParent snap]
, ["compiler" .= slCompiler snap]
, maybe [] (\compiler -> ["compiler" .= compiler]) (slCompiler snap)
, ["packages" .= slLocations snap]
, if Set.null (slDropPackages snap) then [] else ["drop-packages" .= Set.map CabalString (slDropPackages snap)]
, if Map.null (slFlags snap) then [] else ["flags" .= fmap toCabalStringMap (toCabalStringMap (slFlags snap))]
Expand Down

0 comments on commit b5da6a8

Please sign in to comment.