[Haskell-cafe] simple servers
Hi cafe looking at http://www.haskell.org/haskellwiki/Simple_Servers The last two solutions compared are forkIO vs. explicit event support (based on what was System.Event). Further reading appears to indicate that event support has been integrated into the runtime. Is it true that writing a simple server using forkIO now integrates native event loops implicitly? Or do I still need to create code that explicitly uses (what is now) GHC.Event? One last question. When writing C code, using epoll apis explicitly can impose some blocking. Is the same to be said for GHC.Event? I know all of the changes I am discussing seemed to happen in ghc more than a year ago, sorry, I just can't find anything to explicitly guide me here. Thanks! Brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] fishing for ST mutable Vector examples
hi all i was wondering if anyone could post some minimal examples on using mutable Vectors in the ST monad. i've been digging around in the usual places but haven't been able to find anything to get me over the hump thanks in advance brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] using haskell to serve with apache
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi i'm currently doing some work on a personal site and was considering giving a haskell web tool a spin. i have a fairly complex apache configuration, so i don't want to try to replace it with a native haskell server, but instead use haskell via an interface to apache (i.e. something like wsgi, plack, etc). some searching shows hyena and yesod in various states of development, but i can't figure out if they are appropriate or ready for use. anyone have experiences using haskell behind apache? should i just try out something based on fastcgi? any anecdotes welcome thanks brad -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuKoJEACgkQxRg3RkRK91PVJwCdFD4dS47KjJuMcNVZmPkYXKyU ItsAnRoYBE39XtXyXDluh+pHSxzP+Qcd =91Ql -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] .editrc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 does anyone have a .editrc they can provide that allows ghci to be used on freebsd? i'm not looking for anything fancy, just backspace not being broken etc thanks brad -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.10 (Darwin) iEYEARECAAYFAknVGdQACgkQxRg3RkRK91NZ4gCgm8Oktcs3sCYl6YoY6X4igZAR IDIAn2cpF7QnI4zz4LFN1cVlzG7qSHHk =CJXp -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] propogation of Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi. i have a partial library for parsing ogg files here: http://hpaste.org/12705 i have a question about an aspect of the code. in the function checkHeader there are a sequence of functions to check various elements in the header of a ogg file. if i test this function against a file that *isn't* an ogg file, i.e. badFile = /home/user/.bashrc :: String main = parseOgg badFile = (\x - print x) i would expect to get back the Error from the *first* function in the sequence of functions in checkHeader (oggHeaderError from the oggHeader function). but instead i always see the Error from the *last* function in the sequence, OggPacketFlagError from the OggPacketFlag function. why is this? is there any way i can get the desired behavior...i.e. see the Error from the first function in the sequence that fails? thanks brad -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkk4tQYACgkQxRg3RkRK91PD9gCePloWFIvE9WjcfApxR2RmnHQ0 pUgAn0WAzRQR/y2yE8yeYP1s7eKHyKDh =EcOM -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] strange ghc output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Schilling [EMAIL PROTECTED] writes: 2008/10/27 Dougal Stanton [EMAIL PROTECTED]: The problem is GHCi's linker. It cannot deal with duplicate symbols, is this considered a bug? by the way, a nice feature of ghc would be a --clean option to remove .hi, .o files. and maybe a --veryclean to recompile all dependencies. i have more than once rm'd my .hs files by typo... thanks - brad -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkHQS4ACgkQxRg3RkRK91MWsACfWD4kvCLvYiNaDGpVo7F8pujz uuUAn1zzhcI1hdYa9IRQNMtoW2LdIBzd =+k/m -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] strange ghc output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i have a small program i have been using routinely that has stopped working. the last alteration of my install configuration was to upgrade the haskell-feed package as arch linux recommended. here is the error i get: - - $ runghc newspage.hs GHCi runtime linker: fatal error: I found a duplicate definition for symbol fps_minimum whilst processing object file /usr/lib/bytestring-0.9.1.3/ghc-6.8.2/HSbytestring-0.9.1.3.o This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. GHCi cannot safely continue in this situation. Exiting now. Sorry. - - i have reinstalled the haskell-bytestring package, to no avail. here is the actual code i am trying to run: http://hpaste.org/11514#a0 its fairly straightforward. any clues? thanks - brad -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkF8ScACgkQxRg3RkRK91OosgCfeZIA378PleCnaxwymabNz97F TXAAnRzOhL4zQ9n9RG1oDp146a1b4ajK =qtCU -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] searchmonkey for haskell apis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i've been looking into the possibility of creating some xslt to expose haskell apis to yahoo search via searchmonkey. if you see the java api search plugin, you can see some possibilities. i was wondering if anyone maintaining any the official api docs had considered looking at searchmonkey. from a site owner's perspective, some rdf metadata can be inlined with the api docs which yahoo will automatically crawl to build up a search corpus, which could then be rendered into a display using the searchmonkey tools. this approach would be superior to the xslt approach i suggest above, since it exposes industry standard metadata that any search engine can use. the xslt approach is an option yahoo offers to let third-parties scrape sites they want put in ysearch. since two parties approaches might conflict, i thought i would send out a note. thanks. brad -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkigzvsACgkQxRg3RkRK91MwiACeJ66+jYgPfKvoYCDNYsUulnTo 308An3NrwfkGAgfWJud4MaggHf0Zh9vw =n/9o -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] wanted: Network.Curl examples
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 in search of some trivial examples using Network.Curl, preferrably posted here: http://haskell.org/haskellwiki/Network.Curl some of this stuff i can figure out, but setting the curl WriteFunction, as discussed here: http://code.haskell.org/~dons/docs/curl/Network-Curl-Opts.html#t%3AWriteFunction is nonobvious. any info would be useful, curl is a great library and it would be nice if using it were more straightforward thanks brad -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhPaAAACgkQxRg3RkRK91OQrQCfTt+xzvqIAxDkqq8/P85ZZjON HWgAoK3L/1JUQjdaWHcHfutKvI3nPJUc =BfuR -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] curl binding examples?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i was once given this snippet with reference to an earlier incarnation of the curl bindings: http://hpaste.org/3529 my guess is that this is no longer accurate documentation (?) anything that could be provided in the way of examples would be nice, i have placed a stub here: http://haskell.org/haskellwiki/Network.Curl it would be nice of people inlined small examples directly into the haddock docs for libraries. putting a minimal hello world example illustrating the basics of a library would preclude 90% of the followup questions on lists and irc. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgQrvMACgkQxRg3RkRK91NuEQCfUdInLYcjioLRsHfYGkwMW2Dp jI8An3uEuuF/aaXimZwhweJJ4zGz3CsY =qs80 -END PGP SIGNATURE- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Connection helpers: for people interested in network code
I wonder, though, what happened to the curl bindings for Haskell? i offered some time ago to look at building a cabal package and documentation for this. i would offer up excuses as to why this hasn't appeared yet, but between kids, work and ski season i just haven't allocated the time yet. sorry to all. i still hope to look into this, but fair to say i dropped the ball. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Connection helpers: for people interested in network code
Gwern Branwen [EMAIL PROTECTED] writes: i offered some time ago to look at building a cabal package and documentation for this. i would offer up excuses as to why this hasn't appeared yet, but between kids, work and ski season i just haven't allocated the time yet. sorry to all. i still hope to look into this, but fair to say i dropped the ball. Dunno. I just downloaded the git repo, and I'm not sure what's stopping anyone from uploading it to Hackage. It builds cleanly and with essentially no warning on 6.8.2, the Haddock docs build, and so on. The Cabal file itself is quite good; out of boredom, I tweaked it a little: awesome! that means someone has indeed recognized my lameness and subbed in to do what i didn't. thanks to whoever you are! sorry again for promising and not delivering [gwern, hope you don't mind if i redirect your personally reply to the list for context preservation] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Finance-Quote-Yahoo 0.5.0
a new version of Finance-Quote-Yahoo has been uploaded to hackage that breaks an api of the previous version for getting bulk historical quote information. specifically, notice this updated type signature: getHistoricalQuote :: QuoteSymbol - Day - Day - QuoteFrequency - IO (Maybe [HistoricalQuote]) the QuoteFrequency can be one of Daily, Weekly, Monthly or Dividend old code using this function will break, which is why i am notifying the list explicitly of this upload. since the versioning is still 0.* and the library is listed as experimental, users should expect changes until a 1.* version is released. brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: {SPAM 04.4} Re[2]: [Haskell-cafe] http/ftp library
On Fri, Nov 23, 2007 at 10:59:55AM +0300, Bulat Ziganshin wrote: Hello brad, Friday, November 23, 2007, 10:10:41 AM, you wrote: if you need comprehensive support of http and ftp in one api/library, as far as i know, the curl bindings are your only choice 1. Haskell binding is not mentioned at http://curl.haxx.se/libcurl/ can we do something to fix it? we should not advertize it yet as it has not been properly packaged and documented (once again, i am hoping to get to this soon!) current source: http://code.haskell.org/curl/ some examples: http://hpaste.org/3529 pgps7zbKRw4AP.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] nhc vs ghc
can anyone provide a concise list of the major differences between nhc98 and ghc? for example, can i build a cabal package with nhc98? i get that ghc and nhc98 are not interchangeable, otherwise i am not sure thanks pgpIGhA0uHtR7.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] http/ftp library
if you need comprehensive support of http and ftp in one api/library, as far as i know, the curl bindings are your only choice related...i promised a while back to support packaging and documentation of the curl bindings. this work is now delayed until freebsd 7 gains haskell support (due to acquiring new hardware, i had to upgrade my os). sorry to anyone who expected immediate results. pgp8N7UFN2PYo.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] expanded standard lib
On Wed, Nov 21, 2007 at 10:59:21AM +, Simon Peyton-Jones wrote: (Is this list complete?) i would like to see some feedback (voting/scoring/message board) system for guaging interest in needed/missing/incomplete functionality my primary concern from the start of the thread was filling holes in the libraries pgpEXXWZuPjZW.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] expanded standard lib
i would categorize myself as a purely practical programmer. i enjoy using haskell for various practical tasks and it has served me reliably. one issue i have with the library support for practical problem domains is the half-finished state of many fundamental codebases such as networking and database support. in the perl world, support for these domains is provided through cpan, and this model is viable due to the (once) massive number of perl coders out there. in the java, c# etc world, a batteries included approach implies a narrowing of options, but also an immediate delivery of functionality. so far the haskell community has taken the cpan route for most practical libs but i wonder if a batteries included approach might help get some key libraries to a more complete state. in particular, i would like to see support for basic internet protocols, database connectivity, and potentially xml parser support rolled into the ghc standard libs. there is always a strong debate on where the line is drawn, but this functionality at least shows up in a plurality of practical projects. the batteries included approach does imply choosing preferred solutions when more than one library is available, this can also be difficult. that said, i think haskell would pick up a lot of new coders if it was obvious that the functionality they were looking for came out of the base libs. i know that people will say they don't use a database or xml, but there will always be parts of a standard library that any particular coder will never touch...but still see value in the inclusion for others. comments? pgpk4lhXIlWSg.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] expanded standard lib
The problem is that only one person gets to comment on the quality of a library, the author, who is about the least objective person. i would just like to add that i have had a great deal of success with hackage and find that most libraries support what they say they will support, but often there is missing functionality that the original authors have not attended to for some reason. bugs haven't impacted me as much as missing/incomplete features. by rolling certain libraries into a base distribution, i was implying that there would be more eyeballs focusing on making them feature-complete. furthermore, by closely associating these libraries into a base distribution, there will be a sense of urgency associated with closing major bugs. in any case, batteries included or not, ghc seems to have reached a point of stability, high performance, and lots of neat fundamental features that it can be left alone for a short time. i would love to see 2008 be the year we direct time and effort to solve filling holes in the libraries. perhaps an online tool for voting for missing libraries or features would help us assess where to direct efforts. pgp7l37JKBLZn.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] expanded standard lib
whereas today the decision is often directed by what is standard?. With this solution we wouldn't have had the FiniteMap break, we could choose more equally between different data structure collections (say Edison vs. GHC libs), monad libraries, and so on. this is a good point...blessing one library can have a chilling impact on interesting alternatives. the exception i would make here is when you are coding to a known interface or protocol, in which case the matching the spec largely defines the coding exercise. pgppsDEWIdhu5.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] expanded standard lib
On Mon, Nov 19, 2007 at 05:27:30PM -0500, Thomas Hartman wrote: the php documentation has user contributed notes where people can leave sniplets of useful code as comments, eg http://www.php.net/manual/en/introduction.php I think this is a very nice feature. yup, for php it gives users a chance to suggest corrections for the numerous errors and omissions in the standard docs...:) pgpms2TfQZ0su.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] How to do this in Haskell
On Sat, Nov 10, 2007 at 11:44:54PM -0700, Chris Smith wrote: If you wanted to write a Haskell application that included a WYSIWYG HTML editor, how would you do it? use google docs, yahoo zimbra, or get one of the html editing widgets from a popular dhtml toolkit and roll your own. in any case, you needn't even leave the browser to solve this. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] package maintainers: updating your packages to work with GHC 6.8.1
On Mon, Nov 05, 2007 at 11:35:11AM +, Duncan Coutts wrote: By the way, if you have several common deps it's perfectly ok to factor them out like this: Flag splitBase Description: Choose the new smaller, split-up base package. Library Build-Depends: network, HTTP, HTTP-Simple, MissingH, time=1.1.1 if flag(splitBase) Build-Depends: base = 3, containers else Build-Depends: base 3 these look suspiciously like the deps to my own module that i uploaded last night to be in compliance for 6.8.1! thanks for cleaning it up duncan and in the future i will follow this example. a slight aside - why are .cabal files not in haskell? pgpHZPBfzivnK.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] torrent for 6.8.1?
do torrents exist for 6.8.1? my experience is that people will use torrents if they are offered and they really do lift the pressure from the origin domain (haskell.org) pgpTQvjxj07Kq.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] help needed packaging curl bindings
On Wed, Oct 31, 2007 at 01:36:40PM +, Ian Lynagh wrote: otherwise i was wondering if people had good examples to point me to for providing the cross-platform support needed for a FFI-based module such as this. i have made the necessary changes to compile the code on freebsd, but for other platforms i am not sure at all, particularly non-unix style platforms like windows. What sort of changes do you mean? the need to locate the curl library and headers in different places on different platforms. the defaults used (for linux i presume) do not work for freebsd for example. my guess is i need autotools to do this, but i am not sure pgpEydM7nKXLn.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] help needed packaging curl bindings
i have decided to take on the task of packaging-up (for hackage) and documenting the curl bindings as available here: http://code.haskell.org/curl/ if the originators of this code are reading this and do not wish me to proceed please say so, i won't be offended otherwise i was wondering if people had good examples to point me to for providing the cross-platform support needed for a FFI-based module such as this. i have made the necessary changes to compile the code on freebsd, but for other platforms i am not sure at all, particularly non-unix style platforms like windows. my guess is that providing cross-platform support requires autoconf etc prior to the hackage build process (?) any info/references appreciated thanks brad pgpgos8fJXkpz.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] freebsd-7.0BETA1 and ghc
a note recently went out regarding the first beta release of freebsd7 note that ghc is still marked as broken in the 7-branch ports tree due to issues regarding the move from gcc3x to gcc4x. if you rely on ghc, you may want to hold off on an upgrade pgpPRFO4Q1yxk.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] freebsd-7.0BETA1 and ghc
On Wed, Oct 24, 2007 at 06:14:49PM -0400, Xiao-Yong Jin wrote: Is there any hope for it to be fixed before the freeze of ports tree? i believe that is the purpose of the extended beta/rc period, to allow ports maintainers a chance to get things fixed before the main release as it stands a fix was submitted by a user but has not been entered into the main ports tree (yet): http://www.freebsd.org/cgi/query-pr.cgi?pr=117235 my impression of freebsd beta releases is that the term beta is not being casually applied (like google etc), but is a true cautionary label pgpZtrOvNFm9S.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] build problems with hscurses
hoping someone here can help me with a build problem when going through the hackage build stage, i get numerous errors like: HSCurses/Curses.hs::0: invalid preprocessing directive #def where ranges in lines from 1597 to 1621. is there a special directive i need for runhaskell? any info appreciated. (on freebsd6.2, ghc6.6.1, ncurses-5.6_1) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] build problems with hscurses
i solved this myself - for the sake of documenting the solution, i obtained the darcs version with darcs get --set-scripts-executable http://www.stefanwehr.de/darcs/hscurses/ and then a standard hackage install and i think the --set-scripts-executable in this case is significant On Tue, Oct 02, 2007 at 03:55:00PM -0700, brad clawsie wrote: hoping someone here can help me with a build problem when going through the hackage build stage, i get numerous errors like: HSCurses/Curses.hs::0: invalid preprocessing directive #def where ranges in lines from 1597 to 1621. is there a special directive i need for runhaskell? any info appreciated. (on freebsd6.2, ghc6.6.1, ncurses-5.6_1) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Text.Html
On Sat, Sep 29, 2007 at 05:27:22PM +0200, Bob wrote: Hi everybody! Where can I find a documentation or a tutorial for html combinator library Text.Html? http://www.b7j0c.org/content/haskell-newspage.xhtml is a program i wrote to create an xhtml page from some web services not a comprehensive tutorial, but a working example ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] signals lib
does System.POSIX.Signals bind to OS specific real-time POSIX signal apis? (i.e., kqueue on freebsd). ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] agda v. haskell
dons has been posting some links regarding agda on reddit. fairly interesting, a quick glance and you think you are reading haskell code. does anyone have any insights on the major differences in these languages? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Sending email from a Haskell program
an IMAP library might make for a good bounty project...i figure that you would indeed need to pay someone to untangle that standard ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Sending email from a Haskell program
jmuk's HaskellNet project from last year? http://darcs.haskell.org/SoC/haskellnet/HaskellNet/IMAP.hs sweet! was there any documentation created for this? examples? anything? have people tried to make this work with ssl/tls libs? by the way there looks like some other gems in the haskellnet dir. what exactly was haskellnet - a project to code to the major network protocols? are these libs stable? how does the HTTP lib stack up against Network.HTTP? any info on this project would be appreciated. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell Cheat Sheet?
On Tue, Sep 25, 2007 at 01:04:56PM -0700, Evan Klitzke wrote: Has anybody made (or have a link to) a Haskell reference cheat sheet? the zvon ref is pretty close: http://www.zvon.org/other/haskell/Outputglobal/index.html in that it includes an overview of operators and common apis nice that it is in html. the pdf thing seems a bit contrived to me. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Building production stable software in Haskell
On Mon, Sep 17, 2007 at 05:26:05PM +0100, Neil Mitchell wrote: Compare me changing my tagsoup library, to me changing my filepath library which comes bundled with GHC. I can do anything I want to the tagsoup library, but I need to wait at least 2 weeks and get general consensus before changing filepath. okay, but this fails in some cases. i wrote a package to obtain financial quotes. yahoo changed the webservice url on me. i rolled out a change within a day. in your model, people suffer a broken service for two weeks. clearly there is a time and a place for code review. there is also a time and a place for rapid response. Also some libraries on hackage are 0.1 etc - even the author doesn't particularly think they are stable! this is a sound practice and i applaud the authors for safely and soundly warning potential users of code immaturity. when my code has been in use for a year or so with no error reports, then i will say that it is stable and give it a 1.0 designation. until then, it is indeed in a testing mode. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Library Process (was Building production stable software in Haskell)
On Tue, Sep 18, 2007 at 07:24:08PM +0200, Sven Panne wrote: Although this statement might be a bit heretical on this list, I'll have to repeat myself again that Cabal, cabal-install, cabal-whatever will *never* be the right tool for the end user to install Haskell packages on platforms with their own packaging systems like RPM this is a valid point. personally i only install cabal packages as --user and most tool-specific package managers (cpan etc) tend to offer this as an option. cabal is still necessary. it fills the gap where most OS package platforms won't provide support. even on the most supported platform (.deb for debian and ubuntu i presume), you still likely only get about 20% of what is in hackage on your system. what about everything else? i would prefer to have cabal in place of make install. the only plausible solution i can see is generated OS packages (i.e. hackage hosts .deb, .rpm, and bsd packages on its own). this is likely the only realistic approach, but also periodically creates breakage too, particularly if the OS one day creates its own blessed packages. i would be willing to look into auto-generating freebsd packages, might be a fun project. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] haskell on llvm?
has anyone ever considered using llvm as a infrastructure for haskell compilation? it wold seem people are looking at building frontends for scheme, ocaml, etc. i don't know if an alternate backend is appropriate, but it would seem to be an interesting way to aggregate the best thinking for various optimizations over a more diverse group of developers. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] GraphicsMagick binding for Haskell
On Tue, Sep 11, 2007 at 03:41:59PM -0700, Tim Chevalier wrote: As a Hackathon project, I'm thinking of trying to write a Haskell binding for the GraphicsMagick image manipulation library (http://www.graphicsmagick.org/). please do! this would be a huge asset for us. image/graphicsmagick and curl are good examples of outstanding existing libraries that are better bound to than rewritten ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] generate a news summary page from web services
i recently worked up a little example program i use to generate a general news summary page using yahoo web services if you are interested in an example of XHT and Text.XHtml.Strict in action, you can see it here http://www.b7j0c.org/content/haskell-newspage.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] generate a news summary page from web services
On Fri, Sep 07, 2007 at 08:43:34PM -0700, Justin Bailey wrote: Could you put an example of the generated HTML up too? sure! http://www.b7j0c.org/content/newspage-sample.html which is now linked in from the original article http://www.b7j0c.org/content/haskell-newspage.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Finance-Quote-Yahoo 0.3
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Finance-Quote-Yahoo-0.3 i know minor point releases do not merit a list announcement but yahoo discontinued a url i was using to download data, so users of this package must upgrade. sorry for the hassle. thanks brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] positive Int
as far as i know, the haskell standard does not define a basic Int type that is limited to positive numbers. would a type of this kind not potentially allow us to make stronger verification statements about certain functions? for example, 'length' returns an Int, but in reality it must always return a value 0 or greater. a potential counter-argument would be the need to possibly redefine Ord etc for this more narrow type... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] positive Int
On Thu, Aug 02, 2007 at 12:17:06PM -0700, brad clawsie wrote: as far as i know, the haskell standard does not define a basic Int type that is limited to positive numbers. would a type of this kind not potentially allow us to make stronger verification statements about certain functions? for example, 'length' returns an Int, but in reality it must always return a value 0 or greater. a potential counter-argument would be the need to possibly redefine Ord etc for this more narrow type... i suppose one could also say that the range [0..] of return values is *implicit* in the function definition, so there is little value in explicitly typing it given all of the hassle of specifying a new typeclass etc sorry, yes i am talking to myself ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] RE: Definition of the Haskell standard library
On Tue, Jul 31, 2007 at 09:16:33AM -0600, Chris Smith wrote: If there could be built-in quality control in promoting certain packages, that would be great. it needs to be more fine grained. a new version of a package may indeed rollback some positive attributes (stability for example) that a previous version demonstrated...perhaps intentionally (when an author is choosing to break an api, etc), perhaps not (plain old bugs) we already have quality claims of two kinds for hackage packages: implicit (version number, 0.* indicating lack of maturity) and explicit (stability: experimental, stable, etc). allowing two scores to be maintained for stability - author score AND audience score, seems like a good way of moderating claims. simply allow people with haskell.org accounts to select a pulldown in the package listing with options for the stability score, with obvious safety features (one vote per account per package version, etc) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] RE: Definition of the Haskell standard library
The problem with generating one of those is what manages it? What package would it belong to etc. the same package that provides us with our interactive hackage prompt rebuilding a central index will be a logical post-process for the installation function ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Definition of the Haskell standard library
On Mon, Jul 30, 2007 at 05:27:21PM +0100, Duncan Coutts wrote: We have tools to solve the downloading and installing all deps problem. It's called cabal-install. It's sort-of almost ready for wider testing. duncan - will this have an interactive prompt? i have found perl -MCPAN -e shell immensely useful over the years thanks ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] curious hxt error
i am having a problem with hxt, i was wondering if anyone here has experience with it. in particular, i find that the xread function chokes on xml files with xml declarations, and i am not sure why. consider this sample script: module Main where import Text.XML.HXT.Parser main = do xml - getContents print $ head $ xread xml and this file content (test.xml): ?xml version=1.0? foobarBAR1/barbarBAR2/bar/foo running: $ runhaskell hxt.hs test.xml NTree (XError 2 \string: \?xml version=\\\1.0\\\?\\nfoobarBAR1/ba...\\ (line 1, column 6):\nunexpected xml\nexpecting legal XML name character\n) [] which clearly indicates a choke on the xml declaration but if i remove the xml declaration, i see no errors and i am able to get a valid data structure printing out any ideas? thanks brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Finance.Quote.Yahoo-0.2
On Thu, Jul 26, 2007 at 01:34:24PM -0400, Thomas Hartman wrote: I installed this and ran the sample program at http://www.b7j0c.org/content/haddock/finance-quote-yahoo/Finance-Quote-Yahoo.html This timed out. I suspect, because I am behind a corporate proxy server. i am sorry you are having difficulty thomas i use the HTTP module as the basis for making webservice requests i am not sure how proxying is handled by that package i believe some people maintaining the HTTP package read this list many operating systems allow users to stipulate a proxy through an environment variable as you note please let me know if my code breaks for some other reason, i will work hard to fix any legitimate bugs immediately ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Finance.Quote.Yahoo-0.2
i have released Finance.Quote.Yahoo 0.2 i have broken the 0.1 api, be careful if you use it i have added support for historical quotes which some people requested http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Finance-Quote-Yahoo-0.2 i received useful input from dale jordan and aaron tomb on this list in particular ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is this haskelly enough?
I've read tutorials about the syntax of Haskell, but I can't seem to find any that teach you how to really think in a Haskell way. Is there anything (books, online tutorials, exercises) that anyone could recommend? the book The Haskell School of Expression is a good printed resource in this regard one thing i like about haskell is that it the tools are very clear about enforcing many semantic elements of the language. for example, you won't have to think too much about the haskell way of doing i/o - its enforced. on the other hand, you *do* have the choice as to the degree to which you want to engage the type system, and that for me continues to be a challenge coming from a duck type world of perl for nearly a decade. i admit i started in haskell throwing strings around and even wanting to regex them to extract meaning. all perfectly legit in haskell but not really exploiting the strength of the type system to aid in the development of robust and elegant programs. to me that is the biggest challenge to thinking in a haskell way - thinking typefully. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] RE: haskell for web
On Wed, Jul 18, 2007 at 12:35:23AM +0200, Hugh Perkins wrote: If you make a mod_haskell, please make sure it's secure. It's insanely hard to convince web hosting companies to add support for new mod_myfavoritelanguagehere. i personally don't have any plans on creating mod_haskell, it is beyond my skillset and time allowance. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] RE: haskell for web
On Wed, Jul 18, 2007 at 12:17:12AM +0200, Hugh Perkins wrote: On 7/17/07, Martin Coxall [EMAIL PROTECTED] wrote: I wonder why 'we' aren't pushing things like this big time. When Ruby took off, more than anything else it was because of Rails. i agree that web programming is a domain that cannot be ignored i have wondered what it would take to get a mod_haskell for apache wash looks interesting, but very few companies and isps are going to run a niche fastcgi platform (even those already running rails). apache is still the de facto open serving platform. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Finance.Quote.Yahoo 0.1 on hackage
But, in order to use it I would need to install: 2. MssingH (just for join, replace and split?) which in turns requires: the attached patch removes the MissingH requirement, the most important I believe. i'm not sure i understand - you want to rewrite these functions that are already implemented in Data.String? why? this is why hackage exists - so you don't have to rewrite these functions. MissingH is well maintained by an experienced haskell coder and is easily installed from hackage, i don't see using it as an issue. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Maintaining the community
On Fri, Jul 13, 2007 at 02:30:49AM -0700, Jim Burton wrote: Very timely! It's sad that haskell-cafe has so much noise now. I haven't been around very long at all but it has gone downhill dramatically even in the last 6 months just look for the date of my first post... to improve the list, might i suggest - push chatter to IRC - take this service off of email entirely. try a web forum system (you may have to slum it and use php). i don't recommend nntp, that just forces us to use gmane since very few isps provide nntp now. a web forum would allow you to segment interest sections while retaining a global search etc. if you use code like slash, you can just moderate noise makers off the page. you can set up a yahoo group in ten minutes. - just get used to noise if indeed you want haskell to grow in popularity. use digest-mode, read on gmane, or use client email filters to remove individual noise generators - please don't split the lists, people will still just email cafe anyway, and it causes tension when a moderator-type continually asks them to take the issue to haskell-* - in the worst case, get volunteer moderators to filter submissions to the list. this will reduce traffic dramatically but also remove the immediacy of direct email. a web forum would probably be easier. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Finance.Quote.Yahoo 0.1 on hackage
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Finance-Quote-Yahoo-0.1 this is a simple module to get stock quote information from yahoo finance, considered alpha quality ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Network.HTTP.Simple 0.1 in hackage
i have mentioned my small Network.HTTP.Simple wrapper library here before i have made api changes and i have released it to hackage these changes are described here http://www.b7j0c.org/content/haskell-http.html this page oddly gets many non-bot hits a day, so i presume there is sufficient interest to merit major changes here on the list i have made every attempt to correctly attribute work i borrowed from the Network.HTTP authors, to whom i am grateful ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] better error expression in IO function
i am working on improving a module for getting Yahoo Finance quote data, hopefully getting it to a point that i can put it on hackage in the quote retrieval function, there are a few places i would like to call out errors. in a trivial case i could return IO (Maybe String) with Nothing signifying any error state, or Just expressing the data but i would like to be able to express some of these error cases in a more structured manner i know the Either type can be used in such a case(?), but i've had some problem locating a satisfactory example (if this is indeed appropriate) could one of the vets here provide a simplistic example expressing error cases, preferrably in the IO Monad (in case there are any gotchas there)? thanks so much! brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] In-place modification
That might eliminate the concurrency imperative (for a while!), but it doesn't adress the productivity point. My hypothesis is this: People don't like using unproductive tools, and if they don't have to, they won't. productivity is not the only metric for a tool for some people, it is performance for many employers, it is access to a vibrant labor pool for some other coders (database admins, web developers), they don't even have a choice of tool and how do we measure productivity? i would claim the tool that requires me to produce the least new code to get to a sufficient solution is the most productive. haskell's syntax and semantics can aid in reducing code, but do not address real problem domains. thats where hackage comes in. compare hackage to cpan, we've got a ways to go. i'm going to add something to hackage tonight to help! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] In-place modification
Yeah, and 640K should be enough for everybody... Again, the original statement was about 20 years down the line. Go back 20 years and people would say similar things about C (comparing it to assembly). but one could argue that the democratization of programming will indeed marginalize hair shirt tech like haskell in favor of something accesible to the wider public what is the fastest growing segment of the programming industry? web development and look at the wonderfully advanced toolkit - a document retrieval protocol hacked up as a packet abstraction (http). a markup format intended to render simple text formatting now coerced into a generalized viewport description mechanism (html). a scripting language with networking features from the 70s. and every day people are migrating existing applications to this stack. worse is better!? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Too many packages on hackage? :-)
On Sun, Jul 08, 2007 at 01:32:08PM +1000, Donald Bruce Stewart wrote: Looks like there's too many packages on hackage.haskell.org now for a single page listing: Perhaps we can have a page with just the categories, with subpages hanging off? perhaps support both views? a comprehensive listing works nicely for searching with /, cpan for example supports this with a much larger repository ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Sparse documentation
It's also nice to have some brief comments in the API docs to say what the heck a particular module is even *for*, and provide enough info on the stuff in that module that you can quickly dip into it when you can't remember the name of something... agreed. for me, the perldocs for most of the well-used perl packages are the gold standard. do a perldoc on the LWP or DBI modules, for example. i often find myself using a combination of the api docs and the zvon reference. examples are essential. it would be nice to merge these two documentation sources. from http://zvon.org/index.php?nav_id=legalmime=html i see that zvon employs a form of bsd (attribution) license of course if i can help improve documentation, let me know. its one thing that novice/hobbyist haskellers can contribute effectively ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: newports.hs utility for freebsd
What is the advantage of using Haskell in this case? bryan is correct! i hesitated to even bother the cafe list with this, considering it is so trivial, but i just wanted to learn a bit more about haskell's file and directory functionality, and this bit of code may be something others can look at for some quickie code samples dons - i will definitely finish the job and create a .cabal file, and i will post my learning experiences with the packaging tools on my site as well so other newbies can see how easy it is to create official hackage code thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: newports.hs utility for freebsd
i have written a small haskell program to solve a problem many users of freebsd may have - knowing what ports have been updated after a daily/weekly etc cvsup. this is a trivial bit of coding hardly worth attention, but if it might be of use to you, you can find it here: http://www.b7j0c.org/content/haskell-newports.html standard disclaimers - coded tested mildly by me, a hobbyist haskeller ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] update on SoC projects?
does anyone have any interesting update info on the haskell SoC (summer of code) projects? in particular i am intersted in the haskell bindings to libcurl ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] IDE?
On Mon, Jun 18, 2007 at 12:23:52PM +0800, Michael T. Richter wrote: I'm using Emacs. It gives me a text window, like any other editor window (except where it's different) when I go to the horribly kludgy, not-at-all-integrated-with-the-desktop-theme file menu. In fact it's even worse. I go File-Open File... and it gives me ... a prompt in a little command window at the bottom of the editing screen asking me for the file name. this offtopic thread is getting stale. thousands of good coders use emacs every day and are very satisfied with it. if the ui bothers you that much, initiate emacs with -nw and add these lines to your .emacs file: (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) and it will look and act like a console app. you won't be tempted to use your mouse because there will be nothing to click on. if you still don't like that, well maybe emacs is not for you. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] IDE?
Exhibit A: Package managers exist. Exhibit B: Autoconf exists. I rest my case. no. install the latest copy of ubuntu. look for the autotools. not there? thats right. somehow debian/unbuntu and derived distros are capable of installing tens of thousands of packages without nary a compiler installed. An operating system should have a simple, clear, consistent design. Not unlike a certain programming language named after a dead mathematition unix is indeed largely consistent as originally conceived and executed through most of its history. simple small tools. everything is a file. ascii config files. Still, I don't have the skill to write a functioning operating system writing an operating system in haskell would solve absolutely nothing. in the end the userland is still a much larger portion of the codebase, or should we rewrite all of that too? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] OS design FP aesthetics
software packages, configuration files, boot scripts and the like are all managaed in a purely functional way, that is, they are all built by deterministic functions and they never change after they have been built., from http://nix.cs.uu.nl/nixos/index.html One thing microsoft has being doing which is interesting is singularity. its just not clear what these projects are trying to fix. i am all for good research, indeed a lot of it manifests itself in linux, bsd etc...but chucking a decade+ of debugging, userland tools, docs, etc...its a nonstarter. who is downloading minix3? purity of design at the os level has few takers in the real world. people want high performance, small footprint, and security. linux is delivering on these as good as anything else actually in use by mass markets. there have been other softball comments here, like the offhand comment that linux is not reliable and secure, but i haven't seen any substantial commentary on why this is the case. try these comments out on the kernel mailing list if you want to be brave AND ontopic. i say all of this as a freebsd user, so don't construe my defense of linux as a political bias. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: [Haskell] Who pays for *.haskell.org machines?
is its funding will be reliable? for example, if we don't get money from Google in 2008 year? in irc some time ago i brought up the topic of something like the freebsd or wikimedia foundations, but for haskell. if you can give me a secure and trustworthy method of payment, and as a bonus, a tax receipt (what is known as 501-c-3 status in the US), i will gladly start writing checks on a yearly basis. i am sure others would join me. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] haskell version of fractal benchmark
i recently saw a (yet-another) benchark comparing various languages: http://www.timestretch.com/FractalBenchmark.html while no haskell example was listed, i thought i would try a naive implementation myself for comparison. it is available here: http://www.b7j0c.org/dev/haskell/misc/time.hs my timing of the compiled code was slightly under three seconds over a few tests, landing sort of where i would expect a naive haskell implementation to place. i am sure people here could greatly improve my attempt. it may be that my solution is not even correct. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] FP v. OOP
On Tue, Jun 05, 2007 at 05:53:33AM +0100, PR Stanley wrote: Hi BAE Systems which specialises in military technology is looking for programmers who have experience in C, C++ and Java and UML. large corporations with significant software development obligations are as interested in the market for software developers as software development technologies and methodologies. regardless of the viability of the technologies, there are simply more java coders out there than haskell coders, and it is likely that given the average salary and project quality that bae can offer, they need to be able to access the broadest pool of applicants. but there are also technical considerations. java has been in extremely wide use for nearly a decade, as has c++. using these technologies is a way to reduce risk. sometimes you don't want to reduce risk, you want to embrace it in the hopes of creating a larger payoff. one day the right kind of company may very well conclude that the potential payoff of haskell is worth the risk. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] New book: Real-World Haskell!
On Wed, May 23, 2007 at 12:40:58PM -0700, Dan Weston wrote: What power animal have you chosen for the cover of your O'Reilly book? Alas, most of the good ones are gone already! lamb-da? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Editor
it should also be noted that there are rsi issues with switching constantly between mouse and keyboard. moving to an environment that focuses on textual input (mutt+emacs+elinks on top of screen on top of xmonad) has allowed me to keep my hands in the ergonomic position dictated by my keyboard. for people with extreme-ergo keyboards (kinesis etc), keeping your fingers in position is important ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poor first impression
4) The fix to the bug is simply download and install the libreadline4 shared object. No recompilation or reinstallation necessary. i'm not sure if this has been addressed - but is there a specific reason an older version of the readline library is in use? v5 appears to be stable and has been in use for some time now. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poor first impression
On Mon, Apr 30, 2007 at 08:26:35PM +0200, [EMAIL PROTECTED] wrote: Actually some sources recommend to just symlink libreadline.so.4 to libreadline.so.5. I haven't tried, but since version 5 is supposed to be upwards compatible to version 4 it's reasonable to expect that it works (to a certain extend). there is an even simpler solution, upgrade the linux version on the build box. from a previous email by simon marlow: The tarball is built on an old RedHat 9 system with readline 4 on it rh9 is over four years old, and those four years there have been countless upgrades in many key free software packages used by linux distros. installing a modern linux on this box is a thirty minute exercise. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poor first impression
On Mon, Apr 30, 2007 at 09:53:06PM +0100, Andrew Coppin wrote: brad clawsie wrote: installing a modern linux on this box is a thirty minute exercise. Ah - a volunteer! :-) absolutely! for the low cost of one round-trip business-class seat from san jose to wherever this box is, and i will happily insert a recent ubuntu cd and click the install icon. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Poor first impression
I think it's unfair to blame GHC for not having readline; the website does indeed tell you about readline: http://www.haskell.org/ghc/download_ghc_661.html Check out the paragraph under Linux (x86). shouldn't library dependency checking be done in the ./configure script? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is there a best *nix or BSD distro for Haskell hacking?
On Sun, Apr 22, 2007 at 10:07:32AM -0400, Tom Harper wrote: I'd go with the one you feel is the best desktop OS. For me that usually counts BSD out (great server, bad desktop). this is not true. freebsd in particular supports all of the latest free desktops and also has good support for haskell packages: http://www.freebsd.org/cgi/ports.cgi?query=haskellstype=all the only downside for new users is that freebsd by default does not use a livecd for installation ubuntu offers a livecd installation and has a great selection of haskell packages as well by virtue of its debian roots ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Why Perl is more learnable than Haskell
On Wed, Apr 11, 2007 at 05:55:08AM -0700, kynn wrote: Perl is a large, ugly, messy language filled with quirks and eccentricities, while Haskell is an extremely elegant language whose design is guided by a few overriding ideas. (Or so I'm told.) i find that don's haskell hacking blog has been written with the daily hacker in mind: http://cgi.cse.unsw.edu.au/~dons/blog my own experience is that i would gladly replace perl for many tasks if haskell's libraries were *easier to use*. for common and simple tasks like reading data from a network resource (http, ftp), querying a database, accessing xml (dom, etc), its more important to me to have an api that is simple to use than one that takes an interesting approach. perl's apis for these tasks tend to be very simple. hackage seems to be on track to deliver the advantages of the cpan tool and repository, so in that sense i think one of the key advantages of perl has been adopted by the haskell community. both languages have great communities! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] LGPL libraries
(3) The GPL has never been tested in court http://www.fsf.org/news/wallace-vs-fsf note that during this thread there was a note from a contributor to promise to not sue a potentially infriging use. you should be careful of such promises, particularly considering that some fsf licenses include copyright assignment...in which case it will be the fsf enforcing the gpl, not the original authors (which is the specific purpose of the assignment). the fsf has a vested interest in showing that their licenses have teeth, although more in the case of the glp than in the lgpl. http://www.gnu.org/licenses/why-assign.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Simple HTTP lib for Windows?
hi, i have popped in on this thread before to mention my own extension to Network.HTTP (http://www.b7j0c.org/content/haskell-http.html, providing get() and head()). i would like to thank bjorn for his work on Network.HTTP and echo his observation that this package needs some work and active maintainence. i would also suggest that people needing http functionality extend his package instead of writing their own or providing quick and dirty hacks that cover 80% of the problem space, as i think others have discussed. http is a simple protocol, but it is not trivial, and reference implementations need to address the standard as completely as possible. no one is going to take haskell seriously as a practical tool if the libraries don't address the corner cases, and http has some. reading through the Network.HTTP code, it does appear that the original authors and present maintainers are concerned with standards conformance, which means reading the standard. http is becoming as integral to the development environment as file access. haskell needs an authoritative native implementation or a ffi wrapper to libcurl. developers also need to know that there is *one* reference library for http support (like perl's LWP)...likewise i think the lack of a single reference library for sql/db access is also hurting haskell adoption. perl wins here again with DBI. p.s. i would gladly volunteer to maintain the http package if i thought my haskell was export quality. it isn't. thanks brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Simple HTTP lib for Windows?
right. there's a bit of a loose group of people who want to take on the http library and practical, authoritative version, but its a lot of work. Starting with the great code already in HAppS is one option too. So yes, we need to fix it. There's people to do it. Now we just need social factors to kick in and make it happen! don is there a mailing list, or twiki to direct these efforts? i would like to help in whatever way i can, perhaps testing. i am cc'ing the cafe list because i know there are like-minded people who want to help, but can't handle the full task of authoring the code. let me know what i can do! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] re: Simple HTTP lib for Windows?
there is a Network.HTTP module, but it is not easy to use what you want is the equivalent of perl's LWP::Simple, which provides get() and head() functions i have heard that this is being worked on, in the meantime i personally use this wrapper: http://www.b7j0c.org/content/haskell-http.html that i wrote myself to provide simple get and head functionality with some trivial redirect support i use this module routinely so it should work, although i have only tested it on freebsd and linux no one else has ever looked at this so feel free to send critiques, it is mostly a hack of the get() example script distributed with the Network.HTTP module ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] re: Simple HTTP lib for Windows?
http://www.b7j0c.org/content/haskell-http.html by the way, if you cut and paste from this page, you may get html entities in place of some haskell chars, so use the direct download link: http://www.b7j0c.org/dev/haskell/lib/Network/HTTP/Simple.hs ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] trivial function application question
greetings to this helpful and informative list i have a small problem that will be certainly trivial for almost everyone reading this, i would appreciate a little help lets say i have a string s = abcdefg now i have two lists of strings, one a list of patterns to match, and a list of replacement strings: patterns = [a,b] replace = [Z,Y] from which my intent is that a be replaced by Z, b by Y etc now using the replace function from MissingH.Str (which i know is now renamed), i wish to apply replace to s using (pattern[0], replace[0]), (pattern[1], replace[1])...(pattern[N], replace[N]). i am sure there is an elegant way to apply replace to s for all of these argument pairs without composing replace N times myself, but the solution escapes me. thanks in advance for any help you can provide for this trivial issue brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] re: Improving library documentation
don, i am glad you raised this point, i was going to write a note to this list soon with a similar request i would suggest comparing perldoc to haddock and other haskell documentation tools. generally speaking, i find that documentation for perl libraries is written as if the author is enthusiastic about users understanding it. there are typically detailed function descriptions, and often inlined examples. on the other hand i have found most haddock documentation to consist merely of function signatures. as a result i have to employ spotty supplemental references like the haskell ref at zvon.org (which i am sure is a copy of a well-known reference set floating around out there), which includes some examples, or google's code search with haskell support. furthermore, perldoc has querying capabilities (-f etc) which preclude having to surf around references, another great feature. regardless of format, well-written documentation will go a long way to forwarding haskell adoption. brad ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe