Adding location information to derived code
Jan Stolarek
jan.stolarek at p.lodz.pl
Wed Jun 10 13:12:19 UTC 2015
Hi devs,
say I have:
class C a where
type F a
type F a = a
instance C Int
During compilation of "instance C Int" GHC will derive a default associated type instance "F Int =
Int". That instance has no location information and so any errors that it might cause will have a
very uninformative source code location 1:1. I want to fix this but I'm not sure whether it is a
good idea to add location information to automatically generated code. Do we make any assumptions
that derived code should have no location information?
Janek
---
Politechnika Łódzka
Lodz University of Technology
Treść tej wiadomości zawiera informacje przeznaczone tylko dla adresata.
Jeżeli nie jesteście Państwo jej adresatem, bądź otrzymaliście ją przez pomyłkę
prosimy o powiadomienie o tym nadawcy oraz trwałe jej usunięcie.
This email contains information intended solely for the use of the individual to whom it is addressed.
If you are not the intended recipient or if you have received this message in error,
please notify the sender and delete it from your system.
More information about the ghc-devs
mailing list