18 October 2015

Yi

System: Microsoft Windows XP Home Edition
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

Installation of yi-0.10.1.

C:\DOCUME~1\UserName>CD \

C:\>MKDIR Programmer\gtk

Extract gtk+-bundle_3.6.4-20130921_win32.zip into C:\Programmer\gtk and add
C:\Programmer\gtk\bin to the System variable PATH.

C:\>pkg-config --cflags gtk+-2.0
-mms-bitfields -IC:/Programmer/gtk/include/gtk-2.0 -IC:/Programmer/gtk/lib/gtk-2.0/include
-IC:/Programmer/gtk/include/atk-1.0 -IC:/Programmer/gtk/include/cairo -IC:/Programmer/gtk /include/gdk-pixbuf-2.0 -IC:/Programmer/gtk/include/pango-1.0 -IC:/Programmer/gtk/include
/glib-2.0 -IC:/Programmer/gtk/lib/glib-2.0/include -IC:/Programmer /gtk/include -IC:/Program
mer/gtk/include/freetype2 -IC:/Programmer/gtk/include/libpng14

C:\>gtk-demo

Create a file named 'gtkrc' with the line

gtk-theme-name = "MS-Windows"

C:\>edit.com Programmer\gtk\etc\gtk-2.0\gtkrc

C:\>TYPE Programmer\gtk\etc\gtk-2.0\gtkrc
gtk-theme-name = "MS-Windows"

C:\>

Install HaskellPlatform-2014.2.0.0-i386-setup.exe, accepting the licence and the
default options.

The System variable PATH should now read

C:\Programmer\Haskell\bin;C:\Programmer\Haskell\lib\extralibs\bin;C:\Programmer\gtk\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmer\
Haskell\mingw\bin

a User variable PATH should be created with
C:\Documents and Settings\UserName\Application Data\cabal\bin

that folder however does not yet exist.

C:\>EXIT

Opening the Command Prompt again will load the new PATH variables.

C:\DOCUME~1\UserName>ECHO %PATH%
C:\Programmer\Haskell\bin;C:\Programmer\Haskell\lib\extralibs\bin;C:\Programmer\gtk\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmer\
Haskell\mingw\bin;C:\Documents and Settings\UserName\Application Data\cabal\bin

C:\DOCUME~1\UserName>

Running the command

C:\DOCUME~1\UserName>cabal list --installed

or,

C:\DOCUME~1\UserName>cabal list --simple-output

will create the file C:\DOCUME~1\UserName\Application Data\cabal\config.

C:\DOCUME~1\UserName>CD \

C:\>cabal update
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install

C:\>cabal install cabal-install
Resolving dependencies...
Downloading Cabal-1.22.4.0...
Configuring Cabal-1.22.4.0...
Building Cabal-1.22.4.0...
Installed Cabal-1.22.4.0
Downloading cabal-install-1.22.6.0...
Configuring cabal-install-1.22.6.0...
Building cabal-install-1.22.6.0...
Installed cabal-install-1.22.6.0

C:\>cabal install gtk2hs-buildtools-0.13.0.4
Resolving dependencies...
Downloading hashtables-1.2.0.2...
Configuring hashtables-1.2.0.2...
Building hashtables-1.2.0.2...
Installed hashtables-1.2.0.2
Downloading gtk2hs-buildtools-0.13.0.4...
Configuring gtk2hs-buildtools-0.13.0.4...
Building gtk2hs-buildtools-0.13.0.4...
Installed gtk2hs-buildtools-0.13.0.4

The --dry-run -v options used to check dependencies in verbose mode.

