add a benchmark

This commit is contained in:
Andrew Martin 2019-07-05 12:35:05 -04:00
parent 7563616836
commit ac3b03218b
6 changed files with 162 additions and 23 deletions

View file

@ -90,6 +90,8 @@ construct f = Builder
case unST (f (MutableByteArray arr) (I# off)) s0 of
(# s1, (I# n) #) -> (# s1, n #)
infixr 9 `append`
-- | Concatenate two builders.
append :: Builder n -> Builder m -> Builder (n + m)
append (Builder f) (Builder g) =