
10 Apr
2010
10 Apr
'10
5:19 a.m.
Ivan Lazar Miljenovic
Daryoush Mehrtash
writes: Is there a way to persist a [IO ()] to say a file then retrieve it later and execute it using a sequence function?
I'm not sure I understand what you're wanting... you can pass around values of type "IO ()" around, but they won't be executed until you actually use them...
It sounds more like he wants two functions something like save:: FilePath -> [IO ()] -> IO () restore:: FilePath -> IO [IO ()] to which the answer would be no. -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk