Re: [Haskell-cafe] stream interface vs string interface: references

2013-09-02 Thread Richard A. O'Keefe
On 3/09/2013, at 5:17 PM, damodar kulkarni wrote: > I didn't want to clutter that thread so I am asking a question here. > Where do I find foundational and/or other good references on the topic of > "stream interface vs string interface to convert objects to text"? I tried > google but failed.

[Haskell-cafe] stream interface vs string interface: references

2013-09-02 Thread damodar kulkarni
In a reply to the question on the thread titled "Can I use String without "" in ghci?", Richard A. O'Keefe has noted that, It's also the what-Smalltalk-got-right-and-Java-got-wrong lesson: the right > way to convert objects to text is via a *stream* interface, not a *string* > interface. > I didn

[Haskell-cafe] Fw: Re: On Markdown in Haddock and why it's not going to happen

2013-09-02 Thread John MacFarlane
+++ Mateusz Kowalczyk [Sep 02 13 21:34 ]: > On 02/09/13 19:43, John MacFarlane wrote: > > When the proposal was first being discussed, I suggested that instead of > > adding markdown support to haddock, one might enhance the existing > > haddock markup, making it more expressive, so that it could e

Re: [Haskell-cafe] On Markdown in Haddock and why it's not going to happen

2013-09-02 Thread Mateusz Kowalczyk
On 02/09/13 19:43, John MacFarlane wrote: > When the proposal was first being discussed, I suggested that instead of > adding markdown support to haddock, one might enhance the existing > haddock markup, making it more expressive, so that it could encode the same > range of structural features as m

Re: [Haskell-cafe] Proposal: Generic conditions for 'if' and 'case'

2013-09-02 Thread Wvv
Thanks! It is a good toy for testing! Nicolas Trangez wrote > Here's an example implementing your proposal: > > {-# LANGUAGE RebindableSyntax #-} > > import Prelude > > class Boolean a where > toBool :: a -> Bool > > instance Boolean Bool where > toBool = id > > instance Boolean [a]

Re: [Haskell-cafe] On Markdown in Haddock and why it's not going to happen

2013-09-02 Thread John MacFarlane
When the proposal was first being discussed, I suggested that instead of adding markdown support to haddock, one might enhance the existing haddock markup, making it more expressive, so that it could encode the same range of structural features as markdown. If I'm not mistaken, currently haddock d

[Haskell-cafe] Fwd: MVar problem in acid-state?

2013-09-02 Thread Corentin Dupont
Hi the list, I have compiled my application on my PC, it works fine, but when I copy it on my server (same architecture), I get: Nomyx: thread blocked indefinitely in an MVar operation I don't use MVars in my application, is it possible that it's coming from acid-state? Thanks, Corentin __

Re: [Haskell-cafe] Proposal: Generic conditions for 'if' and 'case'

2013-09-02 Thread Nicolas Trangez
On Sun, 2013-09-01 at 15:51 -0700, Wvv wrote: > I think it is an old idea, but nevertheless. > Now we have next functions: > > if (a :: Bool) then x else y > > case b of > a1 :: Bool -> x1 > a2 :: Bool -> x2 > ... > > Let we have generic conditions for 'if' and 'case': > > class Boolean a where

[Haskell-cafe] Traversals of monomorphic containers (was: Re: mapM_ for bytestring)

2013-09-02 Thread Nicolas Trangez
# Redirected to haskell-cafe On Sun, 2013-09-01 at 14:58 +0400, Artyom Kazak wrote: > Would this be an appropriate place to propose adding mapM_ (and then > possibly mapM) to bytestring library? > > Was it suggested before? If yes, why was it rejected? This got me wondering: there are several

[Haskell-cafe] ANNOUNCE: Ajhc Haskell Compiler 0.8.0.8 Release

2013-09-02 Thread Kiwamu Okabe
We are happy to announce Ajhc 0.8.0.8. This version is a point release to fix some BUGs, and support new platforms. You can get Ajhc using "cabal install ajhc" command. The usage is found at Ajhc's project web site http://ajhc.metasepi.org/. The source code at https://github.com/ajhc/ajhc/tags. W