Re: Record syntax and INLINE annotations

2008-06-13 Thread Bryan O'Sullivan
Simon Peyton-Jones wrote: > can you give an example? Certainly. This comes from the bloomfilter package on Hackage. type Hash = Word32 data MBloom s a = MB { hashMB :: {-# UNPACK #-} !(a -> [Hash]) , shiftMB :: {-# UNPACK #-} !Int , maskMB :: {-# UNPACK #-} !Int , bitArrayMB :

RE: Record syntax and INLINE annotations

2008-06-13 Thread Simon Peyton-Jones
kell-users@haskell.org | Subject: Re: Record syntax and INLINE annotations | | is it trac bug #2070, http://hackage.haskell.org/trac/ghc/ticket/2070 | (fixed in 6.9?) | | -Isaac | | | | Simon Peyton-Jones wrote: | > can you give an example? GHC should inline selectors, whether exported or | not, whene

Re: Record syntax and INLINE annotations

2008-06-13 Thread Isaac Dupree
is it trac bug #2070, http://hackage.haskell.org/trac/ghc/ticket/2070 (fixed in 6.9?) -Isaac Simon Peyton-Jones wrote: can you give an example? GHC should inline selectors, whether exported or not, whenever it'd help. They are implicitly defined as INLINE. Since this obviously isn’t work

RE: Record syntax and INLINE annotations

2008-06-13 Thread Simon Peyton-Jones
can you give an example? GHC should inline selectors, whether exported or not, whenever it'd help. They are implicitly defined as INLINE. Since this obviously isn’t working right, I'd like to see the code. Perhaps you can boil it down a little, and submit a ticket? Simon | -Original Me