-
Notifications
You must be signed in to change notification settings - Fork 13
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
allow derivingVia using quantified constraints to be expressible! #49
Conversation
https://gitlab.haskell.org/ghc/ghc/issues/17767#note_251123 for how this came about and newtype MyDouble = MYD Double
type MGetCoerT m = (forall p q. (MonadGet m, Coercible p q) => Coercible (m p) (m q) :: Constraint)
deriving via Double instance MGetCoerT m => Serial MyDouble
|
so that folks can see how to write stuff |
@RyanGlScott @ekmett would this be a minor or Major bump? and also a friend of ours would like it on hackage so he can use it ;) |
I'd probably major bump it to be safe. |
yeah, that extra constraint might impact someone somehwere |
@RyanGlScott :) |
true, i suppose that would better, the bound would be 8 6?
…On Fri, Jan 31, 2020 at 6:27 PM Oleg Grenrus ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/Data/Bytes/Get.hs
<#49 (comment)>:
> @@ -3,6 +3,10 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE Trustworthy #-}
+#if MIN_VERSION_base(4,12,0)
this should be on __GLASGOW_HASKELL__, quantified constraints isn't base
feature.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49?email_source=notifications&email_token=AAABBQQBCPBSZBZKNVOVZBLRASXUZA5CNFSM4KON7SQ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCT4IVVI#pullrequestreview-351832789>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQUHSX5KZUSSX2N345TRASXUZANCNFSM4KON7SQQ>
.
|
the magical future where ghc and base versions aren't coupled :)
On Fri, Jan 31, 2020 at 7:06 PM Carter Schonwald <carter.schonwald@gmail.com>
wrote:
… true, i suppose that would better, the bound would be 8 6?
On Fri, Jan 31, 2020 at 6:27 PM Oleg Grenrus ***@***.***>
wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In src/Data/Bytes/Get.hs
> <#49 (comment)>:
>
> > @@ -3,6 +3,10 @@
> {-# LANGUAGE FlexibleContexts #-}
> {-# LANGUAGE DefaultSignatures #-}
> {-# LANGUAGE Trustworthy #-}
> +#if MIN_VERSION_base(4,12,0)
>
> this should be on __GLASGOW_HASKELL__, quantified constraints isn't base
> feature.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#49?email_source=notifications&email_token=AAABBQQBCPBSZBZKNVOVZBLRASXUZA5CNFSM4KON7SQ2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCT4IVVI#pullrequestreview-351832789>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAABBQUHSX5KZUSSX2N345TRASXUZANCNFSM4KON7SQQ>
> .
>
|
I'll plan to make a new Hackage release of |
I've released |
Yay and thank you!
…On Mon, Feb 3, 2020 at 7:58 AM Ryan Scott ***@***.***> wrote:
I've released bytes-0.17 <http://hackage.haskell.org/package/bytes-0.17>
to Hackage with these changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49?email_source=notifications&email_token=AAABBQX45TVYOXVD3J7TZLTRBAIF3A5CNFSM4KON7SQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKTXYMI#issuecomment-581401649>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQUULFU7HLK7VR7Q4WDRBAIF3ANCNFSM4KON7SQQ>
.
|
No description provided.