Re: repa: fromVector

2011-05-19 Thread Ben Lippmeier
On 19/05/2011, at 8:27 PM, Christian Höner zu Siederdissen wrote: > I'd like to use repa in a rather perverted mode, I guess: > > for my programs I need to be able to update arrays in place and > repeatedly perform operations on them. > Right now, it basically works like this (in ST): > > - cre

Re: repa: fromVector

2011-05-19 Thread Don Stewart
It doesn't do any copying. On Thu, May 19, 2011 at 3:27 AM, Christian Höner zu Siederdissen wrote: > Hi, > > I'd like to use repa in a rather perverted mode, I guess: > > for my programs I need to be able to update arrays in place and > repeatedly perform operations on them. > Right now, it basic

repa: fromVector

2011-05-19 Thread Christian Höner zu Siederdissen
Hi, I'd like to use repa in a rather perverted mode, I guess: for my programs I need to be able to update arrays in place and repeatedly perform operations on them. Right now, it basically works like this (in ST): - create unboxed space using "primitive" (same as unboxed vectors) - unsafefreeze

RE: Type of a HsExpr

2011-05-19 Thread Simon Peyton-Jones
Maybe you want tcRnExpr :: HscEnv -> InteractiveContext -> LHsExpr RdrName -> IO (Messages, Maybe Type) from TcRnDriver? | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of