-
Notifications
You must be signed in to change notification settings - Fork 62
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
New builder #231
New builder #231
Conversation
559d355
to
ab1514a
Compare
outputSize :: Lens' (Options b v n) (SizeSpec V2 n) | ||
|
||
-- | Build a diagram of the given format to the path using the | ||
-- backend's options. The @Maybe String@ returns any errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What Maybe String
?
It seems to me that Can we make this simpler? Maybe we do need two parallel sets of option types, and rendering functions, but I'd like to think otherwise. |
Part of the problem is some backends (canvas for example) don't have a "save to file" function. And maybe it won't make sense for some backends to have 'SizeSpec V2` option. I agree it's kinda cumbersome to have a class just for this. |
This is currently a limitation of blank-canvas. There are plans to rectify it, but it probably won't happen in the immediate future. |
mtl >= 2.0 && < 2.3 | ||
mtl >= 2.0 && < 2.3, | ||
transformers, | ||
exceptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We ought to add some version bounds on these.
b9e7983
to
187a4a9
Compare
975f1fc
to
ace61d0
Compare
ace61d0
to
2c15fcb
Compare
I added a I also made some changes to the CmdLine loop for a cleaner output. I'm still unsure the about |
@cchalmers Are you hoping to merge this before the 1.3 release, or immediately after? I'm leaning towards after, but I'm willing to be persuaded. As fiddly as the -doc build system is, I think I'd rather slog through one more release with a tested system, than change it with 3 weeks before we release. |
I'm not sure. It shouldn't be too much work to get the site working using this. The htmls and pdfs generate the diagrams fine, it just needs integrating with the shake file and the website's style. That said, I'm not happy with the details of Maybe it's best just to fix the current rst tutorials and work on this after. I could split out the sandbox finder (0756912) and the prettier CmdLine loop (4857193) and merge that before 1.3. |
Splitting out those two changes sounds great. I'd like to think more about |
I think all of this has been merged except for the |
Don't merge yet. See diagrams/diagrams-pandoc/pull/1.