31 May 2022

Yi

System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Deps: ghc-8.10.4-x86_64-deb9-linux.tar.xz, ghc-8.10.4-src.tar.xz,
yi-0.17.1.tar.gz


Installation of J.-P. Bernardy's yi editor.

https://slackbuilds.org/repository/15.0/haskell/ghc/
ghc-8.10.4-src.tar.xz
ghc-8.10.4-i386-deb9-linux.tar.xz
ghc-8.10.4-x86_64-deb9-linux.tar.xz

Build and install the above package.

bash-5.1$ cabal update
Config file path source is default config file.
Config file not found: /home/eric/.config/cabal/config
Writing default configuration to /home/eric/.config/cabal/config
Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org has been updated.
The index-state is set to 2026-08-16T14:10:36Z.
bash-5.1$ curl -sL -o /tmp/yi-0.17.1.tar.gz \
> https://github.com/yi-editor/yi/archive/refs/tags/0.17.1.tar.gz
bash-5.1$ tar xf /tmp/yi-0.17.1.tar.gz -C ~
bash-5.1$ mkdir -p ~/.config/yi
bash-5.1$ cp yi-0.17.1/example-configs/yi-vim-vty-dynamic/{*.cabal,*.hs} ~/.config/yi
bash-5.1$ cd ~/.config/yi
bash-5.1$ cabal -v0 install --install-method=copy --overwrite-policy=always
bash-5.1$ mkdir -p ~/.ghc/x86_64-linux-8.10.4/environments
bash-5.1$ touch ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$ echo clear-package-db > ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$ echo global-package-db >> ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$ ls -d ~/.local/state/cabal/store/ghc-8.10.4/package.db | sed 's/^/package-db /' >> \
> ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$ cd ~/.local/state/cabal/store/ghc-8.10.4
bash-5.1$ pushd /usr/lib64/ghc-8.10.4
/usr/lib64/ghc-8.10.4 ~/.local/state/cabal/store/ghc-8.10.4
bash-5.1$ ls -d base* | sed 's/^/package-id /' >> \
> ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$ popd
~/.local/state/cabal/store/ghc-8.10.4
bash-5.1$ ls -dU oo-prototypes* microlens-platform* yi-core* yi-dynamic* \
yi-frontend-vty* yi-keymap-vim* yi-misc-modes* yi-mode-haskell* \
yi-mode-javascript* yi-rope* | sed 's/^/package-id /' >> \
> ~/.ghc/x86_64-linux-8.10.4/environments/default
bash-5.1$

[   ]