parsePOSIXTime ByteString conversion
Some easy (though tiny) speed wins. Sponsored-by: Luke T. Shumaker on Patreon
This commit is contained in:
parent
d3de3c28eb
commit
77e9781ae2
13 changed files with 22 additions and 16 deletions
|
@ -320,7 +320,7 @@ readTransferInfo mpid s = TransferInfo
|
|||
bits = splitc ' ' firstline
|
||||
numbits = length bits
|
||||
time = if numbits > 0
|
||||
then Just <$> parsePOSIXTime =<< headMaybe bits
|
||||
then Just <$> parsePOSIXTime . encodeBS =<< headMaybe bits
|
||||
else pure Nothing -- not failure
|
||||
bytes = if numbits > 1
|
||||
then Just <$> readish =<< headMaybe (drop 1 bits)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue