Funny ha-ha or funny peculiar

When does ‘funny’ have nothing to do with laughter?