Yhc/Snapshots
From HaskellWiki
< Yhc(Difference between revisions)
(→Installing) |
|||
| (3 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
Currently snapshots are only available for Windows users, this describes how to install and test Yhc on Windows. | Currently snapshots are only available for Windows users, this describes how to install and test Yhc on Windows. | ||
| - | + | == Installing == | |
| - | Download the snapshot http://www.cs.york.ac.uk/fp/yhc/snapshot/yhc-latest.zip in that | + | # Create a folder called Yhc. |
| - | folder. | + | # Download the snapshot http://www.cs.york.ac.uk/fp/yhc/snapshot/yhc-latest.zip in that folder. |
| + | # Extract, using WinZip or similar. | ||
| + | # Go to My Computer, right click Properties, Advanced, Environment Variables: | ||
| + | # Add the folder to yhc.exe to your PATH variable. | ||
| - | + | == Testing == | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
Now, to test, open a command window anywhere and type in: | Now, to test, open a command window anywhere and type in: | ||
<code> | <code> | ||
| - | echo main = print 42 > Main.hs | + | echo main = print 42 > Main.hs |
| - | yhc Main | + | yhc Main |
| - | yhi Main | + | yhi Main |
</code> | </code> | ||
You should see the number 42 appear. | You should see the number 42 appear. | ||
Current revision
Currently snapshots are only available for Windows users, this describes how to install and test Yhc on Windows.
1 Installing
- Create a folder called Yhc.
- Download the snapshot http://www.cs.york.ac.uk/fp/yhc/snapshot/yhc-latest.zip in that folder.
- Extract, using WinZip or similar.
- Go to My Computer, right click Properties, Advanced, Environment Variables:
- Add the folder to yhc.exe to your PATH variable.
2 Testing
Now, to test, open a command window anywhere and type in:
echo main = print 42 > Main.hs yhc Main yhi Main
You should see the number 42 appear.
