Type Classes

Type Classes

Share this post

Type Classes
Type Classes
Java interfaces map to Haskell records

Java interfaces map to Haskell records

A toy example showing a Java-to-Haskell translation in which an interface in Java is rewritten as a record in Haskell

Chris Martin's avatar
Chris Martin
Oct 18, 2017
∙ Paid
1

Share this post

Type Classes
Type Classes
Java interfaces map to Haskell records
Share

Gabriel Gonzalez recently wrote an article entitled Advice for Haskell beginners and I was mildly surprised to see that out of four tips, one was:

Avoid typeclass abuse

On second thought, though, this is important advice. In retrospect, my inclination to use typeclasses in inappropriate ways was a big problem in my earlier Haskell days. I made this mistak…

Keep reading with a 7-day free trial

Subscribe to Type Classes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mission Valley Software LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share