changed function to be compliant with latest haskell github api