Hindley-Milner type system

Hindley-Milner type system is a type system used in functional programming languages that allows for automatic type inference. It's named after the British computer scientists Roger Hindley and Robin Milner, who probably never imagined their work would be reduced to a snarky dictionary entry by an overworked software engineer.

How to use it in a sentence

  • "I was trying to debug this Haskell code, but I couldn't figure out why the Hindley-Milner type system kept inferring the wrong type for my function. I guess I'll just go back to writing JavaScript and leave the type inference to the academics."

  • "Did you hear about the new startup that's building a blockchain-based, AI-powered, cloud-native programming language? They claim it has a revolutionary new type system that's like Hindley-Milner type system on steroids, but I bet it's just another overhyped project that will be forgotten in a year."

If you actually want to learn more...

  • What is Hindley-Milner? (and why is it cool?) - This video by Computerphile provides a beginner-friendly introduction to the Hindley-Milner type system and explains why it's such a powerful tool for functional programming.

  • Hindley-Milner type inference - If you're feeling masochistic, you can dive into the mathematical details of the Hindley-Milner type system on Wikipedia. Just don't blame me if you end up more confused than when you started.

  • The Hindley-Milner Type Inference Algorithm - For those who prefer their type theory in video form, this talk by Simon Peyton Jones explains how the Hindley-Milner type system works under the hood. It's like watching a magic trick being explained, except instead of pulling a rabbit out of a hat, it's pulling a type out of a function.

Note: the Developer Dictionary is in Beta. Please direct feedback to skye@statsig.com.

Join the #1 experimentation community

Connect with like-minded product leaders, data scientists, and engineers to share the latest in product experimentation.

Try Statsig Today

Get started for free. Add your whole team!

What builders love about us

OpenAI OpenAI
Brex Brex
Notion Notion
SoundCloud SoundCloud
Ancestry Ancestry
At OpenAI, we want to iterate as fast as possible. Statsig enables us to grow, scale, and learn efficiently. Integrating experimentation with product analytics and feature flagging has been crucial for quickly understanding and addressing our users' top priorities.
OpenAI
Dave Cummings
Engineering Manager, ChatGPT
Brex's mission is to help businesses move fast. Statsig is now helping our engineers move fast. It has been a game changer to automate the manual lift typical to running experiments and has helped product teams ship the right features to their users quickly.
Brex
Karandeep Anand
President
At Notion, we're continuously learning what our users value and want every team to run experiments to learn more. It’s also critical to maintain speed as a habit. Statsig's experimentation platform enables both this speed and learning for us.
Notion
Mengying Li
Data Science Manager
We evaluated Optimizely, LaunchDarkly, Split, and Eppo, but ultimately selected Statsig due to its comprehensive end-to-end integration. We wanted a complete solution rather than a partial one, including everything from the stats engine to data ingestion.
SoundCloud
Don Browning
SVP, Data & Platform Engineering
We only had so many analysts. Statsig provided the necessary tools to remove the bottleneck. I know that we are able to impact our key business metrics in a positive way with Statsig. We are definitely heading in the right direction with Statsig.
Ancestry
Partha Sarathi
Director of Engineering
We use cookies to ensure you get the best experience on our website.
Privacy Policy