Difference between revisions of "Yhc/Snapshots"

From HaskellWiki
< Yhc
Jump to navigation Jump to search
m
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
# Extract, using WinZip or similar.
 
# Extract, using WinZip or similar.
 
# Go to My Computer, right click Properties, Advanced, Environment Variables:
 
# Go to My Computer, right click Properties, Advanced, Environment Variables:
# Add the folder you extracted as YHC_BASE_PATH, so %YHC_BASE_PATH%\bin\yhc.exe is the yhc.exe program.
 
 
# Add the folder to yhc.exe to your PATH variable.
 
# Add the folder to yhc.exe to your PATH variable.
   
Line 14: Line 13:
 
Now, to test, open a command window anywhere and type in:
 
Now, to test, open a command window anywhere and type in:
   
<code>
+
<pre>
 
echo main = print 42 > Main.hs
 
echo main = print 42 > Main.hs
 
yhc Main
 
yhc Main
 
yhi Main
 
yhi Main
</code>
+
</pre>
   
 
You should see the number 42 appear.
 
You should see the number 42 appear.

Latest revision as of 00:25, 17 June 2021

Currently snapshots are only available for Windows users, this describes how to install and test Yhc on Windows.

Installing

  1. Create a folder called Yhc.
  2. Download the snapshot http://www.cs.york.ac.uk/fp/yhc/snapshot/yhc-latest.zip in that folder.
  3. Extract, using WinZip or similar.
  4. Go to My Computer, right click Properties, Advanced, Environment Variables:
  5. Add the folder to yhc.exe to your PATH variable.

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.