Skip to content

Commit 1382e18

Browse files
committed
Pull out unpack
1 parent 793b2d8 commit 1382e18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/System/Process/Typed/Internal.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,13 @@ instance Show ExitCodeException where
620620
, show (eceProcessConfig ece) { pcEnv = Nothing }
621621
, if L.null (eceStdout ece)
622622
then ""
623-
else "Standard output:\n\n" ++ L8.unpack (eceStdout ece)
623+
else "Standard output:\n\n" ++ unpack (eceStdout ece)
624624
, if L.null (eceStderr ece)
625625
then ""
626-
else "Standard error:\n\n" ++ L8.unpack (eceStderr ece)
626+
else "Standard error:\n\n" ++ unpack (eceStderr ece)
627627
]
628+
where
629+
unpack = L8.unpack
628630

629631
-- | Wrapper for when an exception is thrown when reading from a child
630632
-- process, used by 'byteStringOutput'.

0 commit comments

Comments
 (0)