Perhaps not quite what you need, but in case the quick jump function is enough, try this as the first fix (called :sbh ):
:def sbh (\arg -> return ("System.Directory.setCurrentDirectory \"Desktop/Sandbox/Haskell\""))
Your later solution may use the arg link, as in:
:def sbh (\arg -> return ("System.Directory.setCurrentDirectory " ++ "\"" ++ args ++ "\""))
Call the last one which is on :sbh Desktop/Sandbox/Haskell then.
source share