GHC 8.2.1-rc2 source tarball availability

2017-05-08 Thread Ben Gamari
tl;dr: If you would like to produce a binary distribution for GHC 8.2.1-rc2 then let me know, grab the source distribution and start building. The binary distributions will be announced one week from today. Hello GHC packagers, I am happy to announce the release of the 8.2.1

Re: GHC API user: How to stop simplifier from turning recursive let-bindings into mutually recursive functions

2017-05-08 Thread Christiaan Baaij
I've created a ticket for this at: https://ghc.haskell.org/trac/ghc/ticket/13663 On 8 May 2017 at 16:12, Ben Gamari wrote: > Christiaan Baaij writes: > > > Hello GHC Devs, > > > Hi! > > > So my question are: > > - Which part of the simplifier is turning these local recursive > let-binders > > i

Re: GHC API user: How to stop simplifier from turning recursive let-bindings into mutually recursive functions

2017-05-08 Thread Ben Gamari
Christiaan Baaij writes: > Hello GHC Devs, > Hi! > So my question are: > - Which part of the simplifier is turning these local recursive let-binders > into global recursive functions? The simplifier does a bit of let floating. See Simplify.simplLazyBind and SimplEnv.doFloatFromRhs. I suspect th

GHC API user: How to stop simplifier from turning recursive let-bindings into mutually recursive functions

2017-05-08 Thread Christiaan Baaij
Hello GHC Devs, First some context: I'm using the GHC API to convert Haskell to digital circuit descriptions (clash compiler). When viewed as a structural description of a circuit, recursive let-bindings can be turned into feedback loops. In general, when viewed as a structural description of a ci