Re: Phab: conditional approval

2017-09-12 Thread Simon Marlow
On 19 August 2017 at 03:56, Richard Eisenberg wrote: > Hi devs, > > When reviewing a diff on Phab, I can "accept" or "request changes". > Sometimes, though, I want to do both: I suggest very minor (e.g., typo) > changes, but then when these changes are made, I accept. I'm leery of > making the su

Re: Semigroup repeat (base package)

2017-09-12 Thread Wolfgang Jeltsch
No. Functions like foldl1 are named such because they start building a value with the first (“1”) value of a list and consequently do not work with empty lists. They have counterparts without the “1” in their names, which receive the initial value as an extra argument. Things are completely differe

Re: GHC Threads affinity

2017-09-12 Thread Takenobu Tani
Hi, Here is a simple diagram of forkIO, forkOn and forkOS: https://takenobu-hs.github.io/downloads/haskell_ghc_illustrated.pdf#page=69 Regards, Takenobu 2017-09-11 21:54 GMT+09:00 Michael Baikov : > > >> I'm developing a program that contains several kinds of threads - those > that do little

Re: Semigroup repeat (base package)

2017-09-12 Thread Sebastian Graf
It's the same convention as with other Semigroup-like functions, such as `foldl1`, `scanl1`, etc. Doesn't really makes sense to distinguish between `cycle` and `cycle1` in this case, but that's just bike shedding. Also, at some point in the future, `cycle` can go in `Data.OldList` and be replaced