classP recently deleted from TH.Lib
Simon Peyton Jones
simonpj at microsoft.com
Mon May 12 14:51:25 UTC 2014
I suspect it was accidental, but Richard will doubtless say in due course
Simon
From: ghc-devs [mailto:ghc-devs-bounces at haskell.org] On Behalf Of Johan Tibell
Sent: 12 May 2014 15:35
To: Gabor Greif
Cc: ghc-devs
Subject: Re: classP recently deleted from TH.Lib
That would be nice. I had to fix some breakage caused by this in one of Bryan's libraries.
On Mon, May 12, 2014 at 4:12 PM, Gabor Greif <ggreif at gmail.com<mailto:ggreif at gmail.com>> wrote:
The last two commits from (Apr 9) on
<https://github.com/ghc/packages-template-haskell/commits/master/Language/Haskell/TH/Lib.hs>
removed a helper to construct applied type class constraints (`classP`).
Some packages (notably `llvm-general-pure`) though, depend on it.
Can we add back something like this:
{{{
classP :: Name -> [Q Type] -> Q Pred
classP cla tys
= do
tysl <- sequence tys
return (foldl' AppT (ConT cla) tysl)
}}}
and export it again? Or is there such a helper with a different name already?
Cheers,
Gabor
_______________________________________________
ghc-devs mailing list
ghc-devs at haskell.org<mailto:ghc-devs at haskell.org>
http://www.haskell.org/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140512/dcb9f3a9/attachment-0001.html>
More information about the ghc-devs
mailing list