Updated haskell implementation to use a supplied file for its language