Ivan Lazar Miljenovic <[email protected]> writes:

> Daryoush Mehrtash <[email protected]> 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                                 [email protected]


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to