Skip to content

Commit

Permalink
fix: remove extra quotes around json imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aboeglin committed May 5, 2024
1 parent ac83e20 commit d0d7775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main/Parse/Madlib/AST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ generateJsonAssignments _ [] = return []
generateJsonAssignments pathUtils ((Source area sourceTarget (DefaultImport (Source _ _ name) _ absPath)):imps) = do
next <- generateJsonAssignments pathUtils imps
jsonContent <- readFile pathUtils absPath
let var = Source area sourceTarget (LStr $ "\"" <> escapeJSONString jsonContent <> "\"")
let var = Source area sourceTarget (LStr $ escapeJSONString jsonContent)
let assignment = Source area sourceTarget (Assignment name var)

return $ assignment : next
Expand Down

0 comments on commit d0d7775

Please # to comment.