Installing yi on ArchLinux or most other distros can be tricky. This is the way out at the moment. I am planning to create a package you can install through abs soon!
Whenever I mention of installing an aur package, it is a simple process that is explained in detail in this excellent guide
1) Update your pacman repos list
pacman -Sy
2) Install ghc
pacman -S ghc
3)Install pcre-light(required by cabal) from this aur page. You can get this package directly.
3)Install cabal from this aur page. You can get this package directly.
4) Resolve dependencies of gtk2hs by doing
pacman -S gconf ghc gtkglext gtksourceview libglade librsvg
5) Install gtk2hs from this aur page
You can get this package directly.
6) Download fingertree from hackage and install it by doing the following
tar -xzvf fingertree-0.0.tar.gz
cd fingertree
ghc -package Cabal-1.2.3.0 —make Setup.hs
./Setup configure
./Setup build
(As root) ./Setup install
7) Install alex from this aur page
You can get this package directly.
It normally wont complain. But if your core lib gmp is not installed, it will. Do
pacman -S gmp and continue the original install
8) Finally, download the yi tarball (version 3.0 or above). Or just get the darcs repo.
(You need darcs installed for this pacman -S darcs
9) If you have the tarbal,
tar -xzvf yi-0.3.tar.gz
cd yi-0.3
Else if you got it through darcs, simply cd yi
10) Do
ghc -package Cabal-1.2.3.0 —make Setup.hs
./Setup configure
./Setup build
(As root) ./Setup install
11) yi will be installed into /usr/local/bin





