Mark Karpov wrote in his article on Migrating text metrics to pure Haskell how he originally did foreign calls out to C… The blog post also links to another article where the author rewrote his Haskell library with pure Haskell, along with some microbenchmarks. They are very interesting and I definitely learnt a few things, but they fall short on their benchmark methodologies. Cross-language bench
![When competing with C, fudge the benchmark](https://cdn-ak-scissors.b.st-hatena.com/image/square/19c08dbc847e8d2ee313d8a4f8fbc95b31ab9429/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A674%2F1%2AevIfyRO0QUYphPwCSeoKBw.png)