[Haskell-cafe] haskell flickr bindings: invalid signature when uploading

2010-12-10 Thread Dougal Stanton
into this yet, but any advice gratefully received. Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] haskell flickr bindings: invalid signature when uploading

2010-12-10 Thread Dougal Stanton
, Dougal Stanton dou...@dougalstanton.net wrote: I've mailed the maintainer of the flickr api package but thought I would see if other people had this experience too. Google doesn't reveal many people using this package as far as I can tell. In short, authentication works fine but uploading images

Re: [Haskell-cafe] who's in charge?

2010-10-27 Thread Dougal Stanton
Java to land on Planet Haskell and demand to be taken to our leader, whom would we take him to? The Haskell' committee? They're just figureheads for a shadowy cabal :-D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net

Re: [Haskell-cafe] Ed Lambda: Functional programming meetup in Edinburgh

2010-08-30 Thread Dougal Stanton
/haskell-cafe -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] gd on Win32

2010-07-22 Thread Dougal Stanton
any response, positive or negative. My changes were a subset of what you have on github now. It's great to see it being cared for again! Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] [Newbie] What to improve in my code

2010-07-19 Thread Dougal Stanton
create more semi-words: can't - can, t shouldn't - shouldn t It might be better regarding in-word apostrophes as letters in this case? -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Re: cabal: other-modules

2010-04-15 Thread Dougal Stanton
On Thu, Apr 15, 2010 at 1:49 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Johannes Waldmann waldm...@imn.htwk-leipzig.de writes: What happened was this: I still don't see why this other-modules is needed. Ok, I understand the technical reason that cabal does not do dependency

Re: [Haskell-cafe] developing against privately patched libraries, and cabal

2010-03-23 Thread Dougal Stanton
guess it's too easy to abuse (says he who was planning to abuse it) but it's sad that there isn't something I can easily use in its place. At the moment renaming the package is serving my purpose. Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net

[Haskell-cafe] Hackape package lackage

2010-03-22 Thread Dougal Stanton
Hackage seems to be down again. $ cabal update Downloading package list from server 'http://hackage.haskell.org/packages/archive' ^Ccabal: interrupted $ ping -c3 hackage.haskell.org PING abbot.galois.com (69.30.63.204) 56(84) bytes of data. --- abbot.galois.com ping statistics --- 3 packets

[Haskell-cafe] developing against privately patched libraries, and cabal

2010-03-21 Thread Dougal Stanton
of marking a version private? I thought initially to just mark the version field in the patched library as X.y-dougal and enforce my program to compile against that, but it doesn't seem to recognise the -dougal suffix there. Thoughts? D -- Dougal Stanton dou...@dougalstanton.net // http

Re: [Haskell-cafe] developing against privately patched libraries, and cabal

2010-03-21 Thread Dougal Stanton
the cabal file format doesn't seem to mention how I'd go about setting my tag field. Trying Tag: dougal1 didn't work, as I suspected ;-) In the mean time I will try Stephen Tetley's approach of renaming the package instead of the version. Cheers, D -- Dougal Stanton dou...@dougalstanton.net

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Dougal Stanton
And, I've search the meaning of the symbol ~, but I've found nothing about this (note that's not easy to search ~ on google ...) Searching for haskell tilde produces a lot of results and they're all relevant (on the first page at least). D ___

Re: [Haskell-cafe] Is Haskell a Fanatic?

2009-12-04 Thread Dougal Stanton
. It evaluates to a new form of bottom that blackholes the entire world... I hear prototypes are already being used at the LHC for this very purpose. Well-typed doomsday machines can't go wrong ;-) D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net

Re: [Haskell-cafe] Typefuck: Brainfuck in the type system

2009-11-19 Thread Dougal Stanton
On Thu, Nov 19, 2009 at 10:47 AM, Cristiano Paris fr...@theshire.org wrote: On Mon, Nov 16, 2009 at 6:26 PM, Gwern Branwen gwe...@gmail.com wrote: ... Too late: ... http://hackage.haskell.org/package/loli What's the point with loli? Mrs Lopsided has all the loli. D -- Dougal Stanton dou

Re: [Haskell-cafe] How to use bracket properly ?

2009-10-19 Thread Dougal Stanton
this code, then I realised those aren't comment delimiters in Haskell! :-) D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

[Haskell-cafe] Hackage down

2009-10-19 Thread Dougal Stanton
Has not been responding for at least the last 12 hours. Is there somewhere to look for status reports on sysadmin details like this, so we can tell if - it's a scheduled down time - it's a problem but the admins know about it - etc etc. D -- Dougal Stanton dou...@dougalstanton.net // http

[Haskell-cafe] Examples/docs for simulated annealing bindings

2009-10-15 Thread Dougal Stanton
/HsASA-0.1 Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Debugging Haskell code

2009-09-29 Thread Dougal Stanton
On Sun, Sep 27, 2009 at 9:17 PM, Paul Moore p.f.mo...@gmail.com wrote: That's odd, it seems to be saying it's not installed at all! Hmm, no - I did a cabal install --user (because Vista doesn't let me do site-wide installs), looks like cabal list doesn't pick up user installs. Hmm, cabal

[Haskell-cafe] Edinburgh Hackathon (Hac7) summary

2009-09-27 Thread Dougal Stanton
://sparky.haskell.org:8080/; -- Duncan Coutts Thanks everyone who took part and who supplied an elegant summary of their work that weekend. I hope you all had a good time! Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net

[Haskell-cafe] Edinburgh Hackathon round-up

2009-08-31 Thread Dougal Stanton
. But please pass this message along if you know there's someone we missed. Cheers, Dougal -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] is closing a class this easy?

2009-07-18 Thread Dougal Stanton
On Fri, Jul 17, 2009 at 4:38 PM, Conor McBrideco...@strictlypositive.org wrote: class Private x where public :: (forall x. Public x = x - y) - y public f = f Pike data Pike = Pike instance Private Pike instance Public Pike -- But if I don't tell 'em

Re: [Haskell-cafe] Re: Haskell Zippers on Wikibooks: teasing! :)

2009-07-16 Thread Dougal Stanton
On Thu, Jul 16, 2009 at 12:11 PM, Heinrich Apfelmusapfel...@quantentunnel.de wrote:   Generic Programming: An introduction   http://www.cse.chalmers.se/~patrikj/poly/afp98/ It's a bit verbose at times, but you only need the first few chapters to get an idea about polynomial functors (sums

Re: [Haskell-cafe] Colour tutorial (Was: AC-Vector, AC-Colour and AC-EasyRaster-GTK)

2009-07-10 Thread Dougal Stanton
of notes: Section 4.2: Out of gamut channels be clamped to either to the range 0 to 255 -- some kind of mix-up here Section 5: Note that\n\nOne should avoid dissolving has a spurious line break, or an unfinished sentence. Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-06-30 Thread Dougal Stanton
and so on. D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Edinburgh Haskell users meeting this afternoon

2009-06-21 Thread Dougal Stanton
of Hudak's _Haskell School of Expression_ prominently. Please come up and say hello, or fire me back a note if you can't make it but are still interested in making this a regular meeting. Don't be shy about joining us if you're available though! Thanks everyone! Dougal -- Dougal Stanton dou

Re: [Haskell-cafe] Haskell Meetup groups in Glasgow

2009-06-13 Thread Dougal Stanton
. Edinburgh Uni teaches it to the first years (AFAIK), Philip Wadler works here, and the ICFP and Haskell Symposium are going to be held here later in the year. There must be more than just the two of us! :-) Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net

Re: [Haskell-cafe] I have forgotten .. my bad

2009-05-15 Thread Dougal Stanton
message above you appear to be darcs getting the root directory of the hackage server, which isn't a valid repository. Cheers, D -- Dougal Stanton dou...@dougalstanton.net // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Re: ANN: #haskell-in-depth IRC channel

2009-02-04 Thread Dougal Stanton
On Wed, Feb 4, 2009 at 5:32 AM, Benjamin L. Russell dekudekup...@yahoo.com wrote: If neither #haskell nor #haskell-in-depth is appropriate, perhaps they would feel more comfortable in a Haskell-beginners-specific channel? The danger with that is the only people who go there are beginners

Re: [Haskell-cafe] cabal list can't find Glob.cabal file?

2009-02-02 Thread Dougal Stanton
On Mon, Feb 2, 2009 at 12:01 AM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: The solution is to upgrade: $ cabal install cabal-install $ cabal --version cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library Yes, this was the problem, despite me upgrading

[Haskell-cafe] cabal list can't find Glob.cabal file?

