Stable location for monomorphic foldr?
Joachim Breitner
mail at joachim-breitner.de
Wed Apr 1 11:14:47 UTC 2015
Hi,
I just stumbled over a FTP breakage: A RULES with "foldr" on the left
hand side would no longer fire, because it would refer to
Foldable.foldr, and not the monomorphic foldr.
Adding
#if MIN_VERSION_base(4,8,0)
import Prelude hiding (foldr)
import GHC.OldList (foldr)
#endif
to the file solved the problem for now, but GHC.OldList is supposed to
go away eventually, so I believe we need a permanent location for the
monomorphic foldr.
Or will we simply not get rid of GHC.OldList at all?
(One could argue that "foldr" on the left-hand-side of a RULE should
work and that this is a GHC bug, though.)
Greetings,
Joachim
--
Joachim “nomeata” Breitner
mail at joachim-breitner.de • http://www.joachim-breitner.de/
Jabber: nomeata at joachim-breitner.de • GPG-Key: 0xF0FBF51F
Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150401/72076c06/attachment.sig>
More information about the Libraries
mailing list