Learning Haskell is a great back-door way to learn about math, specifically abstract algebra and category theory. You'll learn about why it matters and make tons of connections between subjects you never thought were related. Plus, coming from a programming environment gives you the context you need to understand why people care.