RE: Type family constraints

2018-04-23 Thread Simon Peyton Jones via ghc-devs
I’m afraid I don’t understand the question. type instance XIPBinds (GhcPass 'Parsed) = NoExt type instance XIPBinds (GhcPass 'Renamed) = NoExt type instance XIPBinds (GhcPass 'Typechecked) = TcEvBinds it works fine for type instance XIPBinds (GhcPass _) = NoExt You

RE: primitive library

2018-04-23 Thread Simon Peyton Jones via ghc-devs
This got longer than I thought it would. I'll work on something that talks more about motivations and features soon. That would be great, thanks. It would also mean that more people would use the new stuff, sooner. Simon From: Andrew Martin Sent: 23 April 2018

Re: Eight GHC projects for Google Summer of Code

2018-04-23 Thread Alan & Kim Zimmerman
Congratulations to all. I look forward to seeing these move forward. Alan On 23 April 2018 at 18:55, Matthew Pickering wrote: > Hi all, > > I am glad to report that eight GHC related projects have been selected > for this years GSoC. > > Chitrak Gupta - Help

Eight GHC projects for Google Summer of Code

2018-04-23 Thread Matthew Pickering
Hi all, I am glad to report that eight GHC related projects have been selected for this years GSoC. Chitrak Gupta - Help Hadrian - https://summerofcode.withgoogle.com/projects/#4778106259243008 Alanas Plascinskas - Depecating Exports -

Re: Type family constraints

2018-04-23 Thread Alan & Kim Zimmerman
Thanks Richard Ryan Scott has also put together a solution[1], which is basically what you proposed. But in terms of trying to clean up the code by removing a straightforward constraint type, I think this solution adds more complexity than it removes. So I will leave it as it is. Alan [1]

Re: primitive library

2018-04-23 Thread David Feuer
I think the areas in the primitive library demonstrate a part of the array design space that seems to have gone relatively unexplored in Haskell: plain old vectors. Unlike the vector library, there is no stream fusion framework. Unlike the array library, there is no class-based reliance on

Re: Type family constraints

2018-04-23 Thread Richard Eisenberg
> On Apr 23, 2018, at 6:56 AM, Alan & Kim Zimmerman wrote: > > Is there any way to express that `pass` must be valid for each value of > `Pass` in the following instance head? > No, there isn't. And for good reason: whatever you're trying to do likely requires some

Re: Plan for GHC 8.6.1

2018-04-23 Thread Matthew Pickering
Perhaps Nested CPR will be ready :) ? https://phabricator.haskell.org/D4244 I am also working on the linear types branch. Arnaud is quite keen for it to be ready for 8.6 but we still have a bit to go. Cheers, Matt On Fri, Apr 20, 2018 at 1:26 AM, Ben Gamari wrote: > Hello

Type family constraints

2018-04-23 Thread Alan & Kim Zimmerman
Given data GhcPass (c :: Pass) deriving instance Eq (GhcPass c) deriving instance Typeable c => Data (GhcPass c) data Pass = Parsed | Renamed | Typechecked deriving (Data) Is there any way to express that `pass` must be valid for each value of `Pass` in the following instance head?

primitive library

2018-04-23 Thread Simon Peyton Jones via ghc-devs
Andrew, David I've seen a lot of traffic about the primitive library, in which you two are playing a leading role. Clearly something interesting is going on, but I have not been paying enough attention to work out what. Maybe lots of unrelated things? Maybe a handful of closely related