-
Notifications
You must be signed in to change notification settings - Fork 33
Add Blend Modes and Canonical Show instances for Enumerations #32
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
Conversation
@@ -482,6 +483,15 @@ foreign import drawImageFull :: forall eff. Context2D -> CanvasImageSource -> Nu | |||
-- | Enumerates the different types of pattern repetitions. | |||
data PatternRepeat = Repeat | RepeatX | RepeatY | NoRepeat | |||
|
|||
instance showPatternRepeat :: Show PatternRepeat where | |||
show Repeat = "repeat" |
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 I was getting at before was that we expect valid Show
instances to produce strings which are executable code. So this and the Show TextAlign
instance should be changed.
I was suggesting the current show
be turned into toString
which would be put into a where
clause somewhere and not exported. And ideally the same for TextAlign
.
ea4dcf1
to
3f9f7b5
Compare
Ok, I updated the |
This looks great, thanks!
That would be good, if you don't mind. |
Ok great, I'll add those as well :) |
Just added the new blend modes (https://www.w3.org/TR/compositing-1/). |
Fantastic, thank you! |
Add Blend Modes and Canonical Show instances for Enumerations
Did you have something else in mind for the show implementation?