Name: Anonymous 2017-01-18 6:20
It's a good idea to learn Haskell even if you don't like it or agree with its ideals.
getBlocks = map mkBlock . drop 1 . B.split '>' <$> B.getContents
where
mkBlock bs1 = Block h t
where (h, t) = B.break (== '\n') bs1
But if you aren't planning to do a significant amount of micro-optimisation then you don't need C. Haskell will give you the same performance, or better, and cut your development and maintenance costs by 75 to 90 percent as well.