C:\>cabal install yi-0.10.1 -f-vty -fpango --dry-run -v
Reading available packages...
Choosing modular solver.
Resolving dependencies...
In order, the following would be installed:
StateVar-1.1.0.0 (new package)
base-orphans-0.4.0 (new package)
cautious-file-1.0.2 (new package)
data-default-class-0.0.1 (new package)
data-default-instances-base-0.0.1 (new package)
data-default-instances-containers-0.0.1 (new package)
data-default-instances-old-locale-0.0.1 (new package)
dlist-0.7.1.1 (new package)
data-default-instances-dlist-0.0.1 (new package)
data-default-0.5.3 (new package)
executable-path-0.0.3 (new package)
extensible-exceptions-0.1.1.4 (new package)
fingertree-0.1.1.0 (new package)
ghc-paths-0.1.0.9 (new package)
io-storage-0.3 (new package)
oo-prototypes-0.1.0.0 (new package)
pointedlist-0.6.1 (new package)
prelude-extras-0.4 (new package)
reflection-1.5.2.1 (new package)
safe-0.3.9 (new package)
tagged-0.8.1 (new package)
text-1.2.1.1 -integer-simple (new version)
hashable-1.2.3.3 (new version)
nats-1 (new package)
parsec-3.1.9 (new version)
regex-tdfa-1.2.0 (new package)
tf-random-0.5 (new package)
QuickCheck-2.7.6 (latest: 2.8.1) (new version)
transformers-compat-0.4.0.3 (latest: 0.4.0.4) (new package)
distributive-0.4.4 (new package)
exceptions-0.8.0.2 (new package)
ghc-mtl-1.2.1.0 (new package)
hint-0.4.2.3 (new package)
transformers-base-0.4.4 (new package)
unix-compat-0.4.1.4 (new package)
unordered-containers-0.2.5.1 (new version)
dynamic-state-0.2.0.0 (new package)
semigroups-0.16.2.2 (new package)
bifunctors-5 (new package)
utf8-string-1 (new package)
cairo-0.13.1.0 (new package)
glib-0.13.1.1 (new package)
gio-0.13.1.0 (new package)
pango-0.13.1.0 (new package)
gtk-0.13.8.1 (new package)
void-0.7 (new package)
contravariant-1.3.1.1 (new package)
comonad-4.2.6 (latest: 4.2.7) (new package)
profunctors-5.1.1 (new package)
semigroupoids-5.0.0.2 (new package)
free-4.12.1 (new package)
adjunctions-4.2.1 (new package)
kan-extensions-4.2.2 (new package)
lens-4.11 (new package)
word-trie-0.3.0 (new package)
xdg-basedir-0.2.2 (new package)
dyre-0.8.12 (new package)
yi-language-0.2.0 (new package)
yi-rope-0.4.1.0 (latest: 0.7.0.1) (new package)
yi-0.10.1 (latest: 0.12.0) -vty +pango (new package)

C:\>cabal install yi-0.10.1 -f-vty -fpango

The installation 'C:\>cabal install yi-0.10.1 -f-vty -fpango' was stopped after xdg-basedir-0.2.2 was installed and then the dyre, xdg and yi files were deleted from the \Application Data\ghc and \Application Data\cabal subdirectories.

C:\xdg-basedir-0.2.2\System\Environment\XDG\BasDir.hs was edited to read 'Lokale indstillinger' instead of 'Local Settings' for a Danish computer, and then the modified xdg-basedir-0.2.2 was installed manually.

C:\>CD xdg-basedir-0.2.2

C:\xdg-basedir-0.2.2>runhaskell Setup configure --user
Configuring xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>runhaskell Setup build
Building xdg-basedir-0.2.2...
Preprocessing library xdg-basedir-0.2.2...
[1 of 1] Compiling System.Environment.XDG.BaseDir ( System\Environment\XDG\BaseD
ir.hs, dist\build\System\Environment\XDG\BaseDir.o )
In-place registering xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>runhaskell Setup install
Installing library in C:\Documents and Settings\UserName\Application
Data\cabal\i386-windows-ghc-7.8.3\xdg-basedir-0.2.2
Registering xdg-basedir-0.2.2...

C:\xdg-basedir-0.2.2>cabal install yi-0.10.1 -f-vty -fpango
Resolving dependencies...
Downloading dyre-0.8.12...
Downloading hint-0.4.2.3...
Downloading yi-language-0.2.0...
Downloading yi-rope-0.4.1.0...
Configuring hint-0.4.2.3...
Configuring dyre-0.8.12...
Building dyre-0.8.12...
Building hint-0.4.2.3...
Configuring gtk-0.13.8.1...
Installed dyre-0.8.12
Configuring yi-language-0.2.0...
Installed hint-0.4.2.3
Building yi-language-0.2.0...
Building gtk-0.13.8.1...
Configuring yi-rope-0.4.1.0...
Installed yi-language-0.2.0
Building yi-rope-0.4.1.0...
Installed yi-rope-0.4.1.0
Installed gtk-0.13.8.1
Downloading yi-0.10.1...
Configuring yi-0.10.1...
Building yi-0.10.1...
Installed yi-0.10.1

C:\xdg-basedir-0.2.2>EXIT

Read the documentation on user customisation.