[Chart] Splitting gtk stuff into a separate package

Eugene Kirpichov ekirpichov at gmail.com
Mon Jan 9 18:07:43 GMT 2012


Hi Tim,

Thanks for the patch - however it misses one thing: plotWindow from
Graphics.Rendering.Chart.Simple is not extracted into a thing of its own,
and, as it is under an #ifdef HAVE_GTK, it is essentially lost.

Alas, as I just transitioned to a Mac and am having great difficulties
getting gtk+ to build, I am not able to do this change myself at the moment
(and my previous patch was against an older version of Chart).
But there I had extracted plotWindow into
Graphics.Rendering.Chart.Simple.Gtk and moved it to chart-gtk; on the go, I
had to move most internal functions from Graphics.Rendering.Chart.Simple
into a module Graphics.Rendering.Chart.Simple.Internal that exports
everything.

On Mon, Jan 9, 2012 at 3:59 PM, Tim Docker <tim at dockerz.net> wrote:

> On 07/01/12 18:05, Eugene Kirpichov wrote:
>
>>
>> How can this be achieved? I thought about having two .cabal files in one
>> directory, but apparently this is not possible (google multiple cabal files
>> in directory) and perhaps even not recommended - people are advising to
>> have separate repos, to keep it possible to independently darcs tag
>> particular cabal versions of the package.
>>
>
> I don't really see the need for a separate repo. The chart-gtk package is
> tiny, and may as well be released at the same time, and with the same
> version as the main chart package.
>
> I've had a go at this, and attach a patch to split the code into two
> packages. Let me know what you think.
>
> Tim
>
>


-- 
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/chart/attachments/20120109/e8cf1153/attachment.htm>


More information about the Chart mailing list