2009-02-01 Thread Dougal Stanton
read cabal file ./Glob/0.1/Glob.cabal Any ideas? As far as Hackage and the local index are concerned, 0.1 isn't even a recent version of Glob. Why should it be looking for the file? cabal-install version 0.5.1 using version 1.4.0.1 of the Cabal library -- Dougal Stanton dou...@dougalstanton.net

Re: [Haskell-cafe] Re: Comments from OCaml Hacker Brian Hurt

2009-01-20 Thread Dougal Stanton
On Tue, Jan 20, 2009 at 3:42 PM, Heinrich Apfelmus apfel...@quantentunnel.de wrote: Let me explain this monoid magic, albeit not in this message which would become far too long, but at http://apfelmus.nfshost.com/monoid-fingertree.html That is a very nice summary! I did my own

Re: [Haskell-cafe] Re: Comments from OCaml Hacker Brian Hurt

2009-01-16 Thread Dougal Stanton
On Thu, Jan 15, 2009 at 11:54 PM, ChrisK hask...@list.mightyreason.com wrote: So the original article, which coined 'Appendable', did so without much thought in the middle of a long post. But it does show the thinking was about collections and there is one ONE instance of Monoid at

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-16 Thread Dougal Stanton
On Fri, Jan 16, 2009 at 1:23 PM, Philippa Cowderoy fli...@flippac.org wrote: On Thu, 15 Jan 2009, Lennart Augustsson wrote: If I see Monoid I know what it is, if I didn't know I could just look on Wikipedia. And if you're a typical programmer who is now learning Haskell, this will likely

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

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

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

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

Re: [Haskell-cafe] Retrospective on 2008?

2008-12-11 Thread Dougal Stanton
to only list things which cabal has control over. I don't know if anything has come of that idea. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] (no subject)

2008-11-25 Thread Dougal Stanton
2008/11/25 apostolos flessas [EMAIL PROTECTED]: hi, i am looking for someone to help me with an assignment! can anyone help me? Hi Tolis! Have a look at the homework help policy, so you know what people will and will not answer. http://www.haskell.org/haskellwiki/Homework_help Then let us

Re: [Haskell-cafe] strange ghc output

2008-10-27 Thread Dougal Stanton
On Mon, Oct 27, 2008 at 4:49 PM, brad clawsie [EMAIL PROTECTED] wrote: -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

Re: [Haskell-cafe] Terminal-like Application Design

2008-10-17 Thread Dougal Stanton
://www.dougalstanton.net/code/buses/ for this code in its wider context. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] howto mix - within do?

2008-10-17 Thread Dougal Stanton
On Fri, Oct 17, 2008 at 1:39 PM, Larry Evans [EMAIL PROTECTED] wrote: do_with_assignment.proto.hs:30:2: Couldn't match expected type `[]' against inferred type `IO' Expected type: [t] Inferred type: IO () In the expression: putStr v0= In a 'do' expression: putStr v0=

Re: [Haskell-cafe] List as input

2008-10-17 Thread Dougal Stanton
On Fri, Oct 17, 2008 at 2:21 PM, leledumbo [EMAIL PROTECTED] wrote: So, what's the solution? This one: (l::[Ord]) - readLn doesn't work (because Ord isn't a type constructor). It doesn't even comply to Haskell 98 standard. I want to be able to read any list of ordered elements. I hope to

Re: [Haskell-cafe] Libraries in home dir

2008-10-09 Thread Dougal Stanton
On Thu, Oct 9, 2008 at 2:08 PM, Mauricio [EMAIL PROTECTED] wrote: Hi, I want to use a few libraries from hackage and have already download and built them. Can I install those libraries somewhere in my home dir (I want to avoid installing as root) so that ghc can find them? If so, which

Re: [Haskell-cafe] OT: Haskell desktop wallpaper?

2008-10-08 Thread Dougal Stanton
2008/10/8 Magnus Therning [EMAIL PROTECTED]: This morning I got tired of my desktop wallpaper (one that ships with Debian's Gnome packages). Typing haskell desktop wallpaper yeilded a lot of links to wallpapers with Colleen Haskell, while she's a beautiful lady it wasn't exactly what I was

Re: [Haskell-cafe] Monad transformers [Stacking monads]

2008-10-07 Thread Dougal Stanton
On Mon, Oct 6, 2008 at 9:48 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Andrew Coppin wrote: I have some longwinded code that works, but I'm still thinking about how to do this more elegantly. It looks like what I really need is something like type M = StateT State (ResultSetT (ErrorT

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Dougal Stanton
2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think Haskell can fit into the CERN Hadrian effort currently? Where do you think think Haskell

Re: [Haskell-cafe] flipped IO sequence

2008-10-01 Thread Dougal Stanton
2008/10/1 Cetin Sert [EMAIL PROTECTED]: warn :: String → IO Int warn = return 1 putStrLn-- causes an error -- = \msg → return 1 putStrLn msg -- works just fine -- = \msg → putStrLn msg return 1 -- works just fine () :: Monad m ⇒ m b → m a → m b b a = a = \_ → b Why do

Re: [Haskell-cafe] csv one-liner

2008-09-30 Thread Dougal Stanton
signature is from memory, but you get the idea. You pass in two functions - one to deal with the Left and the other to deal with the Right, and it sorts out your result for you. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net

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

2008-09-29 Thread Dougal Stanton
On Mon, Sep 29, 2008 at 4:02 PM, Mitchell, Neil [EMAIL PROTECTED] wrote: Hi, For me, it seems that code.haskell.org is down. Is this the case for other people as well? It seems code.haskell.org regularly looses connectivity for me :-( Thanks Neil

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-26 Thread Dougal Stanton
On Fri, Sep 26, 2008 at 11:17 AM, Thomas Davie [EMAIL PROTECTED] wrote: Should you decide not to give someone something based on the fact that you either don't like them, or don't like what they'll do with the thing you give them. That rather depends what you intend to give, doesn't it? :-)

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-26 Thread Dougal Stanton
On Fri, Sep 26, 2008 at 11:32 AM, Thomas Davie [EMAIL PROTECTED] wrote: Sure it does -- it prevents the use of software for things that are closed source. Thing that are closed source is not a use of software. Programs don't become more or less capable of designing rockets or writing

Re: [Haskell-cafe] Re: The container problem

2008-09-26 Thread Dougal Stanton
On Fri, Sep 26, 2008 at 8:01 PM, Achim Schneider [EMAIL PROTECTED] wrote: But then you'll be happy to know that there's already Data.Stream.List, with more coming at the same speed as we can order pizza for dons. http://hackage.haskell.org/trac/ghc/ticket/915 I was hoping that ticket would

Re: [Haskell-cafe] Notes on the future of Haskell from ICFP

2008-09-26 Thread Dougal Stanton
On Fri, Sep 26, 2008 at 11:52 PM, Bryan O'Sullivan [EMAIL PROTECTED] wrote: Here's a writeup I posted from the conference floor this afternoon: http://www.serpentine.com/blog/2008/09/26/some-notes-on-the-future-of-haskell-and-fp/ That's a very ominous title for such a positive write-up! It's

Re: [Haskell-cafe] Packages

2008-09-23 Thread Dougal Stanton
with cabal-install if the version number in the .cabal file has changed. There doesn't seem to be a good way of forcing cabal-install to recreate a build (eg, if you want to rebuild/reinstall with profiling). I think you need to unregister the package manually first. :-( D -- Dougal Stanton [EMAIL

Re: [Haskell-cafe] about openTempFile

2008-09-17 Thread Dougal Stanton
bracket (openTempFile tmpdir name) (\(fp,h) - hClose h removeFile fp) action I don't know if this has the safety requirements you mean? -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Erroneous package listings in hackage?

2008-09-13 Thread Dougal Stanton
not available from Hackage. I've been using `cabal list | grep foo` to search for packages but that's obviously not optimal, it seems. I don't know what would clarify the matter. An available from Hackage: (yes/no) field? Or a flag to pass to `cabal list` to show Hackage stuff only? D -- Dougal

[Haskell-cafe] Erroneous package listings in hackage?

2008-09-12 Thread Dougal Stanton
$ cabal update ... $ cabal list | less ... * cairo Latest version installed: 0.9.13 Homepage: http://haskell.org/gtk2hs/ License: BSD3 ... $ cabal install cairo cabal: There is no package named cairo I must admit I was surprised to see a gtk2hs module on Hackage, but not

Re: [Haskell-cafe] packages and QuickCheck

2008-09-09 Thread Dougal Stanton
2008/9/9 Conal Elliott [EMAIL PROTECTED]: How do folks like to package up QuickCheck tests for their libraries? In the main library? As a separate repo package? Same repo separate package? Keeping tests with the tested code allows testing of non-exported functionality, but can add quite

Re: [Haskell-cafe] packages and QuickCheck

2008-09-09 Thread Dougal Stanton
On Tue, Sep 9, 2008 at 2:05 PM, Dougal Stanton [EMAIL PROTECTED] wrote: If they're in a separate package it's less easy to wire quickcheck tests into the commit procedure. And by package there, I mean repo. Obviously ;-) D ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Is there GHC 6.8.3 on Ubuntu?

2008-08-28 Thread Dougal Stanton
~/bin. D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: problem with cabal for syb-with-class

2008-08-26 Thread Dougal Stanton
On Tue, Aug 26, 2008 at 2:22 PM, Duncan Coutts [EMAIL PROTECTED] wrote: So when ghc finds that one of your modules needs to import something that is not in one of the given packages it says that it's in another package that is 'hidden'. Of course it's only hidden because Cabal told ghc to

Re: [Haskell-cafe] HTTP package: connection closing bug?

2008-08-21 Thread Dougal Stanton
paying more attention and can remember who it was, and where. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2008-08-14 Thread Dougal Stanton
2008/8/14 Sean Leather [EMAIL PROTECTED]: I can't reach www.haskell.org , and I'm having withdrawal issues. I also can't get any response from it. It's not just you! D ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Alternatives to convoluted record syntax

2008-07-03 Thread Dougal Stanton
) { queryBusNumber = Just n } in if isBusId n then os { query = b } else os Variations on that ugliness are repeated four times for other fields. Is there an alternative way to change the value of nested fields? Thanks, Dougal. -- Dougal Stanton [EMAIL PROTECTED] // http

Re: [Haskell-cafe] Alternatives to convoluted record syntax

2008-07-03 Thread Dougal Stanton
). ($%) applies the modifier (first^:second^=10) to a concrete pair. Hmm! Thanks for the pointer, but I'm not sure that would really clear things up much. It seems this may just be a wart I'll have to put up with. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Dougal Stanton
works quite well. I've had some success in the past shoving this stuff almost directly into the graph libraries and out to graphviz. Be warned that it fiddles with any file called Makefile in your working directory... Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net

Re: [Haskell-cafe] Polymorphic QuickCheck arguments

2008-06-17 Thread Dougal Stanton
of IO (). Maybe try a more complete test to see how that looks? Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Functional board games

2008-04-21 Thread Dougal Stanton
? I am writing a game of Thud (yes, from the Terry Pratchett book...) but I don't hold much hope of their being a functional-style Thud game already in existence! Cheers, D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell

Re: [Haskell-cafe] Functional board games

2008-04-21 Thread Dougal Stanton
atttempts. Also, I had been hoping to have a go with Prompt after I saw it first time round but couldn't remember what it was called! So thanks to Ryan for bringing it up again. Cheers, D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net

Re: [Haskell-cafe] Markup bug in HaskellWiki

2008-03-04 Thread Dougal Stanton
and it all works fine again. [1] http://www.dougalstanton.net/blog/index.php/2008/02/12/spot-the-deliberate-mistake -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Markup bug in HaskellWiki

2008-03-04 Thread Dougal Stanton
On 04/03/2008, Wolfgang Jeltsch [EMAIL PROTECTED] wrote: Am Dienstag, 4. März 2008 16:10 schrieb Dougal Stanton: […] There's a file called, IIRC, haskell.php with a large list of keywords. Two of them, 'unzip' and 'unzip3' appear twice. Delete one of each and it all works fine again

Re: [Haskell-cafe] ANN: Leksah 0.1 - Haskell IDE written in Haskell

2008-02-14 Thread Dougal Stanton
. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] FP and Quality

2008-02-08 Thread Dougal Stanton
. Blum, P. Kanellakis, H. Crisp, and J.A. Caruso. ProtoTech HiPer-D Joint Prototyping Demonstration Project, February 1994. Unpublished; 400 pages. Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Hamming's Problem

2008-01-18 Thread Dougal Stanton
merge (x:xs) (y:ys) | x y = x : xs `merge` (y:ys) | x y = y : (x:xs) `merge` ys | otherwise = x : xs `merge` ys -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell

[Haskell-cafe] Filter by several predicates at once

2008-01-17 Thread Dougal Stanton
] Or is there a better way of filtering by several predicates for each value without using filter p3 . filter p2 . filter p1 or filter (\v - p1 v p2 v p3 v) vs Cheers, D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe

Re: [Haskell-cafe] Filter by several predicates at once

2008-01-17 Thread Dougal Stanton
= swing any Whether that's any better than the pointwise version is up to you. I think in this case I will use the explicit version, because I wouldn't remember how swing worked. What is the motivation for the name? ;-) (Do I want to hear the answer...?) D -- Dougal Stanton [EMAIL PROTECTED

Re: [Haskell-cafe] type questions again....

2008-01-11 Thread Dougal Stanton
the notation, is that it's all Greek to me ;-) D -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Trouble with indentation

2008-01-09 Thread Dougal Stanton
, a`mod`100, a`div`100) I haven't tested this though -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Why purely in haskell?

2008-01-09 Thread Dougal Stanton
. http://research.microsoft.com/~simonpj/papers/history-of-haskell/ It's interesting reading, I promise! ;-) D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Hoogle works once more

2007-12-06 Thread Dougal Stanton
come up is a link to the library page for Data.Map. That would be a really good short-cut. Once again, thanks. Cheers, D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Advice for clean code.

2007-12-04 Thread Dougal Stanton
operation of anything. Anyone? -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Dougal Stanton
to subvert the system a bit. D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Searched for mdo on haskell.org. Found nothing.

2007-11-22 Thread Dougal Stanton
On 22/11/2007, Richard Kelsall [EMAIL PROTECTED] wrote: Did I do something wrong when searching haskell.org? You didn't use Google first? ;-) Seriously though, using the search box at haskell.org seems to be a dead loss. I'm sure this has come up in the past. D. -- Dougal Stanton [EMAIL

Re: [Haskell-cafe] ANN: The Monad.Reader Issue 9: SoC special

2007-11-19 Thread Dougal Stanton
On 19/11/2007, Wouter Swierstra [EMAIL PROTECTED] wrote: I am pleased to announce that a new issue of The Monad.Reader is now available: http://www.haskell.org/haskellwiki/The_Monad.Reader Thanks Wouter, the haiku look great! ;-) -- Dougal Stanton [EMAIL PROTECTED] // http

[Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread Dougal Stanton
:: Pointer a - a star (Just a) = a -- note this function behaves -- in an 'authentic' fashion ;-) To really complete the illusion it would be nice to replace the names Just and Nothing with PointerTo and Null. Then the constructors would really mean something. Is there a solution? -- Dougal Stanton

Re: [Haskell-cafe] Renaming constructors for readability

2007-11-13 Thread Dougal Stanton
On 13/11/2007, Henning Thielemann [EMAIL PROTECTED] wrote: On Tue, 13 Nov 2007, Dougal Stanton wrote: -- int a = 3; -- int *pa = a; ampersand :: t - Pointer t ampersand a = Just a What's bad about using 'ampersand' function as replacement for the constructor 'Just'? I also wanted

Re: [Haskell-cafe] words function

2007-11-08 Thread Dougal Stanton
' :: (String - [String]) - [String] - ([String], [String]) Of course I could be very wrong with my interpretation of your problem! Cheers, D. -- Dougal Stanton [EMAIL PROTECTED] // http://www.dougalstanton.net ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Re: Why can't Haskell be faster?

2007-10-31 Thread Dougal Stanton
On 31/10/2007, Peter Hercek [EMAIL PROTECTED] wrote: Anyway, if Haskell would do some kind of whole program analyzes and transformations it probably can mitigate all the problems to a certain degree. I think JHC is supposed to do whole-program optimisations. Rumour has it that its Hello

Re: [Haskell-cafe] viewing HS files in Firefox

2007-10-27 Thread Dougal Stanton
On 27/10/2007, Isaac Dupree [EMAIL PROTECTED] wrote: When I try to go to one of the Module.hs files, e.g. on darcs.haskell.org, it now has type HS and Firefox refuses to display it (and only lets me download it). Does anyone know how to make Firefox treat certain file types as others (HS as

Re: [Haskell-cafe] Suspected stupid Haskell Question

2007-10-17 Thread Dougal Stanton
On 17/10/2007, Big_Ham [EMAIL PROTECTED] wrote: Is there a library function to take a list of Strings and return a list of ints showing how many times each String occurs in the list. So for example: [egg, egg, cheese] would return [2,1] I couldn't find anything on a search, or anything in

Re: [Haskell-cafe] Suspected stupid Haskell Question

2007-10-17 Thread Dougal Stanton
On 17/10/2007, Dougal Stanton [EMAIL PROTECTED] wrote: No, but it is also trivial to create, with the 'group' function in Data.List. I'll stop there though, cos this could be a homework question. It's just occurred to me that answering questions like these is a bit like the prisoner's dilemma

Re: [Haskell-cafe] Re: New slogan for haskell.org

2007-10-09 Thread Dougal Stanton
On 09/10/2007, Alex Tarkovsky [EMAIL PROTECTED] wrote: Brent Yorgey wrote: Aren't you going to make one featuring a catamorphism? =) Done, thanks for the contribution! ;) Goes to look... ...oh, very impressive! ;-) Lolcats seem to have reached a terrifying new nadir. D.

Re: [Haskell-cafe] Very crazy

2007-09-25 Thread Dougal Stanton
On 25/09/2007, Andrew Coppin [EMAIL PROTECTED] wrote: Type signature is show_system :: [[Double]] - String It takes a matrix representing a system of equations, and pretty prints it. Unfortunately, doing complex formatting like that is... well, complex. The input is quite simple (it's a

Re: [Haskell-cafe] How can I stop GHCi from calling show for IOactions?

2007-09-20 Thread Dougal Stanton
On 20/09/2007, Ryan Ingram [EMAIL PROTECTED] wrote: I think a more consistent behavior would be to not print the LHS at all. If you wanted to print the result of the computation you could just do: Prelude bar 5 or, if you also wanted bound variables afterwards: Prelude (x, Just

Re: [Haskell-cafe] getting crazy with character encoding

2007-09-12 Thread Dougal Stanton
On 12/09/2007, Seth Gordon [EMAIL PROTECTED] wrote: I � Unicode. Was it intentional that the central character appears as a little '?', even though the aleph on the line above worked? Either way it would be very amusing, but for different reasons... D

Re: [Haskell-cafe] Can somebody give any advice for beginners?

2007-09-11 Thread Dougal Stanton
On 11/09/2007, Peter Verswyvelen [EMAIL PROTECTED] wrote: To me, Haskell was a bit like climbing a mountain which is largely covered by fog; you don't see anything until you've climbed high enough, and then the view is really beautiful ;-) Either that or: the foothills are glorious, but as

Re: [Haskell-cafe] turning an imperative loop to Haskell

2007-09-06 Thread Dougal Stanton
On 06/09/07, Axel Gerstenberger [EMAIL PROTECTED] wrote: module Main where import System.IO import Text.Printf main :: IO () main = do let all_results1 = take 2 $ step [1] --print $ length all_results1 -- BTW: if not commented out, --

Re: [Haskell-cafe] turning an imperative loop to Haskell

2007-09-06 Thread Dougal Stanton
On 06/09/07, Axel Gerstenberger [EMAIL PROTECTED] wrote: however,I don't get it this to work. Is it possible to see the definition of the iterate function? The online help just shows it's usage... The Haskell 98 report includes source for the standard prelude. Check 'em out...

Re: [Haskell-cafe] turning an imperative loop to Haskell

2007-09-06 Thread Dougal Stanton
On 06/09/07, Sebastian Sylvan [EMAIL PROTECTED] wrote: foo = 2 : 3 : zipWith f (drop 1 foo) foo There's also zipWith3 etc. for functions with more arguments. I think this is called taking a good thing too far, but cool too: f1 u = u + 1 f2 u v = u + v f3 u v w = u + v + w -- functions

Re: [Haskell-cafe] ANNOUNCE: Guihaskell and PropLang 0.1

2007-08-15 Thread Dougal Stanton
On 15/08/07, Asumu Takikawa [EMAIL PROTECTED] wrote: == GuiHaskell Guihaskell is a graphical REPL using PropLang, a GUI combinator library built on top of Gtk2hs, which aims to be an IDE for Haskell written in Haskell. It's still rough around the edges, so think of this as an alpha release.

Re: [Haskell-cafe] Explaining monads

2007-08-14 Thread Dougal Stanton
On 14/08/07, Ronald Guida [EMAIL PROTECTED] wrote: My present goal is to understand monads well enough to be able to explain them to others. I wonder if it's possible to create a tutorial that explains monads well enough so that they just make sense or click for people. It seems everyone

  1   2   >