News for hackers. Stuff that matters.
Re:Types as Interfaces by pyrale on Tuesday July 23, 2024 @06:36AM (#41044579)
Haskell does it just fine with the HasField typeclass, but like everything Haskell, it's not always easy to find the information.

    type HasFooBar s = (HasField "_foo" s String, HasField "_bar" s String) => s

There are no comments on this comment yet.