Stable location for monomorphic foldr?
Joachim Breitner
mail at joachim-breitner.de
Thu Apr 2 07:59:02 UTC 2015
Hi,
Am Mittwoch, den 01.04.2015, 13:14 +0200 schrieb Joachim Breitner:
> 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.
in (accidentally?) private communication, Herbert suggested to use
GHC.List, which also exports foldr. GHC.List does not show up in the
haddock index, but does exist, and is likely to stay.
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/20150402/03dce07b/attachment.sig>
More information about the Libraries
mailing list