Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation of diagrams backend #98

Open
bollu opened this issue Feb 23, 2016 · 0 comments
Open

No documentation of diagrams backend #98

bollu opened this issue Feb 23, 2016 · 0 comments

Comments

@bollu
Copy link

bollu commented Feb 23, 2016

The area for backends documentation in the diagrams-core explanation is missing.

As reference, here is what @bergey explained to me about the Backend architecture

<bergey> The key pieces of writing a Backend are an instance of the Backend
         type class and one or more instances of the Renderable type class
                                                                        [09:31]
<bergey>
         http://hackage.haskell.org/package/diagrams-core-1.3.0.6/docs/Diagrams-Core-Types.html#g:16
<bergey> Typically, a Renderable instance for the Path type.  [09:32]
<bergey> When writing the Backend instance, you get to pick some types.  You
         might pick that the Result type of rendering a Diagram is an IO ()
         action which draws the Diagram.  Or something more flexible, like
         GLContext -> IO ()  [09:36]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant