-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix namespace collision attempt 2 #26
Conversation
apparently the transparent fuzzers aren't used. leaving them for now -- seems like tests are probably missing
77dae34
to
2d88a0b
Compare
( Color | ||
, fromRGB, fromHSL, fromHex | ||
, toRGBString, toHSLString | ||
module SolidColor exposing |
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.
how would you feel about Color.Solid
as a name, exposing Color
? I think:
- it's clear that it's a specialization of
Color
, in the way thatArray.Hamt
was a specialization ofArray
- it's a little nicer in the type signatures.
import Color.Solid as Solid
lets you doSolid.Color
.
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.
Hmm yeah! I could see that
orangyReds = | ||
[ orangeRed, tomato, coral, darkOrange, orange ] | ||
|
||
|
||
allTheButter : List Color | ||
allTheButter : List SolidColor |
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.
😆
@@ -31,13 +31,13 @@ myHex = | |||
Use helpers like `contrast` and `sufficientContrast` to verify that your font size, boldness, and colors meet accessibility standards. | |||
|
|||
``` |
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.
would you be open to a PR to add checks for this with elm-verify-examples?
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.
Yes!! (Although maybe after the major version release has actually occurred in order to not waste your time if this API doesn't make it 😅 )
I think I do like the "opaque" and "translucent" naming as suggested in #13 (comment) - so incorporating @BrianHicks' suggestion, maybe have |
For #13