Re: [Haskell-cafe] ANN: hs-dotnet, version 0.3.0

2009-01-14 Thread Eugene Kirpichov
This is terrific, thank you! btw, this will allow to write Visual Haskell in Haskell :) 2009/1/15 Sigbjorn Finne : > Hi, > > the first public release of hs-dotnet is now available - a pragmatic > take on interoperating between Haskell (via GHC) and .NET. For > downloads and (some) info, see: > >

[Haskell-cafe] ANN: hs-dotnet, version 0.3.0

2009-01-14 Thread Sigbjorn Finne
Hi, the first public release of hs-dotnet is now available - a pragmatic take on interoperating between Haskell (via GHC) and .NET. For downloads and (some) info, see: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hs-dotnet http://haskell.forkIO.com/dotnet Feedback most welcome,

[Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-14 Thread Gour
> "Mauricio" == Mauricio writes: Mauricio> You can always uuencode the pictures. Package 'dataenc' seems Mauricio> nice, although I have not used it. Thanks. It looks like a nice 'workaround' with base64 encoding. Sincerely, Gour -- Gour | Zagreb, Croatia | GPG key: C6E7162D -

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Eugene Kirpichov
Would be nice if after a failed build cabal asked whether or not to upload its log immediately, and (on the hackage side) this led to an email being sent to the maintainer. 2009/1/15 Duncan Coutts : > On Thu, 2009-01-15 at 00:22 +0100, Manlio Perillo wrote: >> Duncan Coutts ha scritto: >> > On Tue

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-14 Thread Galchin, Vasili
Hi Manlio, ok .. yeh ... I will have to remove the code in HsUnix.h and/or remove references. Currently I am trying to finish another Haskell project. I don't think these include files shouldcause "correctness" problems, yes? If so, I will get to this problem later. ??? Regards, Vasili On Wed, J

[Haskell-cafe] software correctness ... can we in FPL step up to the plate??

2009-01-14 Thread Galchin, Vasili
http://www.businessweek.com/the_thread/techbeat/archives/2009/01/nsa_dhs_industr.html?link_position=link3 ... I think that http://www.galois.com is already doing as stated in the article/ .. I sincerely think there is a segway for Haskell here with strong and static type checking.. ?? Vasili

Re: [Haskell-cafe] Re: walking a directory tree efficiently

2009-01-14 Thread Luke Palmer
On Wed, Jan 14, 2009 at 5:04 PM, Paolo Losi wrote: > > 2) I have written some support functions: mapM' and filterM' >> Are they well written and generic? >> > > mapM' is generic and already implemented: fmap > (Note that a Monad is also a Functor) Except for when it isn't, which is really ann

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Duncan Coutts
On Thu, 2009-01-15 at 00:22 +0100, Manlio Perillo wrote: > Duncan Coutts ha scritto: > > On Tue, 2009-01-13 at 19:20 +, Andrew Coppin wrote: > > > >> I vividle remember Dons repeatedly telling me that I should try out > >> [some package who's name escapes me], and then discovering that it >

[Haskell-cafe] Re: walking a directory tree efficiently

2009-01-14 Thread Paolo Losi
Hi Manlio Manlio Perillo wrote: By the way, I have managed to have a working program: http://hpaste.org/13919 I've made some some minor refinements according to my own tastes :-) http://hpaste.org/13919/diff?old=0&new=2 Please note that in both cases IO exceptions are not handled. I would

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Jonathan Cast
On Wed, 2009-01-14 at 18:59 -0500, Brandon S. Allbery KF8NH wrote: > On 2009 Jan 14, at 10:26, Neil Mitchell wrote: > As an example: > foo = u"abc\N{VULGAR FRACTION ONE HALF}" > >>> > >>> Hmm, looks nice, and sensible. But as soon as you've got \N{} > >>> syntax I want: > >>>

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Brandon S. Allbery KF8NH
On 2009 Jan 14, at 10:39, Manlio Perillo wrote: Neil Mitchell ha scritto: Hi 1) In a Python string it is available the \U{name} escape, where name is a character name in the Unicode database. As an example: foo = u"abc\N{VULGAR FRACTION ONE HALF}" Hmm, looks nice, and sensible. But a

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Brandon S. Allbery KF8NH
On 2009 Jan 14, at 10:26, Neil Mitchell wrote: As an example: foo = u"abc\N{VULGAR FRACTION ONE HALF}" Hmm, looks nice, and sensible. But as soon as you've got \N{} syntax I want: "foo\E{show i}bar" i.e. embed expressions in strings. I think this would be fantastic. why not sim

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Lennart Augustsson
With macros you can define new variable binding constructs. That's something I occasionally miss in Haskell. -- Lennart On Wed, Jan 14, 2009 at 6:48 PM, Jonathan Cast wrote: > On Wed, 2009-01-14 at 12:39 -0600, Tim Wawrzynczak wrote: >> You're probably right. >> I've played aro

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Manlio Perillo
Duncan Coutts ha scritto: On Tue, 2009-01-13 at 19:20 +, Andrew Coppin wrote: I vividle remember Dons repeatedly telling me that I should try out [some package who's name escapes me], and then discovering that it doesn't actually work on Windows at all. (Couldn't this critical information

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Alex Queiroz
Hallo, On Wed, Jan 14, 2009 at 8:47 PM, Dougal Stanton wrote: >> (defun avg (&rest args) >> (/ (apply #'+ args) (length args))) >> >> Or as a macro like this: >> >> (defmacro avg (&rest args) >> `(/ (+ ,@args) ,(length args))) >> >> The reason the macro is better is that the length of the lis

Re[2]: [Haskell-cafe] Haskell and C++ program

2009-01-14 Thread Bulat Ziganshin
Hello Jonathan, Thursday, January 15, 2009, 1:41:23 AM, you wrote: > reverseDouble = > unlines > . intro > . map show > . reverse > . map (read :: String -> Double) > . takeWhile (/= "end") > . words using arrows, this may be reversed: reverseDoub

Re: [Haskell-cafe] about System.Posix.Files.fileAccess

2009-01-14 Thread Brandon S. Allbery KF8NH
On 2009 Jan 14, at 9:02, Manlio Perillo wrote: This is of course a personal opinion, but I think the interface of: fileAccess :: FilePath -> Bool -> Bool -> Bool -> IO Bool http://haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Files.html#v :fileAccess is not very good. The und

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Duncan Coutts
On Tue, 2009-01-13 at 19:20 +, Andrew Coppin wrote: > I vividle remember Dons repeatedly telling me that I should try out > [some package who's name escapes me], and then discovering that it > doesn't actually work on Windows at all. (Couldn't this critical > information be included somewhe

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Dougal Stanton
> (defun avg (&rest args) > (/ (apply #'+ args) (length args))) > > Or as a macro like this: > > (defmacro avg (&rest args) > `(/ (+ ,@args) ,(length args))) > > The reason the macro is better is that the length of the list is known at > compile time, so you don't need to traverse the list to c

Re: [Haskell-cafe] Haskell and C++ program

2009-01-14 Thread Peter Verswyvelen
> > > PS Stroustrup's comments about vectors are at best half right; push_back > may extend the vector's length correctly, but operator[] on a vector > certainly does not do bounds checking. > Sure it does, depending on how you configured the STL library. But this is off topic :) _

Re: [Haskell-cafe] Haskell and C++ program

2009-01-14 Thread Jonathan Cast
On Wed, 2009-01-14 at 12:45 -0800, Sukit Tretriluxana wrote: > Hi all, > > I was looking around Stroustrup's website and found a simple program > that he showed how standard library can be used to make the program > succinct and safe. See > http://www.research.att.com/~bs/bs_faq2.html#simple-progr

Re: [Haskell-cafe] Looking for Haskellers on Windows

2009-01-14 Thread John Goerzen
Thank you for the hint. Please try this patch: http://git.complete.org/hdbc-odbc?a=commitdiff_plain;h=55af38aac8df9f94498680bc54af173851c32d6c and let me know if it fixes the issue for you. -- John kyra wrote: > John Goerzen wrote: >> GЭnther Schmidt wrote: >>> Kyra I've tried any sort of valu

Re: [Haskell-cafe] about System.Posix.Files.fileAccess

2009-01-14 Thread Don Stewart
manlio_perillo: > Hi. > > This is of course a personal opinion, but I think the interface of: > fileAccess :: FilePath -> Bool -> Bool -> Bool -> IO Bool > http://haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Files.html#v:fileAccess > > is not very good. > > Is it possible to desi

Re: [Haskell-cafe] ANN: HLint 1.2

2009-01-14 Thread Andrew Coppin
Neil Mitchell wrote: I can't really be blamed for making mistakes before HLint ;-) Don't worry - self-programming computers are just around the corner... ;-) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/lis

Re: [Haskell-cafe] real haskell difficulties (at least for me)

2009-01-14 Thread Andrew Coppin
Krzysztof Skrzętnicki wrote: My experience from using GHC under Windows XP is very similar. Many packages (especially those involving bindings to C packages) are at least painful to build. +1 Also have to love packages that use Unix-specific features as part of their build process. (I even

Re: [Haskell-cafe] unfoldr [ANN: HLint 1.2]

2009-01-14 Thread Andrew Coppin
Colin Adams wrote: 2009/1/13 Andrew Coppin : One of the wonderful things about Haskell is that almost any time anybody posts code, at least one person will think up an alternative but equivilent way of achieving the same goal - sometimes by radically different steps. Maybe we should have a

[Haskell-cafe] Haskell and C++ program

2009-01-14 Thread Sukit Tretriluxana
Hi all, I was looking around Stroustrup's website and found a simple program that he showed how standard library can be used to make the program succinct and safe. See http://www.research.att.com/~bs/bs_faq2.html#simple-program. I wondered how a Haskell program equivalent to it looks like and I ca

Re: [Haskell-cafe] Re: real haskell difficulties (at least for me)

2009-01-14 Thread Erik de Castro Lopo
Simon Marlow wrote: > Sounds like the Debian folks could use some help with automatically > packaging Cabal packages, though. Well I've joined the debian-haskell mailing list and I'll do what I can to help. Erik -- - Erik de Castr

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Max Rabkin
2009/1/14 Tim Wawrzynczak : > The reason the macro is better is that the length of the list is known at > compile time, so you don't need to traverse the list to calculate the length > of the list. Or you could use a real compiler (perhaps even a glorious one) that does constant folding when the l

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Tim Wawrzynczak
On Wed, Jan 14, 2009 at 1:14 PM, Jonathan Cast wrote: > On Wed, 2009-01-14 at 11:06 -0800, Max Rabkin wrote: > > On Wed, Jan 14, 2009 at 10:48 AM, Jonathan Cast > > wrote: > > > Do you have an example of > > > a macro that can't be replaced by higher-order functions and laziness? > > > > I believ

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Alex Queiroz
Hallo, On Wed, Jan 14, 2009 at 5:16 PM, Max Rabkin wrote: > On Wed, Jan 14, 2009 at 11:11 AM, Alex Queiroz wrote: >> I have one for binding GET/POST variables to regular variables >> transparently and with error checking, just inside the body of the >> macro. > > N! You reinvented PHP. W

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Max Rabkin
On Wed, Jan 14, 2009 at 11:11 AM, Alex Queiroz wrote: > I have one for binding GET/POST variables to regular variables > transparently and with error checking, just inside the body of the > macro. N! You reinvented PHP. What happens if a request variable shadows the name of another variab

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Jonathan Cast
On Wed, 2009-01-14 at 11:06 -0800, Max Rabkin wrote: > On Wed, Jan 14, 2009 at 10:48 AM, Jonathan Cast > wrote: > > Do you have an example of > > a macro that can't be replaced by higher-order functions and laziness? > > I believe I do: one macro I found useful when writing a web app in > Lisp wa

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Alex Queiroz
Hallo, On Wed, Jan 14, 2009 at 5:06 PM, Max Rabkin wrote: > On Wed, Jan 14, 2009 at 10:48 AM, Jonathan Cast > wrote: >> Do you have an example of >> a macro that can't be replaced by higher-order functions and laziness? > > I believe I do: one macro I found useful when writing a web app in > Lis

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Max Rabkin
On Wed, Jan 14, 2009 at 10:48 AM, Jonathan Cast wrote: > Do you have an example of > a macro that can't be replaced by higher-order functions and laziness? I believe I do: one macro I found useful when writing a web app in Lisp was something I called hash-bind, which binds variables to the values

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Martijn van Steenbergen
Tim Wawrzynczak wrote: Woah fellas, I wasn't trying to start a flame war, I was merely commenting that those who have not used Lisp don't really understand the power that macros can have in a language (such as Lisp) that supports them, and where code and data can be used interchangeably. And I

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Tim Wawrzynczak
On Wed, Jan 14, 2009 at 12:56 PM, Martijn van Steenbergen < mart...@van.steenbergen.nl> wrote: > Jonathan Cast wrote: > >> Haskell already has a couple of abstraction tools for dealing with code. >> One is called `first-class functions'; another is called `lazy >> evaluation'. >> > > And for all t

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Martijn van Steenbergen
Jonathan Cast wrote: Haskell already has a couple of abstraction tools for dealing with code. One is called `first-class functions'; another is called `lazy evaluation'. And for all the rest there is TH? M. ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Jonathan Cast
On Wed, 2009-01-14 at 12:39 -0600, Tim Wawrzynczak wrote: > You're probably right. > I've played around with LISP macros a little, but it seems > that most > of the cases where you would use a macro in LISP you don't > need one in > haskell due to laz

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Miguel Mitrofanov
Well, like many good programming tools, Lisp macros are another abstraction, but instead of dealing with data, they deal with code. I didn't know Lisp puts such an emphasis on the difference between code and data. ___ Haskell-Cafe mailing list Hask

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Tim Wawrzynczak
> > You're probably right. > I've played around with LISP macros a little, but it seems that most > of the cases where you would use a macro in LISP you don't need one in > haskell due to lazy evaluation. Although I haven't played around with > them enough to say much one way or another. > > Do yo

Re: [Haskell-cafe] Stack Overflow, tail recursion and CPS

2009-01-14 Thread Jonathan Cast
On Wed, 2009-01-14 at 19:19 +0100, Günther Schmidt wrote: > Hello Neil, > > thanks, that did indeed work. > > I guess I shot myself in the foot a bit here ... > > Cause my real problem isn't actually with Map but with IxSet (from HAppS) > which to my knowledge does not have some sort of strict

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Job Vranish
On Wed, Jan 14, 2009 at 12:48 PM, Tim Wawrzynczak wrote: > > >> Having an import/module feature like this would replace almost all cases >> where someone might wish for a macro system for Haskell. > > Don't say that until you've tried Lisp macros... read some of Paul Graham's > essays or try som

Re: [Haskell-cafe] Stack Overflow, tail recursion and CPS

2009-01-14 Thread Günther Schmidt
Hello Neil, thanks, that did indeed work. I guess I shot myself in the foot a bit here ... Cause my real problem isn't actually with Map but with IxSet (from HAppS) which to my knowledge does not have some sort of strict insert function. Me trying to be really clever just used Map as a rand

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread David Leimbach
On Wed, Jan 14, 2009 at 10:13 AM, David Leimbach wrote: > >> joinPath' root name = import.System.FilePath.joinPath [root,name] >> > > How is this different from > > joinPath' root name = System.FilePath.joinPath [root,name] > > > I'm sorry I didn't mean "different", I meant "better than"? I don'

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread David Leimbach
> > > joinPath' root name = import.System.FilePath.joinPath [root,name] > How is this different from joinPath' root name = System.FilePath.joinPath [root,name] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinf

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Tim Wawrzynczak
Having an import/module feature like this would replace almost all cases > where someone might wish for a macro system for Haskell. > Don't say that until you've tried Lisp macros... read some of Paul Graham's essays or try some Common Lisp for yourself... macros can be an incredibly powerful tool

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Job Vranish
What I would really like to see is locally scoped imports but with parameterized modules. (so modules could take types and values as parameters) The places where I most want a feature like this is when I have a group of helper functions that need a value that is outside the modules scope, but that

Re: [Haskell-cafe] Stack Overflow, tail recursion and CPS

2009-01-14 Thread Neil Mitchell
Hi > I have changed the insertion algo to use foldl to make it tail-recursive but > still get a stack overflow as the "insert" remains lazy. Try foldl' and insertWith' - that should work. Thanks Neil ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.

Re: [Haskell-cafe] Stack Overflow, tail recursion and CPS

2009-01-14 Thread Günther Schmidt
Hi Eugene, tried that, but since the action to be evaluated is the insertion into a structure that won't work. The strictness here doesn't go deep enough, it stopps short. Günther Am 14.01.2009, 18:27 Uhr, schrieb Eugene Kirpichov : Use foldl' ? 2009/1/14 Günther Schmidt : Hi all, I

Re: [Haskell-cafe] Monads aren't evil? I think they are.

2009-01-14 Thread Alberto G. Corona
The question of imperative versus pure declarative coding has brought to my mind some may be off-topic speculations. (so please don´t read it if you have no time to waste): I´m interested in the misterious relation bentween mathematics, algoritms and reality (see this

[Haskell-cafe] Stack Overflow, tail recursion and CPS

2009-01-14 Thread Günther Schmidt
Hi all, I get a stack overflow when I want to insert a huge, lazy list into a Map. I have changed the insertion algo to use foldl to make it tail-recursive but still get a stack overflow as the "insert" remains lazy. Could CPS be a solution in these cases? Günther _

Re: [Haskell-cafe] Re: Arch Haskell News: Jan 11 2009

2009-01-14 Thread Vesa Kaihlavirta
On Tue, Jan 13, 2009 at 9:27 PM, Peter Hercek wrote: > Hi, > > Any idea why ghc 6.10.1 is still in Testing repository on archlinux? I have some idea :P The obvious reason: we wanted to minimize the amount of breakage the upgrade would cause. My guess was that the most common usage pattern for gh

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Ketil Malde
"Neil Mitchell" writes: >> 1) In a Python string it is available the \U{name} escape, where name is >> a character name in the Unicode database. >> As an example: >> foo = u"abc\N{VULGAR FRACTION ONE HALF}" Why not: import Unicode.Entities as U foo = "abc"++U.vulgar_fraction

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Lennart Augustsson
When Haskell was designed there was a bried discussion (if my memory serves me) to have import be a decl, so it could occur anywhere a normal declaration can occur. I kinda like the idea, but some people didn't and it never happened. -- Lennart On Wed, Jan 14, 2009 at 3:12 PM, Neil Mitchell wr

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Manlio Perillo
Neil Mitchell ha scritto: Hi 1) In a Python string it is available the \U{name} escape, where name is a character name in the Unicode database. As an example: foo = u"abc\N{VULGAR FRACTION ONE HALF}" Hmm, looks nice, and sensible. But as soon as you've got \N{} syntax I want:

Re: [Haskell-cafe] HEADS UP: finalizer changes coming in GHC 6.10.2

2009-01-14 Thread Simon Marlow
Sigbjorn Finne wrote: Thanks Simon, great stuff; I like the introduction of these 'native code finalizers', they've been sorely missed at times. You don't say, but will there be a dynamic check to catch such re-entries? There is (now) a dynamic check, yes. Cheers, Simon __

Re: [Haskell-cafe] HEADS UP: finalizer changes coming in GHC 6.10.2

2009-01-14 Thread Simon Marlow
Johan Tibell wrote: On Wed, Jan 14, 2009 at 1:14 PM, Simon Marlow wrote: By popular demand, GHC 6.10.2 will support finalizers that are actually guaranteed to run, and run promptly. There aren't any API changes: this happens for finalizers created using newForeignPtr as normal. Does this eff

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Dougal Stanton
On Wed, Jan 14, 2009 at 3:12 PM, Neil Mitchell wrote: >> 2) In Python it is possible to import modules inside a function. >> >> In Haskell something like: >> >> joinPath' root name = >> joinPath [root, name] >> importing System.FilePath (joinPath) > > Looks a bit ugly, but kind of

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Neil Mitchell
>>> As an example: >>> foo = u"abc\N{VULGAR FRACTION ONE HALF}" >> >> Hmm, looks nice, and sensible. But as soon as you've got \N{} syntax I >> want: >> >> "foo\E{show i}bar" >> >> i.e. embed expressions in strings. I think this would be fantastic. > > why not simpy "foo\E{i}bar" ? Wh

Re: [Haskell-cafe] HEADS UP: finalizer changes coming in GHC 6.10.2

2009-01-14 Thread Sigbjorn Finne
Thanks Simon, great stuff; I like the introduction of these 'native code finalizers', they've been sorely missed at times. You don't say, but will there be a dynamic check to catch such re-entries? --sigbjorn On 1/14/2009 04:14, Simon Marlow wrote: By popular demand, GHC 6.10.2 will support

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread minh thu
2009/1/14 Neil Mitchell : > Hi > >> 1) In a Python string it is available the \U{name} escape, where name is >> a character name in the Unicode database. >> >> As an example: >> foo = u"abc\N{VULGAR FRACTION ONE HALF}" > > Hmm, looks nice, and sensible. But as soon as you've got \N{}

Re: [Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Neil Mitchell
Hi > 1) In a Python string it is available the \U{name} escape, where name is > a character name in the Unicode database. > > As an example: > foo = u"abc\N{VULGAR FRACTION ONE HALF}" Hmm, looks nice, and sensible. But as soon as you've got \N{} syntax I want: "foo\E{show i}bar" i

Re: [Haskell-cafe] HEADS UP: finalizer changes coming in GHC 6.10.2

2009-01-14 Thread Johan Tibell
On Wed, Jan 14, 2009 at 1:14 PM, Simon Marlow wrote: > By popular demand, GHC 6.10.2 will support finalizers that are actually > guaranteed to run, and run promptly. There aren't any API changes: this > happens for finalizers created using newForeignPtr as normal. Does this effect GC performance

[Haskell-cafe] some ideas for Haskell', from Python

2009-01-14 Thread Manlio Perillo
Hi. There are two features found in Python language, that I would like to see in Haskell. 1) In a Python string it is available the \U{name} escape, where name is a character name in the Unicode database. As an example: foo = u"abc\N{VULGAR FRACTION ONE HALF}" 2) In Python it is

Re: [Haskell-cafe] walking a directory tree efficiently

2009-01-14 Thread Manlio Perillo
Don Stewart ha scritto: manlio_perillo: Hi. During a tentative (quite unsuccessfull) to convert a simple Python script that prints on stdout a directory and all its subdirectory [1] in a good Haskell (mostly to start to do real practice with the language), I came across this blog post: http

Re: [Haskell-cafe] Maintaining laziness

2009-01-14 Thread Henning Thielemann
On Tue, 13 Jan 2009, Jan Christiansen wrote: I would be very interested in functions that can be improved with respect to non-strictness as test cases for my work. See the List functions in http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utility-ht Version 0.0.1 was before apply

[Haskell-cafe] about System.Posix.Files.fileAccess

2009-01-14 Thread Manlio Perillo
Hi. This is of course a personal opinion, but I think the interface of: fileAccess :: FilePath -> Bool -> Bool -> Bool -> IO Bool http://haskell.org/ghc/docs/latest/html/libraries/unix/System-Posix-Files.html#v:fileAccess is not very good. Is it possible to design (in theory) a better interface

Re: [Haskell-cafe] [ANN] Working with HLint from Emacs

2009-01-14 Thread Alex Ott
> "AV" == Andrea Vezzosi writes: AV> Does it also let you apply a suggestion automatically? Not, i'll look for this suggestion, but i'm not sure, that this is possible -- With best wishes, Alex Ott, MBA http://alexott.blogspot.com/ http://xtalk.msk.su/~ott/ http://alexott-ru.blo

[Haskell-cafe] Re: real haskell difficulties (at least for me)

2009-01-14 Thread Simon Marlow
Erik de Castro Lopo wrote: Don Stewart wrote: Well, the number one thing is to use Cabal and the cabal-install tool. That is the simplest way to avoid headaches. I'm sure cabal works very well for many people, but for anyone who has used Debian based distributions for some time, cabal real

Re: [Haskell-cafe] Recursive modules, GHC /= Report?

2009-01-14 Thread Thorkil Naur
Hello, On Wednesday 14 January 2009 12:59, Mauricio wrote: > Hi, > > Here: > > http://www.haskell.org/onlinereport/modules.html > > I read: > >"Modules may reference other modules via >explicit import declarations, each giving >the name of a module to be imported and >specifyin

[Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-14 Thread Mauricio
Mauricio> No. Only sqlite3_exec with INSERT, SELECT stuff, Mauricio> and saving everything that needs structure in pseudo-xml Mauricio> strings. Not that efficient, but easy to change to blobs when Mauricio> everything is ready and tested. I see...I'm thinking to maybe store only paths for bigger

[Haskell-cafe] HEADS UP: finalizer changes coming in GHC 6.10.2

2009-01-14 Thread Simon Marlow
By popular demand, GHC 6.10.2 will support finalizers that are actually guaranteed to run, and run promptly. There aren't any API changes: this happens for finalizers created using newForeignPtr as normal. However, there's a catch. Previously it was possible to call back into Haskell from a

[Haskell-cafe] Recursive modules, GHC /= Report?

2009-01-14 Thread Mauricio
Hi, Here: http://www.haskell.org/onlinereport/modules.html I read: "Modules may reference other modules via explicit import declarations, each giving the name of a module to be imported and specifying its entities to be imported. Modules may be mutually recursive." However, I get th

Re: [Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-14 Thread Duncan Coutts
On Wed, 2009-01-14 at 10:19 +0800, Xie Hanjian wrote: > * John Goerzen [2009-01-13 12:37:45 -0600]: > > > To anyone annoyed with Haskell's library install process: you have no > > idea how good you have it unless you've tried Ruby and rails. > > Disagree. Rubygems is fairly easy to use. At leas

Re: [Haskell-cafe] Slow Text.JSON parser

2009-01-14 Thread Ketil Malde
Sjoerd Visscher writes: > JSON is a UNICODE format, like any modern format is today. ByteStrings > are not going to work. Well, neither is String as used in the code I responded to. I'm not intimately familiar with JSON, but I believe ByteStrings would work on UTF-8 input, and both ByteString a

Re: [Haskell-beginners] Re: [Haskell-cafe] The problem with Monads...

2009-01-14 Thread Peter Verswyvelen
> > I have written a reference manual for the basic Haskell monad functions, "A > Tour of the Haskell Monad functions". It contains a lot of examples. You can > find it at: > http://members.chello.nl/hjgtuyl/tourdemonad.html Wow! I like these examples. I'm a pragmatist, and although Haskell gave

[Haskell-cafe] Re: Issues with posix-realtime package

2009-01-14 Thread Manlio Perillo
Galchin, Vasili ha scritto: Hi Manlio, Are you now talking about code in Code from HsUnix.h and execvpe.h? Yes. Manlio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: The problem with Monads...

2009-01-14 Thread Rafael Gustavo da Cunha Pereira Pinto
Wadler's examples are way better than the ones in the documentation. But without his explanations of what he is doing, the examples alone are pretty worthless. I agree that all_about_monads could be a better source for the documentation, at least for completeness. But even there I would consider c

Re: [Haskell-cafe] Re: [ANN] Working with HLint from Emacs

2009-01-14 Thread Neil Mitchell
Hi Gour, > Alex> Module is available from > Alex> http://xtalk.msk.su/~ott/common/emacs/hs-lint.el > > Module is not under some dvcs? I put it in the main HLint repo last night: http://www.cs.york.ac.uk/fp/darcs/hlint/data/hs-lint.el Please send all patches for this particular file via Alex. Th

Re: [Haskell-cafe] [ANN] Working with HLint from Emacs

2009-01-14 Thread Andrea Vezzosi
Does it also let you apply a suggestion automatically? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe