Skip to content

My attempt to cherry-pick things from #980 that work with current main#987

Closed
dhess wants to merge 8 commits intomainfrom
dhess/georgefst/zurihac
Closed

My attempt to cherry-pick things from #980 that work with current main#987
dhess wants to merge 8 commits intomainfrom
dhess/georgefst/zurihac

Conversation

@dhess
Copy link
Member

@dhess dhess commented Jun 11, 2023

This is current main, plus most of @georgefst's styling work from #980, which is based on a pretty out-of-date main commit that lacks several substantial improvements that I made tonight.

FYI, I have skipped the following commits from #980:

All the rest were cherry-picked more or less cleanly into this PR.

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
Signed-off-by: George Thomas <georgefsthomas@gmail.com>
well, almost all - we still use black for Ann due to running out of good colours in our palette

we try to colour type nodes analogously to corresponding term nodes - this makes more sense now that we use different shapes for terms and types

this probably requires a little more thought e.g. we style term Lam and type LAM differently, choosing instead to highlight their analogies with TFun and TForall directly

also, I personally think "blue-secondary" looks quite odd on the canvas, but it's fine for now since it's used for advanced features (polymorphism)

we should also consider refactors to make this sort of change less laborious, though it's hard to say how to abstract colours properly when tailwind discourages concatenating class strings

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
Signed-off-by: Drew Hess <src@drewhess.com>
we were already using `@` for two different concepts, so we may as well unify all three - we can now easily tell which sort of application is in use by the shape of children

`$` is a weird Haskell-ism that isn't really used elsewhere

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
these seem redundant, since patterns already look so different to everthing else

we may wish to re-introduce these in beginner mode

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
@dhess
Copy link
Member Author

dhess commented Jun 11, 2023

Honestly I think I would be happy to merge this to main. My only real objection is that the commit messages aren't formatted to our rules :) But I don't think there's anything particularly hacky in the implementation, and I think nearly all of the styling changes are an improvement.

@georgefst
Copy link
Contributor

Thanks! I briefly looked in to rebasing last night and the conflicts looked quite awkward.

I've closed #980 since this is clearly an improvement, with nothing significant missing.

split this for cleaner diffs (factor out tree lists, format, spaceTrees (lift to top-level?))?

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
Signed-off-by: George Thomas <georgefsthomas@gmail.com>
this get messed up while rebasing on #932

I'm not convince this is the right fix as I haven't looked in detail at those changes

anyway, this should be squashed with the change which made type nodes rectangular

Signed-off-by: George Thomas <georgefsthomas@gmail.com>
@dhess dhess added Deploy service Deploy the backend service for this PR and removed Deploy service Deploy the backend service for this PR labels Jun 15, 2023
@georgefst
Copy link
Contributor

Seeing as there's still a bit more cleanup that needs doing here, and this stuff was just lumped together for simplicity in the rush towards the demo, I'm going to split this in to separate PRs.

@georgefst georgefst closed this Jun 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants