add attempt to use haskell function in R