RE: Which of the following PrimTyCons have a pointer-sized representations

2012-12-07 Thread Simon Peyton-Jones
You can use TyCon.tyConPrimRep, followed by primRepSizeW Simon | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell- | users-boun...@haskell.org] On Behalf Of Johan Tibell | Sent: 06 December 2012 23:47 | To: glasgow-haskell-users | Subject:

Re: Emitting constants to the .data section from the NatM monad

2012-12-07 Thread Simon Marlow
On 06/12/12 22:11, Johan Tibell wrote: On Thu, Dec 6, 2012 at 1:34 PM, Simon Marlow marlo...@gmail.com wrote: So are you going to add the two missing MachOps, MO_UF_Conv MO_FU_Conv? I'm trying to add those. I'm now thinking that I will use C calls (which is still much faster than going via

Re: Which of the following PrimTyCons have a pointer-sized representations

2012-12-07 Thread Johan Tibell
On Fri, Dec 7, 2012 at 3:36 AM, Simon Peyton-Jones simo...@microsoft.com wrote: You can use TyCon.tyConPrimRep, followed by primRepSizeW Looking at primRepSizeW I see that the only PrimRep that is bigger than one word is Doubles, Int64s, and Word64s on 32-bit platforms. Manuel (I think wisely)

GHCI segfault on Double math

2012-12-07 Thread Ron Alford
I'm trying to see if this is reproducible, or it's just my machine. I'm on a MacBook Pro (15-inch, Mid 2012), OS X 10.8.2, Haskell Platform 2012.4.0.0 (32 bit): $ ghci GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package

Re: GHCI segfault on Double math

2012-12-07 Thread Ian Lynagh
Hi Ron, On Fri, Dec 07, 2012 at 03:33:01PM -0500, Ron Alford wrote: I'm trying to see if this is reproducible, or it's just my machine. This sounds like http://hackage.haskell.org/trac/ghc/ticket/7043 Thanks Ian ___ Glasgow-haskell-users

Re: proposal: separate lists for ghc-cvs commits and ghc-dev chatter

2012-12-07 Thread Ian Lynagh
On Thu, Dec 06, 2012 at 09:15:06PM +, Simon Marlow wrote: On 06/12/12 17:04, Ian Lynagh wrote: It's true that we do give e-mailing it as a (less preferred) way for users to submit a bug on http://hackage.haskell.org/trac/ghc/wiki/ReportABug but I wonder if we shouldn't change that.

Re: Which of the following PrimTyCons have a pointer-sized representations

2012-12-07 Thread Johan Tibell
On Fri, Dec 7, 2012 at 10:48 AM, Johan Tibell johan.tib...@gmail.com wrote: On Fri, Dec 7, 2012 at 3:36 AM, Simon Peyton-Jones simo...@microsoft.com wrote: You can use TyCon.tyConPrimRep, followed by primRepSizeW Looking at primRepSizeW I see that the only PrimRep that is bigger than one