<div dir="ltr"><div>If you want more demonstration, I wrote a blog post[1] a while back that builds up the code to draw a maze using fgl. It only uses the basic features of the library, but I think it's a good overview of the ideas involved.<br><br></div>The code is up on GitHub[2] and should still work, although it might be annoying to build because the drawing code uses Cairo and Gtk. <br><div><br>[1]: <a href="http://jelv.is/blog/Generating-Mazes-with-Inductive-Graphs/">http://jelv.is/blog/Generating-Mazes-with-Inductive-Graphs/</a><br>[2]: <a href="https://github.com/TikhonJelvis/inductive-mazes">https://github.com/TikhonJelvis/inductive-mazes</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 3:29 PM, Ivan Lazar Miljenovic <span dir="ltr"><<a href="mailto:ivan.miljenovic@gmail.com" target="_blank">ivan.miljenovic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 23 July 2015 at 05:21, Jeffrey Brown <<a href="mailto:jeffbrown.the@gmail.com">jeffbrown.the@gmail.com</a>> wrote:<br>
> Thanks, Ivan! It looks exciting. Is there a demo file floating around<br>
> somewhere? Martin Erwig's old site [1] for FGL includes some demonstration<br>
> code, which builds on a file called "test.hs" [2]; I know the site is<br>
> obsolete but are those aspects of it still useful?<br>
><br>
> [1] <a href="https://web.engr.oregonstate.edu/~erwig/fgl/haskell/" rel="noreferrer" target="_blank">https://web.engr.oregonstate.edu/~erwig/fgl/haskell/</a><br>
</span>> [2] <a href="https://web.engr.oregonstate.edu/~erwig/fgl/haskell/test.hs" rel="noreferrer" target="_blank">https://web.engr.oregonstate.edu/~erwig/fgl/haskell/test.hs</a><br>
<br>
Most of those should still be valid, yes.<br>
<br>
There's also the Examples module in fgl.<br>
<span class=""><br>
><br>
> On Wed, Jul 22, 2015 at 6:07 AM, Ivan Lazar Miljenovic<br>
</span><span class="">> <<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>> wrote:<br>
>><br>
>> I'm pleased to announce that I've (finally!) just released version<br>
>> 5.5.2.0 of [fgl].  Major changes in this release include a test suite,<br>
>> refactorings, code clean-ups and the following potentially breaking<br>
>> changes (in that they were previously unspecified or incorrect):<br>
>><br>
>><br>
>>     - `nodeRange` and `nodeRangeM` for the various graph data<br>
>>       structures erroneously returned `(0,0)` for empty graphs (making<br>
>>       them indistinguishable from graphs containing the single node<br>
>>       `0`).  They now match the default implementation of throwing an<br>
>>       error.<br>
>><br>
>>     - The behaviour of `delLEdge` when dealing with multiple edges was<br>
>>       unspecified; it now deletes only a single edge and the new<br>
>>       function `delAllLEdge` deletes all edges matching the one<br>
>>       provided.<br>
>><br>
>> All changes can be found in the changelog.<br>
>><br>
>> [fgl]: <a href="https://hackage.haskell.org/package/fgl" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/fgl</a><br>
>><br>
</span><span class="">>> Along with this I'm releasing version 0.2.0.0 of [fgl-arbitrary] (i.e.<br>
>> the "I finally build against the version on Hackage" release).<br>
>><br>
>> [fgl-arbitrary]: <a href="https://hackage.haskell.org/package/fgl-arbitrary" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/fgl-arbitrary</a><br>
>><br>
</span><span class="">>> --<br>
>> Ivan Lazar Miljenovic<br>
>> <a href="mailto:Ivan.Miljenovic@gmail.com">Ivan.Miljenovic@gmail.com</a><br>
</span><span class="">>> <a href="http://IvanMiljenovic.wordpress.com" rel="noreferrer" target="_blank">http://IvanMiljenovic.wordpress.com</a><br>
>> _______________________________________________<br>
>> Haskell-Cafe mailing list<br>
</span>>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
>> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<span class="">><br>
><br>
<br>
<br>
<br>
--<br>
Ivan Lazar Miljenovic<br>
<a href="mailto:Ivan.Miljenovic@gmail.com">Ivan.Miljenovic@gmail.com</a><br>
<a href="http://IvanMiljenovic.wordpress.com" rel="noreferrer" target="_blank">http://IvanMiljenovic.wordpress.com</a><br>
_______________________________________________<br>
</span>Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div><br></div>