Re: intent to enable 2fa requirement for github.com/haskell org

2020-03-19 Thread Ben Gamari
I agree that this would be a good idea.

Cheers,

— Ben 

On March 18, 2020 2:46:47 PM EDT, Carter Schonwald  
wrote:
>hey everyone, because so much important stuff for the community, it
>makes
>sense to add 2fa required for the org, are there any good reasons to
>either
>wait to do this, or not do it? Feedback welcome!
>
>(if theres no objections i'll do it friday or this weekend, so theres
>some
>lead time for anyone who's not setup for that yet)
>
>Best wishes and great health to all
>-carter

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: [core libraries] Re: intent to enable 2fa requirement for github.com/haskell org

2020-03-19 Thread Simon Peyton Jones via ghc-devs
I have not been following this.  What is the consequence for a regular GHC 
developer, or someone contributing to GHC?

In any announcement please give a way to verify “am I affected?”

Thanks

Simon

From: haskell-core-librar...@googlegroups.com 
 On Behalf Of Carter Schonwald
Sent: 18 March 2020 23:53
To: Duncan Coutts 
Cc: Haskell Libraries ; 
core-libraries-commit...@haskell.org; ghc-devs 
Subject: [core libraries] Re: intent to enable 2fa requirement for 
github.com/haskell org

Awesome!

After talking with several folks, feedback has been that best practices are to 
make sure the notice is a week before hand.

So what I’ll do is personally reach out to those who aren’t 2fa enabled in the 
Haskell gh org (and haven’t commented on this thread )and ask them to enable 
2fa on their GitHub account. Perhaps I should attach a 2fa options explainer !

I’ll look at folks responses and if everyone active has made the switch over, 
I’ll look to do a transition next Monday or Tuesday.


Be well! (Nyc and many other places are pretty strange right now :/ )

-Carter

On Wed, Mar 18, 2020 at 7:42 PM Duncan Coutts 
mailto:dun...@dcoutts.me.uk>> wrote:
On Wed, 2020-03-18 at 19:05 -0400, Carter Schonwald wrote:
> No. You don’t.  You can use a yubi key and or a totp tool like google
> Authenticator or 1Password etc. no phones required

It took me a while, but I have successfully managed to turn 2FA back
into 1FA.

In case it helps anyone else, generate your 2FA response with

$ oathtool --totp -b $the-2fa-secret

Where $the-2fa-secret is the code github gives you after the recovery
codes (initially shown as a barcode, but they'll give you the actual
code if you click the link).

> On Wed, Mar 18, 2020 at 6:16 PM Duncan Coutts 
> mailto:dun...@dcoutts.me.uk>> wrote:
> > On Wed, 2020-03-18 at 14:46 -0400, Carter Schonwald wrote:
> > > hey everyone, because so much important stuff for the community, it
> > > makes sense to add 2fa required for the org, are there any good
> > > reasons to either wait to do this, or not do it? Feedback welcome!
> >
> > I think I might get cut off.
> >
> > Is it not still the case that github's 2fa needs a program running on a
> > mobile phone, or an SMS-capable mobile phone? Is there any support for
> > normal tools running on a normal Linux machine?
> >
--
You received this message because you are subscribed to the Google Groups 
"haskell-core-libraries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
haskell-core-libraries+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-core-libraries/CAHYVw0x5CTOmQDLp3%2B89muQ%2BvXgmcmgo%3DgCHs8kjBHOMb%3D5Ksw%40mail.gmail.com.
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: intent to enable 2fa requirement for github.com/haskell org

2020-03-19 Thread Richard Eisenberg


> On Mar 18, 2020, at 11:52 PM, Carter Schonwald  
> wrote:
> 
> After talking with several folks, feedback has been that best practices are 
> to make sure the notice is a week before hand. 
> 
> So what I’ll do is personally reach out to those who aren’t 2fa enabled in 
> the Haskell gh org (and haven’t commented on this thread )and ask them to 
> enable 2fa on their GitHub account. Perhaps I should attach a 2fa options 
> explainer ! 
> 
> I’ll look at folks responses and if everyone active has made the switch over, 
> I’ll look to do a transition next Monday or Tuesday. 
> 

If best practices are to wait a week... shouldn't we wait a week? There's no 
fire here.

Richard___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Getting the inferred types of TH's UnboundVarEs

2020-03-19 Thread Richard Eisenberg
Good to see you around, Sandy!

> On Mar 18, 2020, at 6:54 PM, Sandy Maguire  wrote:
> 
> I mean if `insert :: a -> Container a -> Container a`, and I call it with 
> `[e| insert 5 True |]`, the quote will fail.

I don't observe this. Specifically, when I compile

> {-# LANGUAGE TemplateHaskellQuotes #-}
> 
> module Bug where
> 
> import Prelude ( Bool(..), undefined )
> 
> data Container a
> 
> insert :: a -> Container a -> Container a
> insert = undefined
> 
> quote = [e| insert 5 True |]

GHC happily succeeds.

I think what you want, though, is reasonable: you want the ability to send an 
expression through GHC's type-checker. I think we'd need to extend TH to be 
able to support this, and it will be hard to come up with a good design, I 
think. (Specifically, I'm worried about interactions with top-level defined 
entities, whose types might not really be known by the time of splice 
processing.) This might all be worthwhile -- singletons would be able to be 
improved with this, for example -- but it's not cheap, sadly.

Richard___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: intent to enable 2fa requirement for github.com/haskell org

2020-03-19 Thread Carter Schonwald
@ Simon: you already have 2fa enabled, youre not on the list of users who
do *not* have 2fa enabled. Its just an extra login prompt the first time
you login from a new device or do anything in the "are you sure you want to
do that change".

SO enabling 2fa is largely invisible to contributors aside from the 5
minutes to setup, and the message i sent out directly to every person who
would be impacted that hasn't already replied to this email thread listed a
number of options that could choose (though i should have also included a
url, but if anyones confused i hope they ask and I can help)

@richard  indeed, this is why i also directly and individually emailed
every member/contributor of the github haskell org individually (who
doesnt have 2fa setup).  Some of them dont have an easy to track down email
address!  Basically everyone who's been active in the past two years has
responded already or indicated they'll set it up this coming weekend.  (in
1-2 cases, it helped remind that they'd forgotten to setup 2fa even though
they had planned to )



On Thu, Mar 19, 2020 at 5:44 AM Richard Eisenberg  wrote:

>
>
> On Mar 18, 2020, at 11:52 PM, Carter Schonwald 
> wrote:
>
> After talking with several folks, feedback has been that best practices
> are to make sure the notice is a week before hand.
>
> So what I’ll do is personally reach out to those who aren’t 2fa enabled in
> the Haskell gh org (and haven’t commented on this thread )and ask them to
> enable 2fa on their GitHub account. Perhaps I should attach a 2fa options
> explainer !
>
> I’ll look at folks responses and if everyone active has made the switch
> over, I’ll look to do a transition next Monday or Tuesday.
>
>
> If best practices are to wait a week... shouldn't we wait a week? There's
> no fire here.
>
> Richard
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Getting the inferred types of TH's UnboundVarEs

2020-03-19 Thread Sandy Maguire
I'm also generating code at the same time, and might have gotten confused
by that interaction :)

