I&#39;ve never tried,  but this blog post seems to do the right thing:<div><br></div><div><a href="http://therning.org/magnus/archives/727">http://therning.org/magnus/archives/727</a><br><br><div class="gmail_quote">On Wed, Aug 4, 2010 at 03:10, prad <span dir="ltr">&lt;<a href="mailto:prad@towardsfreedom.com">prad@towardsfreedom.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">i have downloaded data from postgresql into a file my haskell program.<br>
i can of course edit this file with say vim.<br>
<br>
can i run vim on that file from within haskell and after quiting vim<br>
have control returned to my haskell program?<br>
<br>
the situation is like calling vim to edit my claws-mail emails instead<br>
of using the native editor. after editing, i quit the external editor<br>
and am returned to the native editor.<br>
<br>
--<br>
In friendship,<br>
prad<br>
<br>
                                      ... with you on your journey<br>
Towards Freedom<br>
<a href="http://www.towardsfreedom.com" target="_blank">http://www.towardsfreedom.com</a> (website)<br>
Information, Inspiration, Imagination - truly a site for soaring I&#39;s<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>mac<br>
</div>