An example of using foreign import prim in ghc haskell to call assembly with low overhead. See: http://brandon.si/code/almost-inline-asm-in-haskell-with-foreign-import-prim/