Directions for Mac and Linux users are given at the bottom.
https://chocolatey.org/install
(or go
to https://chocolatey.org
and click on Get Started)
Set-ExecutionPolicy AllSigned
and hit return.
chocoIf you get a command not found error, ask for help.
choco install -y haskell-dev refreshenv
ghci
If it is not working correctly, you may wish to reboot your laptop. This would ensure the PATH variable is correct in all environments.
If you get the error "user specified .o/.so/.DLL could not be
loaded (addDLL: pthread or dependencies not loaded. (Win32 error 5))",
one solution is run ghci as administrator, but better is to change the
security settings for c:\Windows\System32\pthread.dll
and
add a
permission for "Users" to read & execute the dll. The system will ask
about granting permissions to folders, but this is a spurious warning
(you're just changing a file) and it can be ignored.
Note you can now type choco install -y xyz
or cinst -y
xyz
to install other packages. If you enter
choco feature enable -n=allowGlobalConfirmationthen you don't have to give the -y option or affirm installation. Packages to consider:
gow
- Gnu on Windows; provides most Gnu Linux commands
like grep
, egrep
, ls
, cat
,
etc.
g++
- this is my preferred way to install G++ (for C++)
on Windows
vim
- Dr. Taylor's favorite editor
virtualbox
notepadplusplus
unzip
- allows typing unzip
at the command
prompt to unpack Zip files
cup
all
.
The simplest way is
brew install ghcHowever, a distributed installer is also available; see the distribution_packages page
apt-get
should likely work. There are also distribution
packages here.