<br><div class="gmail_quote">On Sat, Jun 11, 2011 at 12:54 AM, Henning Thielemann <span dir="ltr">&lt;<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Sat, 11 Jun 2011, Dmitri O.Kondratiev wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That&#39;s what I get (see below). What else should I do to install gnuplot?<br>
</blockquote>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
~/wks/haskell-wks/gnuplot/gnuplot-0.4.2/src&gt;ghc -v Demo.hs<br>
</blockquote>
<br></div>
Do you really want to compile the Demo (with ghc)? It is already compiled if &#39;cabal install -fbuildExamples&#39; was successful. Maybe you want to run &#39;ghci&#39; for interactive tests. But you need to tell &#39;ghci&#39; the path to the Paths module. &#39;make ghci-demo&#39; should call GHCi with the right options on Linux:<br>

<br>
$ ghci -Wall -i:src:dist/build/autogen:execute/tmp src/Demo.hs<br>
<br>
<br>
<br>
Did I already advertise the gnuplot mailing list?<br>
  <a href="http://projects.haskell.org/cgi-bin/mailman/listinfo/gnuplot/" target="_blank">http://projects.haskell.org/cgi-bin/mailman/listinfo/gnuplot/</a><br>
</blockquote></div><br>Yes, you did, thanks. Yet, please allow me to ask a few more questions here, before I subscribe to gnuplot list. I am really short on time - must have some plots for demo next Monday (<br><br>1) Can current version of gnuplot draw histograms? I need these first of all.<br>
2) It seems that &quot;$ ghci -Wall -i:src:dist/build/autogen:execute/tmp src/Demo.hs&quot;<br>works on Mac OSX, yet I can&#39;t make it produce any output directly on screen.<br>How to generate output and display it immediately in an output window?<br>
<br>This is what I get: <br><br>~/wks/haskell-wks/gnuplot/gnuplot-0.4.2&gt;ghci -Wall -i:src:dist/build/autogen:execute/tmp src/Demo.hs<br>GHCi, version 6.12.3: <a href="http://www.haskell.org/ghc/">http://www.haskell.org/ghc/</a>  :? for help<br>
Loading package ghc-prim ... linking ... done.<br>Loading package integer-gmp ... linking ... done.<br>Loading package base ... linking ... done.<br>Loading package ffi-1.0 ... linking ... done.<br>[ 1 of 33] Compiling Paths_gnuplot    ( dist/build/autogen/Paths_gnuplot.hs, interpreted )<br>
[ 2 of 33] Compiling Graphics.Gnuplot.Terminal ( src/Graphics/Gnuplot/Terminal.hs, interpreted )<br>[ 3 of 33] Compiling Graphics.Gnuplot.Execute ( execute/tmp/Graphics/Gnuplot/Execute.hs, interpreted )<br>[ 4 of 33] Compiling Graphics.Gnuplot.Utility ( src/Graphics/Gnuplot/Utility.hs, interpreted )<br>
[ 5 of 33] Compiling Graphics.Gnuplot.Private.FrameOption ( src/Graphics/Gnuplot/Private/FrameOption.hs, interpreted )<br>[ 6 of 33] Compiling Graphics.Gnuplot.Private.FrameOptionSet ( src/Graphics/Gnuplot/Private/FrameOptionSet.hs, interpreted )<br>
[ 7 of 33] Compiling Graphics.Gnuplot.Private.Graph ( src/Graphics/Gnuplot/Private/Graph.hs, interpreted )<br>[ 8 of 33] Compiling Graphics.Gnuplot.Private.GraphEmpty ( src/Graphics/Gnuplot/Private/GraphEmpty.hs, interpreted )<br>
[ 9 of 33] Compiling Graphics.Gnuplot.Display ( src/Graphics/Gnuplot/Display.hs, interpreted )<br>[10 of 33] Compiling Graphics.Gnuplot.Private.Plot ( src/Graphics/Gnuplot/Private/Plot.hs, interpreted )<br>[11 of 33] Compiling Graphics.Gnuplot.Private.Frame ( src/Graphics/Gnuplot/Private/Frame.hs, interpreted )<br>
[12 of 33] Compiling Graphics.Gnuplot.Private.ColorSpecification ( src/Graphics/Gnuplot/Private/ColorSpecification.hs, interpreted )<br>[13 of 33] Compiling Graphics.Gnuplot.Private.LineSpecification ( src/Graphics/Gnuplot/Private/LineSpecification.hs, interpreted )<br>
[14 of 33] Compiling Graphics.Gnuplot.Value.Tuple ( src/Graphics/Gnuplot/Value/Tuple.hs, interpreted )<br>[15 of 33] Compiling Graphics.Gnuplot.Value.Atom ( src/Graphics/Gnuplot/Value/Atom.hs, interpreted )<br>[16 of 33] Compiling Graphics.Gnuplot.Value.ColumnSet ( src/Graphics/Gnuplot/Value/ColumnSet.hs, interpreted )<br>
[17 of 33] Compiling Graphics.Gnuplot.Private.Graph2DType ( src/Graphics/Gnuplot/Private/Graph2DType.hs, interpreted )<br>[18 of 33] Compiling Graphics.Gnuplot.Private.Graph2D ( src/Graphics/Gnuplot/Private/Graph2D.hs, interpreted )<br>
[19 of 33] Compiling Graphics.Gnuplot.Private.Graph3DType ( src/Graphics/Gnuplot/Private/Graph3DType.hs, interpreted )<br>[20 of 33] Compiling Graphics.Gnuplot.Private.Graph3D ( src/Graphics/Gnuplot/Private/Graph3D.hs, interpreted )<br>
[21 of 33] Compiling Graphics.Gnuplot.MultiPlot ( src/Graphics/Gnuplot/MultiPlot.hs, interpreted )<br>[22 of 33] Compiling Graphics.Gnuplot.LineSpecification ( src/Graphics/Gnuplot/LineSpecification.hs, interpreted )<br>[23 of 33] Compiling Graphics.Gnuplot.Graph.ThreeDimensional ( src/Graphics/Gnuplot/Graph/ThreeDimensional.hs, interpreted )<br>
[24 of 33] Compiling Graphics.Gnuplot.Graph.TwoDimensional ( src/Graphics/Gnuplot/Graph/TwoDimensional.hs, interpreted )<br>[25 of 33] Compiling Graphics.Gnuplot.Graph ( src/Graphics/Gnuplot/Graph.hs, interpreted )<br>[26 of 33] Compiling Graphics.Gnuplot.Plot.ThreeDimensional ( src/Graphics/Gnuplot/Plot/ThreeDimensional.hs, interpreted )<br>
[27 of 33] Compiling Graphics.Gnuplot.Plot.TwoDimensional ( src/Graphics/Gnuplot/Plot/TwoDimensional.hs, interpreted )<br>[28 of 33] Compiling Graphics.Gnuplot.Frame.OptionSet ( src/Graphics/Gnuplot/Frame/OptionSet.hs, interpreted )<br>
[29 of 33] Compiling Graphics.Gnuplot.Frame.Option ( src/Graphics/Gnuplot/Frame/Option.hs, interpreted )<br>[30 of 33] Compiling Graphics.Gnuplot.Frame ( src/Graphics/Gnuplot/Frame.hs, interpreted )<br>[31 of 33] Compiling Graphics.Gnuplot.Terminal.X11 ( src/Graphics/Gnuplot/Terminal/X11.hs, interpreted )<br>
[32 of 33] Compiling Graphics.Gnuplot.Advanced ( src/Graphics/Gnuplot/Advanced.hs, interpreted )<br><br>src/Graphics/Gnuplot/Advanced.hs:83:0:<br>    Warning: The import of `Data.Monoid&#39; is redundant<br>               except perhaps to import instances from `Data.Monoid&#39;<br>
             To import instances alone, use: import Data.Monoid()<br>[33 of 33] Compiling Main             ( src/Demo.hs, interpreted )<br>Ok, modules loaded: Graphics.Gnuplot.Advanced, Graphics.Gnuplot.Terminal.X11, Graphics.Gnuplot.Frame, Graphics.Gnuplot.Frame.Option, Graphics.Gnuplot.Frame.OptionSet, Graphics.Gnuplot.Plot.TwoDimensional, Graphics.Gnuplot.Plot.ThreeDimensional, Graphics.Gnuplot.Graph, Graphics.Gnuplot.Graph.TwoDimensional, Graphics.Gnuplot.Graph.ThreeDimensional, Graphics.Gnuplot.LineSpecification, Graphics.Gnuplot.MultiPlot, Graphics.Gnuplot.Value.Atom, Graphics.Gnuplot.Value.Tuple, Graphics.Gnuplot.Value.ColumnSet, Graphics.Gnuplot.Private.LineSpecification, Graphics.Gnuplot.Private.ColorSpecification, Graphics.Gnuplot.Private.Plot, Graphics.Gnuplot.Private.Frame, Graphics.Gnuplot.Private.FrameOption, Graphics.Gnuplot.Private.FrameOptionSet, Graphics.Gnuplot.Private.Graph, Graphics.Gnuplot.Private.Graph2D, Graphics.Gnuplot.Private.Graph3D, Graphics.Gnuplot.Private.Graph2DType, Graphics.Gnuplot.Private.Graph3DType, Graphics.Gnuplot.Private.GraphEmpty, Graphics.Gnuplot.Utility, Graphics.Gnuplot.Execute, Graphics.Gnuplot.Display, Graphics.Gnuplot.Terminal, Main, Paths_gnuplot.<br>
*Main&gt; :t simple2D<br><br>&lt;interactive&gt;:1:0: Not in scope: `simple2D&#39;<br>*Main&gt; main<br>Loading package filepath-1.1.0.4 ... linking ... done.<br>Loading package old-locale-1.0.0.2 ... linking ... done.<br>
Loading package old-time-1.0.0.5 ... linking ... done.<br>Loading package unix-2.4.0.2 ... linking ... done.<br>Loading package directory-1.0.1.1 ... linking ... done.<br>Loading package process-1.0.1.3 ... linking ... done.<br>
Loading package time-1.1.4 ... linking ... done.<br>Loading package array-0.3.0.1 ... linking ... done.<br>Loading package containers-0.3.0.0 ... linking ... done.<br>Loading package utility-ht-0.0.7 ... linking ... done.<br>
Loading package monoid-transformer-0.0.2 ... linking ... done.<br>*Main&gt; :t simple2D<br><br>&lt;interactive&gt;:1:0: Not in scope: `simple2D&#39;<br>  <br><br><br><br>