How do you control fruit flies in a compost bin

How do you control fruit flies in a compost bin

How do you control fruit flies in a compost bin