Why DuplicateRecordFields cannot have type inference?
问题 Related post: How to disambiguate selector function? https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/DuplicateRecordFields However, we do not infer the type of the argument to determine the datatype, or have any way of deferring the choice to the constraint solver. It's actually annoying that this feature is not implemented. I tried to look up multiple sources but I could not find a reason why they decide not to infer types. Does anyone know a good reason for this? Is it