Assuming you are at the gear level to reach 13,163 haste reasonably, stat weights should be:
Int > Haste to 13,163 > Spirit to comfort > Mastery > Crit > More Spirit > More Haste
Secondary stats come in above INT in situations where you get them at a 2:1 ratio (i.e. you should gem Haste/Mastery over gemming pure INT). The comfort level for Spirit varies by playstyle, but is probably in the 11,000 to 16,000 range. I would just plug in 14,000 if you have no idea what to use.