[Haskell-beginners] pipe and IO

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Tue Mar 22 17:12:22 UTC 2016


> getDataFrameHkl3D :: DataFrameHkl3DH5SixsUhv -> Producer DataFrameHkl3D IO ()
> getDataFrameHkl3D d = do
>   n <- lift $ hkl_h5_len (h5mu d)
>   forM_ [0..n] (\i -> lift (getDataFrameHkl3D' d i) >>= yield)

Yes I prefer this one because the getDataFrameHkl3D' will take plenty of memory (big images)

thanks a lot

Frederic


More information about the Beginners mailing list