Paul Krugman has won the Nobel Prize for economics.