[Haskell-cafe] memory issues

Don Stewart dons at galois.com
Fri Feb 27 18:18:37 EST 2009


bulat.ziganshin:
> Hello Rogan,
> 
> Saturday, February 28, 2009, 1:18:47 AM, you wrote:
> 
> > data Block = Block {
> >       offset::Integer
> >     , size::Integer
> >     } deriving (Eq)
> 
> try
>        !offset::Integer
>      , !size::Integer
> 

    offset :: !Integer

And possibly just using {-# UNPACK #-}!Int64 would be ok?

-- Don


More information about the Haskell-Cafe mailing list