I've never tried,  but this blog post seems to do the right thing:

http://therning.org/magnus/archives/727

On Wed, Aug 4, 2010 at 03:10, prad <prad@towardsfreedom.com> wrote:
i have downloaded data from postgresql into a file my haskell program.
i can of course edit this file with say vim.

can i run vim on that file from within haskell and after quiting vim
have control returned to my haskell program?

the situation is like calling vim to edit my claws-mail emails instead
of using the native editor. after editing, i quit the external editor
and am returned to the native editor.

--
In friendship,
prad

                                     ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners



--
mac