First install Haskell (ghc): see this page |
|
Also Cabal | |
Also ghc-zlib (was Zlib and Zliball) |
Follow instructions on these sites:
- https://www.idris-lang.org/pages/download.html
- https://github.com/idris-lang/Idris-dev/wiki/Installation-Instructions
To install run
- cabal update
- cabal install --allow-newer --constraint='haskeline < 0.8.0.0' idris
This can take a long time 10-15min
Check if path is set:
echo $PATH
if not edit login shell. Put PATH into local '.profile' file like this:
# Sample .profile for SuSE Linux # rewritten by Christian Steinruecken |
then Idris worked:
mjb@localhost:/usr/lib64> idris ____ __ _ / _/___/ /____(_)____ / // __ / ___/ / ___/ Version 1.3.1 _/ // /_/ / / / (__ ) http://www.idris-lang.org/ /___/\__,_/_/ /_/____/ Type :? for help Idris is free software with ABSOLUTELY NO WARRANTY. For details type :warranty. Idris> |
Set Path
The path needs to be set but the path only works for current sesion. | mjb@linux:~> PATH=$PATH:/home/mjb/.cabal/bin mjb@linux:~> idris ____ __ _ / _/___/ /____(_)____ / // __ / ___/ / ___/ Version 1.2.0 _/ // /_/ / / / (__ ) http://www.idris-lang.org/ /___/\__,_/_/ /_/____/ Type :? for help Idris is free software with ABSOLUTELY NO WARRANTY. For details type :warranty. Idris> |
So need to put in login shell: | # Sample .profile for SuSE Linux # rewritten by Christian Steinruecken |
Installing Idris-mode in Emacs
See this page.