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

Refactor FontStyle type #95

Merged

Conversation

vyorkin
Copy link
Collaborator

@vyorkin vyorkin commented Jul 8, 2018

  • Make it a sum-type rather than newtype
  • Extract FontStyle-related things into a separate module
  • Add some tests for main use-cases

Resolves #69

@garyb
Copy link
Member

garyb commented Jul 8, 2018

Looks good 👍 unfortunately this and every other PR you open are conflicting after merging the selector fixes.

@vyorkin
Copy link
Collaborator Author

vyorkin commented Jul 8, 2018

no problem let's merge them one by one, I'll rebase after each merge :)

@garyb
Copy link
Member

garyb commented Jul 8, 2018

Sounds good! Looking back on them all, I only have those couple of minor comments I made... but also some of the enumerable additions could be reworked in the same style as this now, if you don't mind?

* Make it a sum-type rather than newtype
* Extract FontStyle to separate module
* Add some tests for main use-cases
@vyorkin
Copy link
Collaborator Author

vyorkin commented Jul 8, 2018

Rebased, should be ready to merge. Sure, I'll update other PR's to use sum types like we did here

This was referenced Jul 8, 2018
@garyb garyb merged commit edc2458 into purescript-contrib:master Jul 8, 2018
@vyorkin vyorkin deleted the feature/font-style-type branch July 8, 2018 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants