Programming R at native speed using Haskell