Haskell Function Overloading In Typescript Docs