From 6efeb0125aba189b3cebf133846f49148ef24c89 Mon Sep 17 00:00:00 2001 From: mhmdanas Date: Tue, 3 May 2022 03:46:11 +0300 Subject: [PATCH] Wrap `Show` output in parentheses Fixes https://github.com/sharkdp/purescript-bigints/issues/39. --- src/Data/BigInt.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/BigInt.purs b/src/Data/BigInt.purs index a837d86..1278ce0 100644 --- a/src/Data/BigInt.purs +++ b/src/Data/BigInt.purs @@ -166,7 +166,7 @@ toBase' :: Int -> BigInt -> NonEmptyString toBase' i bi = unsafePartial fromJust $ NES.fromString $ toBase i bi instance showBigInt :: Show BigInt where - show x = "fromString \"" <> toString x <> "\"" + show x = "(fromString \"" <> toString x <> "\")" foreign import biAdd :: BigInt -> BigInt -> BigInt foreign import biMul :: BigInt -> BigInt -> BigInt