
I'm trying to write a program in Haskell that writes a large file at the
end, and it seems like that output alone is taking way longer than it
should. I don't understand why Haskell shouldn't be able to write data as
quickly as C, so I wrote two test files:
-- Test.hs
import Control.Loop
import Data.ByteString.Builder
import System.IO
main :: IO ()
main =
numLoop 0 1000000 $ \_ ->
hPutBuilder stdout $ char7 ' '
// test.c
#include