alex icon indicating copy to clipboard operation
alex copied to clipboard

Is it feasible to qualify imports from Prelude?

Open JustusAdam opened this issue 7 years ago • 2 comments
trafficstars

Problem

I happen to use Alex in a context where I have a custom Prelude and also warnings enabled for the use of undefined and to top things off I use --pedantic when compiling on CI.

So basically its a bit inconvenient.

My question therefore is would it not be better perhaps to only use fully qualified imports and fully qualified names in the templates/lexers to avoid potential clashes with user imports/defines?

Solution

Because this is a very minor issue I'd happily take it upon myself to "implement" it, so long as there are no objections.

JustusAdam avatar Oct 04 '18 14:10 JustusAdam

Yes, I think this would be good. I'll gladly accept a PR that fully qualifies everything.

simonmar avatar Oct 15 '18 07:10 simonmar

@JustusAdam Would you still be up for this? I added qualification for all non-Prelude imports in:

  • #259

andreasabel avatar Feb 27 '24 15:02 andreasabel