<font size="2">
<p>I have a question about finding the Gtk2Hs demos (the demos written in Haskell).</p>
<p>To summarize what I have done so far:</p>
<p>I&#39;m a new Cabal user; need to use Cabal in a Windows XP environment, where it and the Haskell Platform are located on a network drive (H:) instead of C:. (Need to be able to do development on any of several PCs, using a single tools dir.)</p>

<p>I want to write Haskell code that uses Gtk2Hs (and Glade).</p>
<p>I have edited Cabal&#39;s config and placed it on H:, and so I have set up:</p>
<p>H:\proc\tools\Haskell Platform <br>H:\proc\tools\gtk <br>H:\proc\tools\cabal <br>etc. <br><br></p>
<p>My edited Cabal config is listed at the end below.</p>
<p>I modified my PATH, etc. as follows:</p>
<p>SET P_TOOLS=H:\proc\tools <br>SET HASK_PLAT=%P_TOOLS%\Haskell Platform\2010.1.0.0 <br>PATH %HASK_PLAT%\bin;%P_TOOLS%\cabal\bin;%P_TOOLS%\gtk\bin;%HASK_PLAT%\lib\extralibs\bin;%HASK_PLAT%\mingw\bin <br><br>REM This is so Cabal will get its config from the Haskell Platform, <br>
REM rather than C:\Documents and Settings\pschmitz\Application Data\cabal <br>SET CABAL_CONFIG=%P_TOOLS%\cabal\config <br></p>
<p>I had to add the mingw\bin dir to PATH to get cpp (needed during &quot;cabal install gtk&quot;), and the extralibs dir to get alex (for &quot;cabal install gtk2hs-buildtools&quot;). <br><br><br><br></p>
<p>I download the GTK+ &quot;All-in-one bundle&quot; 2.20.0 (current maintained branch), and ran gtk-demo; it works.</p>
<p>The following commands then completed okay, with various warnings, but no fatal errors:</p></font><font size="3">
<p>cabal install cabal-install</p>
<p>cabal update</p>
<p>cabal install gtk2hs-buildtools</p>
<p>cabal install gtk</p></font><font size="2">
<p> </p>
<p>(There seems to be no &quot;cabal install gtk2hs&quot;.)</p>
<p> </p>
<div>*** At this point I am trying to find the Gtk2Hs demos, so I can compile and run them. I cannot find them anywhere in my &quot;H:\proc\tools\&quot; tree. If anyone can help me see what I am missing, I would appreciate it. </div>

<div> </div>
<p><a href="http://code.haskell.org/gtk2hs/INSTALL">http://code.haskell.org/gtk2hs/INSTALL</a> says: <br>&quot;To get started, you can compile and run one of the programs that reside in the demo/ directory in the respective packages. For example: <br>
~/gtk2hs/gtk/demo/hello:$ make&quot;. <br>But I don&#39;t see a &quot;gtk2hs/&quot; dir anywhere. <br></p>
<p>I tried looking for the sources directly (google &quot;gtk2hs demos&quot;, etc.) but didn&#39;t have any luck.</p>
<p>Thanks very much,</p>
<p>-- Peter</p>
<p> </p>
<p>-----------------------------</p>
<p>My Cabal config follows. The email may remove indentation, but I was careful to maintain the original indentation when editing. It seems to work fine.</p>
<p>-- This is the configuration file for the &#39;cabal&#39; command line tool. <br><br>-- The available configuration options are listed below. <br>-- Some of them have default values listed. <br><br>-- Lines (like this one) beginning with &#39;--&#39; are comments. <br>
-- Be careful with spaces and indentation because they are <br>-- used to indicate layout for nested sections. <br><br><br>remote-repo: hackage.haskell.org:http://<a href="http://hackage.haskell.org/packages/archive">hackage.haskell.org/packages/archive</a> <br>
remote-repo-cache: H:\proc\tools\cabal\packages <br>-- local-repo: <br>-- verbose: 1 <br>-- compiler: ghc <br>-- with-compiler: <br>-- with-hc-pkg: <br>-- scratchdir: <br>-- program-prefix: <br>-- program-suffix: <br>-- library-vanilla: True <br>
-- library-profiling: False <br>-- shared: False <br>-- executable-profiling: False <br>-- optimization: True <br>-- library-for-ghci: True <br>-- split-objs: False <br>-- executable-stripping: True <br>-- user-install: True <br>
-- package-db: <br>-- flags: <br>-- extra-include-dirs: <br>-- extra-lib-dirs: <br>-- constraint: <br>-- cabal-lib-version: <br>-- preference: <br>-- documentation: False <br>-- doc-index-file: $datadir\doc\index.html <br>
-- root-cmd: <br>-- symlink-bindir: <br>build-summary: H:\proc\tools\cabal\logs\build.log <br>-- build-log: <br>remote-build-reporting: anonymous <br>-- username: <br>-- password: <br><br>install-dirs user <br>prefix: &quot;H:\\proc\\tools\\cabal&quot; <br>
-- bindir: $prefix\bin <br>-- libdir: $prefix <br>-- libsubdir: $pkgid\$compiler <br>-- libexecdir: $prefix\$pkgid <br>datadir: &quot;H:\\proc\\tools\\Haskell Platform\\2010.1.0.0&quot; <br>-- datasubdir: $pkgid <br>-- docdir: $prefix\doc\$pkgid <br>
-- htmldir: $docdir\html <br>-- haddockdir: $htmldir <br><br>install-dirs global <br>prefix: &quot;H:\\proc\\tools\\Haskell Platform\\2010.1.0.0&quot; <br>-- bindir: $prefix\bin <br>-- libdir: $prefix <br>-- libsubdir: $pkgid\$compiler <br>
-- libexecdir: $prefix\$pkgid <br>datadir: &quot;H:\\proc\\tools\\Haskell Platform\\2010.1.0.0&quot; <br>-- datasubdir: $pkgid <br>-- docdir: $prefix\doc\$pkgid <br>-- htmldir: $docdir\html <br>-- haddockdir: $htmldir <br>
</p>
<div> </div>
<div>====</div>
<div> </div></font>