We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6efcbc0 + bb57fe8 commit 2b770e6Copy full SHA for 2b770e6
src/Control/Distributed/Process/Internal/Types.hs
@@ -380,7 +380,8 @@ instance NFData Message where
380
#else
381
rnf (EncodedMessage _ e) = BSL.length e `seq` ()
382
#endif
383
- rnf (UnencodedMessage _ a) = a `seq` () -- forced to WHNF only
+ rnf (UnencodedMessage _ a) = e `seq` ()
384
+ where e = BSL.length (encode a)
385
386
instance Show Message where
387
show (EncodedMessage fp enc) = show enc ++ " :: " ++ showFingerprint fp []
0 commit comments