-
Notifications
You must be signed in to change notification settings - Fork 376
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
Another go at updating dependencies #192
Conversation
@@ -25,7 +25,7 @@ structures: | |||
* [Bifunctor](#bifunctor) | |||
* [Profunctor](#profunctor) | |||
|
|||
<img src="figures/dependencies.png" width="677" height="212" /> | |||
<img src="figures/dependencies.png" /> |
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.
Could we use the svg rather than the png here?
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.
Could just kill the png altogether.
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.
Sounds good to me. See my Stack Overflow answer.
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.
@@ -0,0 +1,35 @@ | |||
digraph { | |||
node [fontcolor=blue;shape=plaintext] |
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.
Let's s/blue/#4078c0/
to match GitHub's link colour.
@@ -25,7 +25,7 @@ structures: | |||
* [Bifunctor](#bifunctor) | |||
* [Profunctor](#profunctor) |
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.
Let's remove this list. It's duplicative now that the diagram is up to date. :)
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.
I think it's best to keep this. It's nice to have a fallback in case something happens with the image, different people process information differently, and it's still plaintext so it can be searched.
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.
Two points in favour of the ASCII version. 😜
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.
😄
I'm fine with the output graph being ASCII. I just don't want to maintain the shape of the graph in raw ASCII.
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.
I'm totally with you. A program like dot
which generates an ASCII diagram would be neat!
I very much like your change. Thanks for taking the time to work on it.
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.
It does support multiple output formats, including plain
. plain
gives you the size of the graph, a sequence of nodes with positions, and a sequence of edges with position if you want to parse the coordinates into an ascii thing. It looks like a regular language, so probably not too hard to parse.
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.
Cool! I may investigate that one day (but certainly not today).
@@ -25,7 +25,7 @@ structures: | |||
* [Bifunctor](#bifunctor) | |||
* [Profunctor](#profunctor) | |||
|
|||
<img src="figures/dependencies.png" width="677" height="212" /> | |||
<img src="https://cdn.rawgit.com/fantasyland/fantasy-land/master/figures/dependencies.svg" /> |
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.
This is inadvisable:
Use a specific tag or commit hash in the URL (not a branch). Files are cached permanently based on the URL.
The approach I used with Orthogonal was to add the SVG in one commit then reference its location by commit hash in the following commit.
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.
Ah! Makes sense.
@joneshf, what command are you running to generate dependencies.svg? Could you add it to a makefile so the rest of us know how to do it? |
The links in the image do not work, because GitHub wraps the image in an anchor element. Shall we remove the links? Since we're going to keep the list of section links they're not essential. |
Sure. |
It's looking good! Ideally we'd now have two clean commits: Commit 1:
Commit 2:
I'm happy to do this if fiddling with |
Nah, rebase is fine. I wonder if svg is worth it if we have to use rawgit like this. Remembering to make one commit to change the graph and one to update the sha is less than ideal. If we use png rather than svg for output, it seems like we could do it in one commit, and similar for future changes. What do you think? |
Good point. Let's stick with a PNG. :) |
Excellent! If you're happy with the current state of the diff, Hardy, let's squash and merge. :) |
👍 |
* 'master' of github.com:fantasyland/fantasy-land: (29 commits) Version 2.1.0 Add Alt, Plus and Alternative specs (fantasyland#197) Use uppercase letters for Type representatives in laws (fantasyland#196) Fix id_test and argument order in laws (fantasyland#193) Version 2.0.0 Another go at updating dependencies (fantasyland#192) release: integrate xyz (fantasyland#191) test: remove unnecessary lambdas (fantasyland#190) require static methods to be defined on type representatives (fantasyland#180) lint: integrate ESLint (fantasyland#189) Enforce parametricity (fantasyland#184) readme: tweak signatures to indicate that methods are not curried (fantasyland#183) Fix reduce signature to not use currying (fantasyland#182) Link to dependent specifications (fantasyland#178) Add Fluture to the list of implementations (fantasyland#175) laws/functor: fix composition (fantasyland#173) laws/monad: fix leftIdentity (fantasyland#171) Minor version bump bower: add bower.json (fantasyland#159) Fix chainRec signature to not use currying (fantasyland#167) ...
Re: #160