[Haskell-cafe] MRP, 3-year-support-window, and the non-requirement of CPP
svenpanne at gmail.com
Wed Oct 7 08:07:38 UTC 2015
2015-10-07 9:35 GMT+02:00 Herbert Valerio Riedel <hvr at gnu.org>:
> Btw, I've also seen the trick below, in which you use the aliased `A.`
> prefix just once so GHC considers the import non-redundant, and don't
> have to suffer from prefixed operators in the style of `A.<*>`.
> Is this any better? [...]
While not perfect, it's much better than having to fiddle around with
Prelude imports. Although there's the slight danger that somebody else (or
the author 1 year later) looks at the code and has a WTF-moment... ;-) To
be honest, while it's somehow obvious how it works when you read it, I've
never seen that trick. Perhaps stuff like this belongs into some general
"Porting Guide", along with its alternatives. It's general enough that it
should not be buried in some AMP/FTP/return/... transitioning guide.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe