Re: [Haskell-cafe] Is withAsync absolutely safe?

2013-07-29 Thread Roman Cheplyaka
* Bertram Felgenhauer [2013-07-28 18:11:54+0200] > Roman Cheplyaka wrote: > > Can withAsync guarantee that its child will be terminated if the thread > > executing withAsync gets an exception? > > > > To remind, here's an implementation of withAsync: > > > > withAsyncUsing :: (IO () -> IO Thr

[Haskell-cafe] using network+conduit+tls for a client application?

2013-07-29 Thread Petr Pudlák
Dear Haskellers, I wanted to write a small TLS application (connecting to IMAP over TLS) and it seemed natural to use conduit for that. I found the network-conduit-tls package, but then I realized it's meant only for server applications. Is there something similar for client applications?

Re: [Haskell-cafe] using network+conduit+tls for a client application?

2013-07-29 Thread 14875
there's a similar one for client http://hackage.haskell.org/package/http-conduit-browser/ 2013/7/29 Petr Pudlák > Dear Haskellers, > > I wanted to write a small TLS application (connecting to IMAP over TLS) > and it seemed natural to use conduit for that. I found the > network-conduit-tls packa

Re: [Haskell-cafe] using network+conduit+tls for a client application?

2013-07-29 Thread Michael Snoyman
I've actually been intending to add the client side code to that package, but I simply haven't gotten around to it yet. It's actually not that complicated, but it does require some thought on the right interface for things like approving/rejecting server side certificates. If you open up an issue o

Re: [Haskell-cafe] using network+conduit+tls for a client application?

2013-07-29 Thread Vincent Hanquez
On 07/29/2013 09:08 AM, Petr Pudlák wrote: Dear Haskellers, I wanted to write a small TLS application (connecting to IMAP over TLS) and it seemed natural to use conduit for that. I found the network-conduit-tls package, but then I realized it's meant only for server applications. Is there som

Re: [Haskell-cafe] using network+conduit+tls for a client application?

2013-07-29 Thread Vincent Hanquez
On 07/29/2013 10:43 AM, Michael Snoyman wrote: I've actually been intending to add the client side code to that package, but I simply haven't gotten around to it yet. It's actually not that complicated, but it does require some thought on the right interface for things like approving/rejecting

[Haskell-cafe] [ANN] thirdake-0.1 the Makefile-like DSL

2013-07-29 Thread Sergey Mironov
Hi, cafe. Neil Mitchell mentioned more than ten build systems written in Haskell in his paper [1]. The list includes shake (of cause) Abba, Coadjuke, hake, hmk, and even two cakes. I'm glad to announce the thirdcake - a DSL for make language. Thirdcake allows user to produce clean and safe (I hop

Re: [Haskell-cafe] Rank N Kinds

2013-07-29 Thread José Pedro Magalhães
Hi, On Fri, Jul 26, 2013 at 10:42 PM, Wvv wrote: > First useful use is in Typeable. > In GHC 7.8 > class Typeable (a::k) where ... <<==>> class Typeable (a ::**) where ... > > But we can't write > data Foo (a::k)->(a::k)->* ... deriving Typeable > Why not? This works fine in 7.7, as far as I kn

[Haskell-cafe] Getting the 'ThreadId' of the calling thread

2013-07-29 Thread Nikita Karetnikov
(I'm trying to update a package that was written with GHC 6.10.4 in mind.) I feel that a 'myThreadId' action, which is defined in this module [1], is useless, but I'm not sure. I think it will always return the "Map.find: element not in the map" exception because a 'threadMap' contains an empty '

Re: [Haskell-cafe] CmdArgs non-flag arguments with newtypes

2013-07-29 Thread Michael Orlitzky
On 07/23/2013 11:48 PM, wren ng thornton wrote: > On 7/23/13 9:01 PM, Michael Orlitzky wrote: >> Obviously not what I want! Has anyone >> else run into this? Figured out a workaround? > > I haven't run into this specific problem, but I do have a sort of > workaround. Whenever dealing with CmdArgs

[Haskell-cafe] haskell.org down?

2013-07-29 Thread Paul Koerbitz
Dear list, I am not sure if this is the right place to post this, but I just went to haskell.org and got a "Sorry! This site is experiencing technical difficulties." error message. cheers Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org ht

Re: [Haskell-cafe] haskell.org down?

2013-07-29 Thread Mateusz Kowalczyk
On 29/07/13 18:39, Paul Koerbitz wrote: > Dear list, > > I am not sure if this is the right place to post this, but I just went > to haskell.org and got a > > "Sorry! This site is experiencing technical difficulties." > > error message. > > cheers > Paul > > ___

Re: [Haskell-cafe] haskell.org down?

2013-07-29 Thread Paul Koerbitz
On Mon, Jul 29, 2013 at 7:45 PM, Mateusz Kowalczyk wrote: > Sit tight. I recommend using Google cached versions of > the pages. Thanks. I hope this didn't come of as complaint. I am thankful for the work that goes into maintaining the site. Cheers Paul __