Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How run "C:/path> ghc haskellfile.hs" ?

Reply
Thread Tools Display Modes

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

 
 
ssecorp
Guest
Posts: n/a

 
      08-13-2008
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.
 
Reply With Quote
 
 
 
 
Synapse Syndrome
Guest
Posts: n/a

 
      08-13-2008
"ssecorp" <> wrote in message
news:8cc23be5-0450-4482-85ef-...
> 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.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Windows cannot access the specified device, path or file" Zsolt Windows Vista General Discussion 6 03-23-2008 07:11 PM
How to change "require trusted path for credential entry" chenoa Windows Vista Administration 0 01-25-2008 12:05 PM
"Windows cannot access the specified device, path or file" error joukhadar_ca Windows Vista General Discussion 2 08-22-2007 06:20 PM
Changing default path of "My Documents" (User files)to D: drive? math Windows Vista File Management 4 07-17-2007 12:12 AM
"Open command prompt here" and "Copy as path" Moody Marco Windows Vista Performance 10 05-04-2007 04:41 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59