On Fri, Jul 04, 2014 at 01:18:09PM +0200, 'Petr Pudlak' via ganeti-devel wrote:
> For complex pure functions that update an IORef it's convenient to be
> able to log error messages. This function makes it possible by
> accumulating error messages from the pure function, threading them
> through atomicModifyIORef and logging them afterwards at once.
> 
> Signed-off-by: Petr Pudlak <[email protected]>
> ---
>  src/Ganeti/Utils/IORef.hs | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)

LGTM

-- 
Klaus Aehlig
Google Germany GmbH, Dienerstr. 12, 80331 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores

Reply via email to