Grid Layout Module

This module contains functions for putting a list of diagrams in a grid layout with minimal effort from the user. I find it very useful for comparing diagrams in a more space-efficient way than using `hcat` or `vcat`.
Fair enough :-)
On Aug 20, 2014 12:40 PM, "Pontus Granström" <notifications@github.com>
wrote:

> In src/Diagrams/TwoD/Layout/Grid.hs:
>
> > +gridSnake diagrams = gridSnake' (intSqrt $ length diagrams) diagrams
> > +
> > +-- | Same as 'gridSnake', but with a specified number of columns.
> > +--
> > +-- > gridSnakeExample' = gridSnake' 4 $ map (flip regPoly 1) [3..10]
> > +--
> > +-- <<#diagram=gridSnakeExample'&width=200>>
> > +
> > +gridSnake'
> > +  :: (Backend b R2, Renderable (Path R2) b)
> > +  => Int -> [Diagram b R2]
> > +  -> Diagram b R2
> > +gridSnake' = gridAnimal (everyOther reverse)
> > +
> > +-- | Generalisation of gridCat and gridSnake to not repeat code.
> > +gridAnimal
>
> Not really, it only generalises a very specific part of gridCat (so that
> gridSnake can reverse every other row). And if there's a future reason to
> export it, it should probably be called something else (puns are fun but
> not necessarily informative [image: :stuck_out_tongue:]).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/diagrams/diagrams-contrib/pull/39/files#r16487875>.
>