Skip to content

Commit b4f0ef6

Browse files
triallaxsharkdp
authored andcommitted
Wrap Show output in parentheses
Fixes #39.
1 parent 3b19652 commit b4f0ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/BigInt.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ toBase' :: Int -> BigInt -> NonEmptyString
166166
toBase' i bi = unsafePartial fromJust $ NES.fromString $ toBase i bi
167167

168168
instance showBigInt :: Show BigInt where
169-
show x = "fromString \"" <> toString x <> "\""
169+
show x = "(fromString \"" <> toString x <> "\")"
170170

171171
foreign import biAdd :: BigInt -> BigInt -> BigInt
172172
foreign import biMul :: BigInt -> BigInt -> BigInt

0 commit comments

Comments
 (0)