Changed argument type to char* for easier call from haskell