mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-21 02:07:25 +03:00
Make showParens public
This commit is contained in:
parent
b7cf3588c9
commit
cef248e5a7
@ -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 ++ ")"
|
||||
|
Loading…
Reference in New Issue
Block a user