a person who makes and sells hats
mad as a hatter
completely mad
[strongly associated with the hatter in Lewis Carroll's 1865 story Alice's Adventures in Wonderland, but the phrase is found earlier, e.g. in Thomas Hughes's Tom Brown's Schooldays (1857). There may be a connection with the notion that hat-making could cause mercury poisoning because of the nitrate fumes given off in the manufacture of felt.]