Make showParens public

This commit is contained in:
Mark Barbone 2020-08-03 02:53:12 -04:00 committed by G. Allais
parent b7cf3588c9
commit cef248e5a7

View File

@ -63,6 +63,7 @@ interface Show ty where
||| Surround a `String` with parentheses depending on a condition.
||| @ b whether to add parentheses
export
showParens : (1 b : Bool) -> String -> String
showParens False s = s
showParens True s = "(" ++ s ++ ")"