Skip to content

Commit

Permalink
Update renderKeySetName to make the roundtrip more faithful
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Nov 27, 2023
1 parent 4db6f64 commit 405f213
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pact-core/Pact/Core/Guards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ instance Pretty KeySetName where
pretty (KeySetName ks (Just ns)) = "'" <> pretty ks <> "." <> pretty ns

renderKeySetName :: KeySetName -> Text
renderKeySetName = _keysetName
renderKeySetName (KeySetName n Nothing) = n
renderKeySetName (KeySetName n (Just ns)) = _namespaceName ns <> "." <> n

keysetNameParser :: Parser KeySetName
keysetNameParser = qualified <|> withoutNs
Expand Down

0 comments on commit 405f213

Please sign in to comment.