What dictionary can say about phrase

as mad as a hatter