Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - How run "C:/path> ghc haskellfile.hs" ?

Reply
 
Old 08-13-2008   #1 (permalink)
ssecorp


 
 

How run "C:/path> ghc haskellfile.hs" ?

What do I need to do to be able to run things like:
"C:/path> ghc haskellfile.hs" from the command prompt?

ghc is the Haskell compiler.

I often see this with pyhton pythonfile.py too etc.

normally that is on Linux or Unix though.

But I am supposed to be able to do the same on windows I think.

Do I have to add the path to ghc.exe to the general system path? I
have tried that but it isn't working.

My System SpecsSystem Spec
Old 08-13-2008   #2 (permalink)
Synapse Syndrome


 
 

Re: How run "C:/path> ghc haskellfile.hs" ?

"ssecorp" <circularfunc@xxxxxx> wrote in message
news:8cc23be5-0450-4482-85ef-493808323589@xxxxxx
Quote:

> What do I need to do to be able to run things like:
> "C:/path> ghc haskellfile.hs" from the command prompt?
>
> ghc is the Haskell compiler.
>
> I often see this with pyhton pythonfile.py too etc.
>
> normally that is on Linux or Unix though.
>
> But I am supposed to be able to do the same on windows I think.
>
> Do I have to add the path to ghc.exe to the general system path? I
> have tried that but it isn't working.
Are you sure that you are using the Windows version of ghc? If you are, you
need to put it in a folder that is added to your path. I put extra programs
and command in a folder called C:\windows\~command. The ~ is there so it
appears at the top of the folder listing. It's easier to edit the path in
Environmental Variables in System Properties, as you get messed around by
carriage returns with using the PATH command. Pasting it into Notepad with
Text Wrap off is easiest. It's easier to add the .exe file to
C:\windows\system32 as it already in the path, but that is very messy I
think. Have you double checked that your path is correct?

ss.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Problems with the "Require trusted path for credential entry" setting Vista security
"select Name,Path from Win32_Share" permissions required by ASP.NET to return paths, Vista security
How to change "require trusted path for credential entry" Vista account administration
Changing default path of "My Documents" (User files)to D: drive? Vista file management
"Open command prompt here" and "Copy as path" Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46