haskell2js working for idfunc