run another program from within haskell program

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

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
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

On Wed, 4 Aug 2010 07:15:48 -0400
matthew coolbeth
I've never tried, but this blog post seems to do the right thing
thx matthew! i found another way from real world haskell ch 20: import System.Cmd (rawSystem) ... rawSystem "vim" [fileName] when i save and exit vim, i'm returned to where i left off! -- 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
participants (2)
-
matthew coolbeth
-
prad