In the meantime I guess I'll implement HM. The world will be a much better
place when TTG is finished and we have ghc-as-an-easy-to-use-library :)

On Thu, Mar 19, 2020 at 2:51 AM Richard Eisenberg  wrote:

> Good to see you around, Sandy!
>
> On Mar 18, 2020, at 6:54 PM, Sandy Maguire  wrote:
>
> I mean if `insert :: a -> Container a -> Container a`, and I call it with
> `[e| insert 5 True |]`, the quote will fail.
>
>
> I don't observe this. Specifically, when I compile
>
> {-# LANGUAGE TemplateHaskellQuotes #-}
>
> module Bug where
>
> import Prelude ( Bool(..), undefined )
>
> data Container a
>
> insert :: a -> Container a -> Container a
> insert = undefined
>
> quote = [e| insert 5 True |]
>
>
> GHC happily succeeds.
>
> I think what you want, though, is reasonable: you want the ability to send
> an expression through GHC's type-checker. I think we'd need to extend TH to
> be able to support this, and it will be hard to come up with a good design,
> I think. (Specifically, I'm worried about interactions with top-level
> defined entities, whose types might not really be known by the time of
> splice processing.) This might all be worthwhile -- singletons would be
> able to be improved with this, for example -- but it's not cheap, sadly.
>
> Richard
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs