[Haskell-cafe] Haskell.org re-design

2010-03-28 Thread Christopher Done
This is a post about re-designing the whole Haskell web site. We got a new logo but didn't really take it any further. For a while there's been talk about a new design for the Haskell web site, and there are loads of web pages about Haskell that don't follow a theme consistent with Haskell.org's,

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-28 Thread Christopher Done
Fran Allen talked about this in Coders at Work (I typed this up quickly so forgive typos): Allen: Recently I realized what was probably the root cause of this: computer science had emerged between 1960 and 1970. And it mostly came out of the engineering schools; some of it came from mathematics.

Re: [Haskell-cafe] Haskell.org re-design

2010-03-28 Thread Christopher Done
On 28 March 2010 22:00, Ivan Lazar Miljenovic wrote: > > ^^ This. It's too "boring" and depressing with all that grayscale. Why > not use the coloured version of the logo ( > http://haskell.org/sitewiki/images/a/a8/Haskell-logo-60.png ) and base > the colour scheme off that? > > I tried to do th

Re: [Haskell-cafe] Re: Has "Try Haskell! An interactive tutorial in your browser" been announced yet?

2010-03-28 Thread Christopher Done
Hi Benjamin, Thanks for testing it and providing a detailed report. I've since done more work on Try Haskell, but not too much. (My job has taken up a very large amount of my time and energy. I am moving to another one currently.) I will address your points just to clear it up and maybe we can dis

Re: [Haskell-cafe] Haskell.org re-design

2010-03-28 Thread Christopher Done
On 28 March 2010 22:54, Don Stewart wrote: > This looks great! > > What are the implementation details of having this go live? > >* Ashley: would you be able to e.g. install an index.html like this, > and hang the wiki under it? >* How do we allow editing (by trusted users?) I've ema

[Haskell-cafe] Re: Haskell.org re-design

2010-03-28 Thread Christopher Done
On 28 March 2010 23:32, Ashley Yakeley wrote: > There was a big competition for the logo, with this blind Condorcet voting > and everything, and this is the shape that was picked. But it kind of ran > out of steam before colours were decided upon. So I just copied the colours > from the Haskell Pl

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-03-28 Thread Christopher Done
On 29 March 2010 00:08, Don Stewart wrote: >>> On 28 March 2010 23:25, Ashley Yakeley wrote: Is the front page a wiki page? >>> >>> By the looks of it, yes. If you go to 'Edit this page', you can see >>> that it's made out of wikimedia templates. But that's just a guess. >> >> I meant, in th

[Haskell-cafe] Re: Haskell.org re-design

2010-03-29 Thread Christopher Done
On 29 March 2010 11:19, Simon Marlow wrote: > Is the footer necessary?  I dislike sites that have too many ways to > navigate, and the footer looks superfluous.  The footer will probably be off > the bottom of the window in any case, which reduces its usefulness as a > navigation tool. Footer nav

Re: [Haskell-cafe] Re: Haskell.org re-design

2010-03-29 Thread Christopher Done
On 29 March 2010 16:16, Sean Leather wrote: > On Mon, Mar 29, 2010 at 16:24, Simon Marlow wrote: >> IMHO, these aren't compelling reasons.  Note that already on your page >> there is an inconsistency between the tabs at the top and the headings at >> the bottom: I don't know where to look to find

Re: [Haskell-cafe] Haskell.org re-design

2010-03-29 Thread Christopher Done
On 29 March 2010 21:51, Sebastiaan Visser wrote: > Nice work, definitely beats the current version! > > A few remarks: >  - Please throw in a bit more color somehow. Like said before, this shade of > gray is a bit depressive. >  - The "more" links are far to prominent. These links are not that im

Re: [Haskell-cafe] Haskell.org re-design

2010-04-01 Thread Christopher Done
On 31 March 2010 12:01, Johan Tibell wrote: > - There are several news streams going on at once. Perhaps "Headlines" > and "Events" could be merged into one stream. After watching the > Hackage RSS feed every day I don't know if it's interesting enough to > put on a front page. Perhaps in a side b

Re: [Haskell-cafe] True Random Numbers

2010-04-03 Thread Christopher Done
I've used this one before: betterStdGen :: IO StdGen betterStdGen = alloca $ \p -> do h <- openBinaryFile "/dev/random" ReadMode hGetBuf h p $ sizeOf (undefined :: Int) hClose h mkStdGen <$> peek p ___ Haskell-Cafe mailing list Haskell-Cafe@h

Re: [Haskell-cafe] Hackage and popular packages: 2010 Q1 report

2010-04-03 Thread Christopher Done
Nice report! > Downloads in March 2010: 145,752 (new monthly record) G Zurihac! Bring on SanFranHac! Nice to see wxHaskell rising up. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Happy Easter / ZJD!

2010-04-04 Thread Christopher Done
I've been having a great holiday. Messing about with Hakyll and the Cont monad all weekend. My new site and blog is built with Hakyll now! http://chrisdone.com/ Made a little post about how to use Hakyll with Git in a nice way: http://chrisdone.com/posts/2010-04-04-hakyll-and-git-for-you-blog.ht

[Haskell-cafe] Haskell JSON requests from your blog, roll your own Try Haskell!

2010-04-05 Thread Christopher Done
For those interested, http://chrisdone.com/posts/2010-04-05-haskell-json-service-tryhaskell.html I've updated the Haskell JSON service I whipped up a month ago and made it much simpler, written some sample code for how to include this in your blog or tutorials. It supports the JSONP way of making

Re: [Haskell-cafe] Hackage accounts and real names

2010-04-05 Thread Christopher Done
This discussion makes me ponder whether someone like _why the lucky stiff would ever contribute Haskell packages, hehe. I can count on two hands people I know in various programming communities who have identity issues but are prolific creators. Are we missing out? Probably. But at least there is g

Re: [Haskell-cafe] Hackage accounts and real names

2010-04-05 Thread Christopher Done
On 6 April 2010 01:52, Ivan Miljenovic wrote: > On 6 April 2010 10:48, Christopher Done wrote: >> This discussion makes me ponder whether someone like _why the lucky >> stiff would ever contribute Haskell packages, hehe. > > I think we can do without someone who hides behi

[Haskell-cafe] Haskell web dev - ASP .NET analogue?

2010-04-15 Thread Christopher Done
The state of Haskell web development is exciting and messy. We don't have a de facto way to do it like Rails or Django or ASP .NET, but we do have many imitations and ideas popping up. You can easily judge whether the community is happy with the state of web development by the number of new web fra

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

2010-05-05 Thread Christopher Done
Why does this happen so often? Broken hardware, software crash, bandwidth overuse, etc.? I have 200GB of bandwidth/month on the tryhaskell.org server. It's not much but hopefully I can make a Hackage mirror out of it one weekend for when the main server goes down. On 5 May 2010 09:05, Jens Peterse

Re: [Haskell-cafe] [ANNOUNCE] First Public Release of the Snap Framework

2010-05-24 Thread Christopher Done
Agreed, I think Snap just raised the bar for presentation of Haskell libraries. It even has a custom Haddock style sheet! I'm glad it is built up of separate packages. I also look forward to using it. On 22 May 2010 09:10, Chris Eidhof wrote: > Awesome! Congratulations on the first release, I loo

Re: [Haskell-cafe] TDD in Haskell

2010-05-25 Thread Christopher Done
On 25 May 2010 13:36, Ionut G. Stan wrote: > I'm doing TDD in pretty much all of the languages that I know, and I want to > introduce it early in my Haskell learning process. I wonder though, if > there's some established process regarding TDD, not unit testing. > > I've heard of QuickCheck and HU

Re: [Haskell-cafe] Wire GUI

2010-05-29 Thread Christopher Done
Conal Elliot's talk on "Tangible Functional Programming" might be of interest. http://www.youtube.com/watch?v=faJ8N0giqzw On 29 May 2010 09:43, Andrew Coppin wrote: > Malcolm Wallace wrote: >>> >>> I'm looking at a project which involves a GUI where you can insert >>> components and wire up conne

Re: [Haskell-cafe] design question/font metrics

2010-06-03 Thread Christopher Done
Maybe you could check out the FTGL package for inspiration on using the freetype as a conventional C library. I was going to try to write a Hackage package but realised I know nothing about typography and had to start reading the intro. on Freetype's homepage (which is pretty good, actually). Mayb

Re: [Haskell-cafe] Cabal -j

2010-06-03 Thread Christopher Done
On 4 June 2010 00:05, Don Stewart wrote: > wasserman.louis: >> What, if anything, stands in the way of parallelizing Cabal installs, make -j >> style? > > Parallelizing ghc --make > >    http://vimeo.com/6572966 Unless Louis meant what's stopping cabal-install from installing dependancies in para

Re: [Haskell-cafe] Removing alternate items from a list

2010-06-08 Thread Christopher Done
Can't forget fix in a game of code golf! > (fix $ \f (x:_: xs) -> x : f xs) [1..] => [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,4... 2010/6/8 Yitzchak Gale : > R J wrote: >> What's the cleanest definition for a function f :: [a] -> [a] that takes a >> list and returns the same lis

Re: [Haskell-cafe] Removing alternate items from a list

2010-06-08 Thread Christopher Done
On 8 June 2010 15:13, Jürgen Doser wrote: > El dom, 06-06-2010 a las 14:46 +, R J escribió: >> What's the cleanest definition for a function f :: [a] -> [a] that >> takes a list and returns the same list, with alternate items removed? >>  e.g., f [0, 1, 2, 3, 4, 5] = [1,3,5]? > > adding anothe

Re: [Haskell-cafe] cabal problem on OS X

2010-06-08 Thread Christopher Done
I am also experiencing this problem. I read that the problem was fixed in the latest Cabal-install version. But I'm not sure, as I tried to install the latest Cabal-install and got 50 linker errors which I'm not prepared to tackle until the weekend. On 8 June 2010 18:21, Gordon J. Uszkay wrote:

Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-10 Thread Christopher Done
2010/6/10 Günther Schmidt : > Hi everyone, > > I'm about to write a rather lengthy piece of IO code. Depending on the > results of some of the IO actions I'd like the computation to stop right > there and then. What's wrong with a mere if/else condition? foo = do bar x <- mu case x of B

Re: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-11 Thread Christopher Done
On 11 June 2010 10:12, Roman Cheplyaka wrote: > * Günther Schmidt [2010-06-11 01:22:27+0200] >> there is nothing wrong with ifs as such except the won't actually >> exit a long piece of code, the computation will continue, just in a >> useless way. > > Can you clarify? I think Günther assumed th

Re: Re[2]: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-11 Thread Christopher Done
On 11 June 2010 14:27, Bulat Ziganshin wrote: > i format it this way: > > if x then return () else do > bar > continueComputation That's a nice way of formatting! God bless optional formatting! I like this problem-specific indentation. Another is: if xthen foo else if y then bar else if

Re: Re[4]: [Haskell-cafe] Using the ContT monads for early exits of IO ?

2010-06-11 Thread Christopher Done
On 11 June 2010 14:40, Bulat Ziganshin wrote: >> if x        then foo >> else if y then bar >> else if z then mu >> else             zot > > case () of >  _ | x -> foo >   | y -> bar >   | otherwise -> zor > > it's usually considered as "haskell way" of doing this The example is merely to demonst

[Haskell-cafe] Encoding the encoding type of a string into its type

2010-06-11 Thread Christopher Done
There are a lot of issues with string encoding type mismatches. Especially "automatic" conversions. This mailing list gets enough posts about encoding confusions. Would it make sense to make the string depend on its encoding type? E.g. a String UTF16 cannot be used with putStrLn :: String UTF8, i

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread Christopher Done
At CREATE-NET we're hiring Haskellers. If you fancy working in Trento (Italy) and you have experience, apply here. Try these trivial questions http://hpaste.org/fastcgi/hpaste.fcgi/view?id=26317 The question list doesn't indicate expertise but it does filter out newbies. Don't bother if you struggl

Re: [Haskell-cafe] ANN: BlazeHtml 0.1

2010-06-19 Thread Christopher Done
On 19 June 2010 12:50, Jasper Van der Jeugt wrote: > Hello all, > > In light of Google Summer of Code, we are proud to release the first > version of BlazeHtml today. It's a 0.1 release, so beware of bugs! > Nevertheless, we encourage you to try it out. You can find more > information: Hurrah! I

Re: [Haskell-cafe] Mapping a list of functions

2010-06-20 Thread Christopher Done
I love that. It's great. Definitely going in my .ghci file. On 20 June 2010 12:28, Liam O'Connor wrote: > swing map :: forall a b. [a -> b] -> a -> [b] > swing any :: forall a. [a -> Bool] -> a -> Bool > swing foldr :: forall a b. b -> a -> [a -> b -> b] -> b > swing zipWith :: forall a b c. [a -

Re: [Haskell-cafe] Control.Alternative --- some and many?

2010-06-22 Thread Christopher Done
I'm not sure how Alternative differs from MonadPlus, other than being defined for Applicative rather than Monad. They have the same laws (identity and associativity). "Some" and "many" are probably motivated by their usefulness in parsers. Hence "optional", etc. I'm sure there are plenty of oth

[Haskell-cafe] FastCGI, new maintainer

2010-06-23 Thread Christopher Done
I'm the new maintainer of the FastCGI package[1]. Please upgrade to the latest version, 3001.0.2.3. It includes a fix for a special but real case in which the library throws an exception when the httpd server unexpectedly closes the connection[2], and the base version and exceptions have been upgr

[Haskell-cafe] Emacs script to align Haskell import list

2010-06-26 Thread Christopher Done
I whipped up a little Emacs script to align the import lines in the current buffer. I am using it in my projects and have experienced no problems. It's good at keeping within 80 columns. http://gist.github.com/453933 I've pasted it as a gist on Github so that anyone can edit it, gists also provid

[Haskell-cafe] Re: Emacs script to align Haskell import list

2010-06-26 Thread Christopher Done
mauke from the Freenode IRC channel has contributed a vim version: http://gist.github.com/454255 On 26 June 2010 12:25, Christopher Done wrote: > I whipped up a little Emacs script to align the import lines in the > current buffer. I am using it in my projects and have experienced no >

Re: [Haskell-cafe] RE: Haskell as a first language?

2009-07-16 Thread Christopher Done
I believe that from Scheme to Haskell is a natural transition, as I made the same transition myself. If you grasp the fundamental concepts of Scheme, Haskell seems like a step up. I will describe Haskell in terms of Scheme: # Haskell programs are more correct from the ground up Scheme will let yo

Re: [Haskell-cafe] RE: Haskell as a first language?

2009-07-16 Thread Christopher Done
2009/7/16 Daniel van den Eijkel : > In an ideal world, Haskell would be a perfect first programming language. > > But consider: If someone without any programming background learns Haskell > as first language, she or he might have big problems using any other > language after that. Unlearning what

[Haskell-cafe] Pattern matching with where free variables can be used more than once

2009-07-17 Thread Christopher Done
Wouldn't it be great if pattern variables could be used more than once in a pattern? Like so: foo [x,x,_,x] = "The values are the same!" foo _ = "They're not the same!" where this could be rewritten to: foo [x,y,_,z] | x == y && x == z = "The values are the same!" foo _

Re: [Haskell-cafe] Pattern matching with where free variables can be used more than once

2009-07-26 Thread Christopher Done
#x27; matches X is Predicate A. Likewise, for foo (x,x) = ... We can use Predicate A to compare `a' and `b', for determining whether the (x,x) pattern succeeds. 2009/7/18 Richard O'Keefe > > On Jul 18, 2009, at 6:35 AM, Christopher Done wrote: > [non-linear patterns] &

Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Christopher Done
Hey Svein, Any chance of including haskell-align-imports somehow in the next release? http://gist.github.com/453933 (Re-license it for inclusion however you wish, I don't care.) On 2 July 2010 14:27, Svein Ove Aas wrote: > I'm happy to (finally) announce haskell-mode 2.8.0, which can be found a

Re: [Haskell-cafe] ANN: Haskell-mode 2.8.0

2010-07-02 Thread Christopher Done
On 2 July 2010 14:45, Svein Ove Aas wrote: > My current project is to rewrite the indenter in haskell, using > haskell-src-exts and such. Aligning imports will probably be trivial > once that is done, but the work of integrating it now would probably > also be wasted. That sounds like a good idea

Re: [Haskell-cafe] gd on Win32

2010-07-02 Thread Christopher Done
I'll be the new maintainer. I've used it a fair bit. I'll setup a github repository. I don't have a Windows install available, but I've used Windows for development in the past. Hold up. On 2 July 2010 20:00, Jason Felice wrote: > Howdy, > > The listed maintainer for gd is no longer maintaining

Re: [Haskell-cafe] gd on Win32

2010-07-02 Thread Christopher Done
On 2 July 2010 20:29, Matthew Gruen wrote: > I was wondering the same thing about submitting patches to expose more > of the image functionality, including getting some functions to return > Either instead of failing with a runtime error. Let me know when you > get it set up. That sounds like a g

Re: [Haskell-cafe] gd on Win32

2010-07-02 Thread Christopher Done
OK, here's the cleaned up repo. ready for action: http://github.com/chrisdone/gd Uploaded to Hackage with me as maintainer: http://hackage.haskell.org/package/gd On 2 July 2010 21:34, Christopher Done wrote: > On 2 July 2010 20:29, Matthew Gruen wrote: >> I was wondering the sa

Re: [Haskell-cafe] Re: Suggestions for an MSc Project?

2010-07-04 Thread Christopher Done
On 4 July 2010 12:03, John Smith wrote: > On 04/07/2010 12:00, Ivan Lazar Miljenovic wrote: >>> >>> My interests are in higher-level application programming, rather than >>> low-level libraries or compiler hacking. >> >> What do you mean by this? > > Using web programming as an example, a CMS woul

[Haskell-cafe] The Haskell module landscape

2010-07-04 Thread Christopher Done
I was pondering how naming Haskell packages with a proper hierarchy is quite important, and wondered what the general hierarchy of the Hackage packages was like. So I grabbed the tarball of pakage descriptions[1] from Hackage and ran a little messy Haskell script[2] and got this list: http://gist.

Re: [Haskell-cafe] Re: Suggestions for an MSc Project?

2010-07-04 Thread Christopher Done
Don't you have your own ideas? I have a long line of projects *I'd* want to work on if I had the time. On 4 July 2010 20:38, John Smith wrote: > On 04/07/2010 15:44, Felipe Lessa wrote: >> >> What about [1]?  Such a graphical editor could be used, for example, >> for an EDSL.  =D >> >> Cheers, >>

[Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-06 Thread Christopher Done
One thing that would be nice is a unification of the general database libraries hsql and HDBC. What is the difference between them? Why are there two, and why are there sets of drivers for both (duplication of effort?)? I've used both in the past but I can't discern a real big difference (I used th

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-07 Thread Christopher Done
for a client, where I tried out all three and got hsql >> running easiest. A maintainer was vacant, so I stepped in happily -- doing >> refactorings, fixing problems at request, giving advice to people. >> >> I can say that I am quite a little PostgreSQL centric and that I

Re: [Haskell-cafe] bug in ghci ?

2010-07-08 Thread Christopher Done
Hehe, seems like a -W-mutual-recursive-default-methods option is in order. On 8 July 2010 15:47, Ivan Lazar Miljenovic wrote: > "Pasqualino \"Titto\" Assini" writes: > >> Thanks for the explanation. >> >> What I meant is not that is a bug that it recurses but rather the fact >> that the compiler

Re: [Haskell-cafe] Comments on Haskell 2010 Report

2010-07-09 Thread Christopher Done
On 10 July 2010 01:22, Ivan Lazar Miljenovic wrote: > > Brandon S Allbery KF8NH writes: > > > On 7/8/10 22:25 , Alex Stangl wrote: > >> 1. I.E. and e.g. should be followed by commas -- unless UK usage > >> differs from US standards. (Page 3 and elsewhere, although FFI chapter > > > > I don't thin

[Haskell-cafe] The site has been exploited (again)

2010-07-11 Thread Christopher Done
http://haskell.org/ It says "TO BUY Cilamox ONLINE", etc. Whoever has power please fix this and upgrade the bloody wiki. This is ridiculous. Point the domain at tryhaskell.org or something. I'll put a holder page up. Anything. Cheers ___ Haskell-Cafe m

Re: [Haskell-cafe] The site has been exploited (again)

2010-07-11 Thread Christopher Done
On 11 July 2010 20:53, Don Stewart wrote: > > It looks like after the Yale machine was repaved, and the mediawiki > instance restored, some plugins (and templates) went missing, including > those that previously prevented such spam accounts. > > A new machine has been purchased this week that will

Re: [Haskell-cafe] lists of arbitrary depth

2010-07-13 Thread Christopher Done
On 13 July 2010 10:58, vadali wrote: > > hello, > iam really new to haskell, > > i want to define a function which takes as a parameter a list which can > contain other lists, eg. [1,[2,3],[4,[5,6]]] > > how would i define a function that can iterate through the items so (in this > example) > iter

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-16 Thread Christopher Done
Hi Don, What's the ETA on getting the site wiki upgraded and to what version will it be? If we're looking at another couple of weeks I'll come up with a new wiki template this weekend to replace the current one. Regarding the Haskell Platform, maybe a summer theme is in order? Sunrise, here's a w

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-16 Thread Christopher Done
On 16 July 2010 20:37, Don Stewart wrote: > chrisdone: >> Regarding the Haskell Platform, maybe a summer theme is in order? >> Sunrise, here's a whole platform upgrade. Get it while it's hot, etc. > >    That's a great idea! :-) Maybe you could work on a theme like this. Probably OTT. http://img

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Christopher Done
On 17 July 2010 01:43, Don Stewart wrote: > Here's a first cut in the repo with the new design converted to CSS > >    http://code.haskell.org/haskell-platform/download-website/ > > If anyone would like to clean it up further, please send me patches to > the style.css file or index.html. Wow, thi

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Christopher Done
On 17 July 2010 13:37, Andrew Coppin wrote: > Thomas Schilling wrote: >> Haters gonna hate. > Well, I don't *hate* it. It just looks a little muddy, that's all. I tend to > go for bright primary colours. But, as you say, each to their own... > The actual layout isn't bad. A bit tall-and-thin, but

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Christopher Done
e- > From: haskell-cafe-boun...@haskell.org > [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Christopher Done > Sent: Saturday, July 17, 2010 14:32 > To: Andrew Coppin > Cc: haskell-cafe@haskell.org > Subject: Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platfor

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Christopher Done
. Like the logo. That's democracy. > Sure, there's always room for improvement.  Usability tests would be > nice, but they're also time consuming. This is what I said: > On 17 July 2010 13:31, Christopher Done wrote: >> Sadly nobody has the time nor inclination to d

Re: [Haskell-cafe] RE: Design for 2010.2.x series Haskell Platform site (Don Stewart)

2010-07-17 Thread Christopher Done
On 17 July 2010 18:18, Niemeijer, R.A. wrote: > Here's my take on the new design: > > Screenshot: http://imgur.com/9LHvk.jpg > Live version: > http://dl.dropbox.com/u/623671/haskell_platform_redesign/index.htm O, I like it! Nice one for building it. Would you consider doing a design for the

Re: [Haskell-cafe] Design for 2010.2.x series Haskell Platform site

2010-07-17 Thread Christopher Done
Thought I'd bring Neimeijer's design into the mix, because I think it's brilliant (and it's been built): (For some reason it didn't appear in this thread in my GMail inbox; perhaps the Subject field got altered. Posting this here incase it happened like that for everyone else so that we can contin

Re: [Haskell-cafe] Re: Hackage survey

2010-07-20 Thread Christopher Done
Do you value libraries/tools that are shipped through Hackage? * Yes, I always use only libraries/tools available on Hackage * Yes, but if a package is not available on Hackage, I will still use it I'm torn between the first two. I picked the first. If it's not available on Hackage, I wi

Re: [Haskell-cafe] Re: gd on Win32

2010-07-21 Thread Christopher Done
expat) but not > most. > > I'm using MinGW. > > Cheers, > Kevin > > On Jul 3, 12:27 am, Christopher Done wrote: >> OK, here's the cleaned up repo. ready for action: >> >> http://github.com/chrisdone/gd >> >> Uploaded to Hackage w

Re: [Haskell-cafe] Experiences with cabal-install and Hackage

2010-07-22 Thread Christopher Done
That sounds like a good idea. I'd like to know when my packages fail to build or show warnings about deprecated features, etc. On 22 July 2010 09:16, Ketil Malde wrote: > > I've rather recently started to use cabal-install to install packages > from Hackage.  Unfortunately, so far many packages f

Re: [Haskell-cafe] Experiences with cabal-install and Hackage

2010-07-22 Thread Christopher Done
I don't know how wise that is; I tend to fix packages when I find they're broken. I'd prefer a way for there to be more than one maintainer for a package, i.e., collaborators, like on Github, so that a maintainer can add me as a collaborator. My only problem with Hackage is I feel like the maintain

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Christopher Done
I'd only really go on a Haskell forum hosted at haskell.org. If there wlil be one, I'd moderate. Only things a forum has over a mailing list is syntax highlighting and attachments imo. Cons are being tied to a web site, anonymity, existence of moderators, etc. Seems a bit like spreading the communi

Re: [Haskell-cafe] Memory and Threads - MVars or TVars

2010-07-28 Thread Christopher Done
This could be useful: Beautiful concurrency by Simon Peyton Jones http://research.microsoft.com/en-us/um/people/simonpj/papers/stm/beautiful.pdf On 29 July 2010 02:23, Eitan Goldshtrom wrote: > Hi everyone. I was wondering if someone could just guide me toward some good > information, but if any

Re: [Haskell-cafe] Maybe to Either -- is there a better way?

2010-08-02 Thread Christopher Done
It's available in MissingH: http://hackage.haskell.org/packages/archive/MissingH/latest/doc/html/Data-Either-Utils.html#v:maybeToEither You can find this using Hayoo, which indexes Hackage. MissingH is pretty huge, though, just for one function. It's kind of annoying. I'm using this function in

Re: [Haskell-cafe] ANNOUNCE: DSTM 0.1.1

2010-08-03 Thread Christopher Done
This is very cool, thanks for writing it. I will try it when I get home tonight. On 3 August 2010 10:35, Frank Kupke wrote: > Hi, > > DSTM is an implementation of a robust distributed Software Transactional > Memory (STM) library for Haskell. Many real-life applications are > distributed by natur

Re: [Haskell-cafe] Software architecture

2010-08-04 Thread Christopher Done
This came up a month or so ago, Don Stewart and others overviewed this topic in detail: http://www.haskell.org/pipermail/haskell-cafe/2010-May/077154.html On 4 August 2010 13:07, Charles-Pierre Astolfi wrote: > Hey there, > > I'm searching for software designs in Haskell ; for example, I have a

Re: [Haskell-cafe] ANNOUNCE: DSTM 0.1.1

2010-08-04 Thread Christopher Done
On 4 August 2010 10:43, Chris Eidhof wrote: > This looks very cool! It would be nice to put the pdf online somewhere, and > add a link from the package documentation Regarding that, it would be nice if Hackage let you access the files in the package instead of having to extract the .tar.gz, as i

Re: [Haskell-cafe] Maybe to Either -- is there a better way?

2010-08-04 Thread Christopher Done
On 4 August 2010 18:40, Alexander Dunlap wrote: > It's also nice for people reading code if common functions are > functions from common libraries. This allows readers' "vocabulary" of > common functions to increase, so they don't have to trawl through > someone's personal "utility" library to fig

Re: [Haskell-cafe] hdbc-mysql broken on snow-leopard?

2010-08-08 Thread Christopher Done
Did you install libmysqlclient? sudo port install should handle this, IIRC. There's also this problem in general with MySQL, it seems: http://www.google.co.uk/#q=libmysqlclient+os+x On 8 August 2010 03:27, Carter Schonwald wrote: > Hey All, > when i build hdbc-mysql and then try to run some exa

Re: [Haskell-cafe] What is <-

2010-08-08 Thread Christopher Done
In shortyes, "do z <- ..; foo" desugars to "... >>= \z -> foo" The Haskell Report describes `do' notation in detail: http://www.haskell.org/onlinereport/exps.html#sect3.14 Real World Haskell describes its uses: http://book.realworldhaskell.org/read/io.html#io.bind On 8 August 2010 15:36, micha

Re: [Haskell-cafe] What is <-

2010-08-08 Thread Christopher Done
On 8 August 2010 16:21, michael rice wrote: > getLine >>= \x -> -- x is a string at this point > > [1..] >>= \x ->-- x is WHAT at this point? > Num n => n A number from the list. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] Some Haskell mode extensions

2010-08-09 Thread Christopher Done
Hi there, I've written some very simple Emacs modules for making using Haskell in Emacs a little bit nicer: http://github.com/chrisdone/haskell-mode-exts You can download the project with git, or pick and choose individual files: http://github.com/chrisdone/haskell-mode-exts/raw/master/haskell-

Re: [Haskell-cafe] Unused import warnings.

2010-08-10 Thread Christopher Done
On 10 August 2010 22:22, Lyndon Maydwell wrote: > Hi Cafe. > > I have written some QuickCheck properties in my source and am using > these for testing, however, when I compile my program I get warned > about unused imports: > >> Warning: Module `Test.QuickCheck' is imported, but nothing from it is

Re: [Haskell-cafe] Unused import warnings.

2010-08-10 Thread Christopher Done
On 10 August 2010 22:25, Lyndon Maydwell wrote: > On Wed, Aug 11, 2010 at 4:23 AM, Christopher Done > wrote: >> On 10 August 2010 22:22, Lyndon Maydwell wrote: >>> Hi Cafe. >>> >>> I have written some QuickCheck properties in my source and am using >>

Re: [Haskell-cafe] hackage.haskell.org cannot be accessed?

2010-08-12 Thread Christopher Done
We can only be so immutable. ;-) /groan On 12 August 2010 17:50, Don Stewart wrote: > ivan.miljenovic: >> On 12 August 2010 16:45, Magicloud Magiclouds >> wrote: >> > Hi, >> >  Today I found out that I cannot access hackage.haskell.org. I have >> > tried vpn/proxy to see if my network has someth

[Haskell-cafe] Maintainer wanted for pappy

2010-08-17 Thread Christopher Done
Hi, I thought I'd go through my uploaded Hackage packages and decide which ones I am going to maintain, which are worth others maintaining, and which are probably not worth maintaining (spoiler, most aren't). 1. Interested in and will continue maintaining: gd, higherorder, cgi-utils, fastcgi, irc

Re: [Haskell-cafe] Maintainer wanted for pappy

2010-08-17 Thread Christopher Done
I've never used the cairo library as it was part of gtk2hs and thus not on Hackage. Looks like it's on Hackage now as of last may. I'll take a look next time I want to do graphics. I imagine it's faster. On 17 August 2010 23:48, Felipe Lessa wrote: > On Tue, Aug 17, 2010

Re: [Haskell-cafe] Maintainer wanted for pappy

2010-08-18 Thread Christopher Done
On 18 August 2010 01:30, John Meacham wrote: > On Tue, Aug 17, 2010 at 10:38:53PM +0200, Christopher Done wrote: >> 2. Not really interested in maintaining, but in a good state and >> probably worth maintaining: >> pappy (Bryan Ford gave me permission to upload and fo

Re: [Haskell-cafe] Embedded scripting Language for haskell app

2010-08-18 Thread Christopher Done
On 18 August 2010 01:41, Felipe Lessa wrote: > On Tue, Aug 17, 2010 at 7:07 PM, Christopher Done > wrote: >> Sadly this is true. I went ahead and tested this to confirm; compiled >> mueval (which uses hint), copied the executable to a virtual machine >> and it required th

[Haskell-cafe] Creating binary distributions with Cabal

2010-08-20 Thread Christopher Done
Does Cabal have a way to produce binary distributions from a package? I need to create a binary distribution of my project which does not depend on GHC or any development tools. The package should include all required data files and configuration files. I've got the latter covered with Data-Files

Re: [Haskell-cafe] Code that writes code

2010-08-20 Thread Christopher Done
Check out the userHooks in Cabal[1]. I believe you can use, e.g. hookedPreProcessors[2], or preBuild to preprocess your files into regular Haskell files before building takes place. [1]: http://www.haskell.org/ghc/docs/6.12.1/html/libraries/Cabal/Distribution-Simple-UserHooks.html#t%3AUserHooks [

Re: [Haskell-cafe] Creating binary distributions with Cabal

2010-08-20 Thread Christopher Done
On 20 August 2010 11:43, Duncan Coutts wrote: > On 20 August 2010 10:18, Christopher Done wrote: >> Does Cabal have a way to produce binary distributions from a package? > > No but it's not too hard to do. > > If you actually want an RPM or a DEB etc, then look into

Re: [Haskell-cafe] Creating binary distributions with Cabal

2010-08-20 Thread Christopher Done
Hey autopackage looks swish! WiX also looks like a nice, more native solution for Windows. Cheers! On 20 August 2010 11:36, Magnus Therning wrote: > On Fri, Aug 20, 2010 at 10:18, Christopher Done > wrote: >> Does Cabal have a way to produce binary distributions from a package? >

Re: [Haskell-cafe] Changing my Profile

2010-08-23 Thread Christopher Done
I don't know about doing it at the server side. I've been trying to setup the right filters and quick links in my GMail to filter out emails I'm not interested. I'd like to recieve *all* emails, but be able to filter out the ones I'm not interested in so I never see them again. I tried an Uninter

Re: [Haskell-cafe] TryHaskell in the classroom!

2010-09-04 Thread Christopher Done
On 4 September 2010 02:02, Fritz Ruehr wrote: > I just wanted to send out a more public "Thanks!" to Chris Done for the > tryhaskell.org website and to everyone else > (including Chris) who was on the #haskell channel of IRC this afternoon when > I "tried haskell", along with the chat feature, > d

Re: [Haskell-cafe] ANNOUNCE: Haddock version 2.8.0 -> HTML vs. XHTML

2010-09-06 Thread Christopher Done
On 6 September 2010 17:11, Mark Lentczner wrote: > On Sep 6, 2010, at 2:40 AM, Henning Thielemann wrote: >> ... focusing on a small set of assumed popular browsers ... > > I didn't want to assume either. I ran a survey of the Haskell community and > got over a 150 responses. > On Sep 6, 2010, at

Re: [Haskell-cafe] Unified Haskell login

2010-09-19 Thread Christopher Done
OpenID sounds like a plan. I'll probably add OpenID support to hpaste.org for management over pastes/remembering user details/default language, tracking annotations of your pastes, etc. We already have an OpenID Haskell implementation. Programming sites are already using it (Google, StackOverflow),

Re: [Haskell-cafe] Web development work

2010-09-19 Thread Christopher Done
FWIW we're still looking for web programming Haskellers at CREATE-NET! http://www.haskell.org/pipermail/haskell-cafe/2010-September/083550.html On 16 September 2010 09:52, Michael Snoyman wrote: > Hi all, > > Often times when trying to pitch Haskell to potential clients the > concern is the lack

[Haskell-cafe] Can't make a derived instance of `Typeable (A B)': `A' has arguments of kind other than `*'

2010-09-24 Thread Christopher Done
Suppose I have a data type: data A f = A { a :: f Integer } why can't I derive a Typeable instance like so? deriving instance Typeable (A Maybe) I get: Can't make a derived instance of `Typeable (A Maybe)': `A' has arguments of kind other than `*' In the stand-alone deriving inst

[Haskell-cafe] Re: Can't make a derived instance of `Typeable (A B)': `A' has arguments of kind other than `*'

2010-09-24 Thread Christopher Done
Just for what it's worth, the following does work: newtype AMaybe = AMaybe { unMaybe :: A Maybe } deriving instance Typeable AMaybe Which leads me to be kind of baffled by the above error message. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org h

[Haskell-cafe] Re: Can't make a derived instance of `Typeable (A B)': `A' has arguments of kind other than `*'

2010-09-24 Thread Christopher Done
Actually I suppose the newtype one makes sense because it's opaque and not paramerized so it doesn't inspect the unMaybe. I'll think about this some more. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haske

  1   2   3   >