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 a123493 commit b79409aCopy full SHA for b79409a
clash-lib/src/Clash/Netlist/BlackBox/Util.hs
@@ -988,7 +988,7 @@ prettyElem
988
:: (HasCallStack, Monad m)
989
=> Element
990
-> Ap m Text
991
-prettyElem (Text t) = return t
+prettyElem (Text t) = return $ Text.replace "[" "[\\" $ Text.replace "]" "\\]" t
992
prettyElem (Component (Decl i 0 args)) = do
993
args' <- mapM (\(a,b) -> (,) <$> prettyBlackBox a <*> prettyBlackBox b) args
994
case args' of
0 commit comments