Skip to content

Commit 0260b66

Browse files
committed
Fix missing space in exception showing.
Before: CppStdException e "my message"(Just "std::runtime_error") After: CppStdException e "my message" (Just "std::runtime_error")
1 parent ef87fba commit 0260b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inline-c-cpp/src/Language/C/Inline/Cpp/Exception.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data CppException
4141
| CppNonStdException CppExceptionPtr (Maybe ByteString)
4242

4343
instance Show CppException where
44-
showsPrec p (CppStdException _ msg typ) = showParen (p >= 11) (showString "CppStdException e " . showsPrec 11 msg . showsPrec 11 typ)
44+
showsPrec p (CppStdException _ msg typ) = showParen (p >= 11) (showString "CppStdException e " . showsPrec 11 msg . showChar ' ' . showsPrec 11 typ)
4545
showsPrec p (CppHaskellException e) = showParen (p >= 11) (showString "CppHaskellException " . showsPrec 11 e)
4646
showsPrec p (CppNonStdException _ typ) = showParen (p >= 11) (showString "CppOtherException e " . showsPrec 11 typ)
4747

0 commit comments

Comments
 (0)