-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add extractBase64 to 0.4 so 0.4 and 1.0 can be targeted by same code #59
Comments
hi @tomjaguarpaw! I'm genuinely confused as to why you'd want to support two major epochs of |
I'm genuinely confused why you think I wouldn't! I'd like to release a version of Is there another way I can release a version of
I'm not sure what you mean. How do you envisage this could be a feature of
I don't understand that sentence at all, I'm afraid. |
Are there
What you can do downstream is have something like #if MIN_VERSION_base64(1,0,0)
stanEncodeBase64 :: ByteString -> ByteString
stanEncodeBase64 = Data.Base64.Types.extractBase64 . encodeBase64
#else
stanEncodeBase64 :: ByteString -> ByteString
stanEncodeBase64 = encodeBase64
#endif In your library, and use that. Then, we don't have a problem.
Consider this from my perspective: people have known these changes were coming for almost 2 years, with an RFC detailing the proposal 1.5 years ago. I'm not interested in keeping users on an inferior library experience for longer than I already have.
I misunderstood the use case you were thinking of. i was thinking "static analysis of libraries using multiple epochs", not "library users supporting old versions". Both, I question.
You have to rip the bandaid off at some point. What happens when |
Closed because I fail to see how twitter callouts are necessary in what I thought was a goodwill line of communication. |
I would love
stan
to be able to support bothbase-6.4
series0.4
and series1.0
at the same time. Currently I think that means I have to use CPP and do this:and then use
extractBase64 . Base64.encodeBase64
everywhere I previously used justBase64.encodeBase64
. This works, but with support frombase64
this could be significantly easier.Would you be willing to add
Data.Base64.Types
, containingto the 0.4 series (i.e. release 0.4.3.0 containing this)? Then
extractBase64 . Base64.encodeBase64
works fine on both versions.I'm willing to contribute the code if this approach is acceptable to you.
There may be some other functions that would benefit from this approach too, but
encodeBase64
is the only one I need forstan
.The text was updated successfully, but these errors were encountered: