by hota_mazi · 9y ago · 0 comments
data Human = Human {name :: String}
data Dog = Dog {name :: String}
is illegal, because they can't both have a field accessor called `name`.That's... crazy.
Pragmatically, it's really annoying. There's a solution in the space between pure (a la Haskell) and magical (a la Scala) that makes sense. I think Idris might have found it.