3 ms·
A record field accessor is just a normal function, are you also expecting define methods with the same name within the same module? If you want an elegant solut
by issaria 11y ago
A record field accessor is just a normal function, are you also expecting define methods with the same name within the same module? If you want an elegant solution, write a typeclass. You have to write you java in the haskell way. https://wiki.haskell.org/Name_clashes_in_record_fields https://wiki.haskell.org/Name_clashes_in_record_fields