April 30, 2019
Readable Constrained Wrapper Types
        One key element of making impossible states impossible in OCaml is to wrap broad types into narrower ones. Here’s a strategy I use to achieve this with minimal boilerplate.
        
		
        
      
    © 2008-2023 Stéphane Lavergne — Please ask permission before copying parts of this site.