[Haskell-cafe] Re: malicious JS on haskell site

2010-09-18 Thread Keith Sheppard
the is the right contact and it seems like a pretty bad way to start off with people who are trying to figure out what haskell offers. Thanks, Keith On Thu, Sep 9, 2010 at 5:30 PM, Keith Sheppard keiths...@gmail.com wrote: Hello cafe, Maybe malicious isn't the right word but there is a JS based web counter

[Haskell-cafe] malicious JS on haskell site

2010-09-09 Thread Keith Sheppard
Hello cafe, Maybe malicious isn't the right word but there is a JS based web counter on http://www.haskell.org/complex/why_does_haskell_matter.html which likes to show pop up adverts. They must have switched over from counting visitors to showing adverts at some point since the web page was

[Haskell-cafe] Re: Troubles Building LLVM (Fixed)

2010-06-19 Thread Keith Sheppard
for this to take a couple of hours). ghc --version gives 6.10.4 - cabal install llvm I still don't know the root cause of the build error but now the llvm examples build and run with no errors. -Keith On Thu, Jun 17, 2010 at 10:46 PM, Keith Sheppard keiths...@gmail.com wrote: Hello All, I'm trying to get

[Haskell-cafe] Troubles Building LLVM

2010-06-17 Thread Keith Sheppard
Hello All, I'm trying to get up and running with the very interesting llvm package[1] but I'm running into problems during the linking stage. ke...@sugarglider-2:~/projects/third-party/llvm-hs-bindings/examples/ make clean all rm -f HelloJIT Fibonacci BrainF Vector Array DotProd Arith Align

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread Keith Sheppard
1) The buildbot will catch dependencies with compile errors, but only after the package has been pushed, and there is no easy way for packagers to check that this won't happen An alternate solution that can be done completely outside the hackage loop: Set up a server to poll the

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread Keith Sheppard
Sorry, rerun the build means rebuild my package and all of my package's dependencies... On Fri, Apr 23, 2010 at 7:11 PM, Keith Sheppard keiths...@gmail.com wrote: 1) The buildbot will catch dependencies with compile errors, but only after the package has been pushed, and there is no easy way

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread Keith Sheppard
What Gwern said for 1) and 3) 2) Not all head repositories are kept stable/buildable at all times. Isn't it bad practice to not have a buildable repo? In any case package owners would be free to use or ignore the data as they like, but I'm pretty sure it would be useful to many. Best, Keith

Re: [Haskell-cafe] help with Haskell programming

2010-04-18 Thread Keith Sheppard
Hello Mujtaba, I wonder is this homework? If that's the case there is nothing wrong with asking homework related questions but they should probably be marked as such. I think the most straight forward solution will use function composition (.) and the (not) function -keith On Sun, Apr 18, 2010

Re: [Haskell-cafe] Re: help with Haskell programming

2010-04-18 Thread Keith Sheppard
Using composition can be tricky with more than one arg. I just want to be sure you're not really looking for something like: func :: (a - Bool) - (b - Bool) - (a - b - Bool) keeping with your given type I think you're looking for something like: func f1 f2 x = (f1 x) || (f2 x) I'm sure there

[Haskell-cafe] statistics build error

2010-04-16 Thread Keith Sheppard
Hello, I ran into this error while trying to install statistics. Does this indicate that I need to upgrade my GHC before I can install? k...@catskill:~/projects/ cabal update Downloading the latest package list from hackage.haskell.org k...@catskill:~/projects/ cabal install statistics

[Haskell-cafe] Re: statistics build error

2010-04-16 Thread Keith Sheppard
Sorry, I forgot to add my ghc version is 6.10.1 on OSX k...@catskill:~/projects/ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1 On Fri, Apr 16, 2010 at 1:08 PM, Keith Sheppard keiths...@gmail.com wrote: Hello, I ran into this error while trying to install

Re: [Haskell-cafe] Are there any gay haskelleres?

2010-03-28 Thread Keith Sheppard
Hello, I am one. Best Keith 2010/3/28 Günther Schmidt gue.schm...@web.de: Hi guys, are there any gay haskellers? ... Since the first one was so much fun ;) Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Are there any web server framework ?

2010-03-18 Thread Keith Sheppard
Hi, I think that Turbinado is no longer active since the author is leaving Haskell (unless someone will adopt it) http://www.alsonkemp.com/haskell/reflections-on-leaving-haskell/ -Keith On Wed, Mar 17, 2010 at 5:25 PM, Hugo Gomes mr.hugo.go...@gmail.com wrote: There is also turbinado. Im not

Re: [Haskell-cafe] definition of sum

2010-03-15 Thread Keith Sheppard
I asked a similar question a while ago on the cafe http://www.haskell.org/pipermail/haskell-cafe/2009-June/thread.html#62772 On Wed, Mar 10, 2010 at 5:33 PM, TeXitoi texi...@texitoi.eu wrote: After programming as an exercice the sum function, my version is faster than the Data.List's version.

Re: [Haskell-cafe] multMM :: Matrix - Matrix - Matrix --multiplies two matrices question (Homework)

2010-02-05 Thread Keith Sheppard
I did a blog post on basic matrix ops which may be useful to you http://blog.keithsheppard.name/2009/06/bird-tracks-through-math-land-basic.html It uses a 2D list representation for matrices which you would not do for any performance critical work. best keith On Wed, Feb 3, 2010 at 1:38 AM,

Re: [Haskell-cafe] imaging textbooks?

2010-01-25 Thread Keith Sheppard
I have just started reading this so I don't know how good it is yet but the draft is freely available: http://research.microsoft.com/en-us/um/people/szeliski/Book/ Best Keith 2010/1/25 Dan Mead d.w.m...@gmail.com: Hey all Can anyone recommend a good textbook on computer vision or image

[Haskell-cafe] hackage build errors

2010-01-11 Thread Keith Sheppard
Hello Cafe, I noticed on my package's hackage page there is a build failure message: http://hackage.haskell.org/package/txt-sushi I don't know if these are real errors or not (I don't experience them on OS X and it's pure Haskell code) but I did poke around and noticed that some popular packages

Re: [Haskell-cafe] Re: Distinct types in a list

2010-01-07 Thread Keith Sheppard
Hello, My impression is that using existential types where possible will result in more complete type checking than Data.Dynamic but I'm not sure since I haven't yet tried Data.Dynamic in my own code. Can someone confirm if this is right? Best Keith On Thu, Jan 7, 2010 at 2:02 PM, Christian

[Haskell-cafe] ANN: TxtSushi 0.5.0

2009-12-30 Thread Keith Sheppard
Hello Cafe, I've uploaded a new version of TxtSushi to http://hackage.haskell.org/package/txt-sushi and announced the details here http://blog.keithsheppard.name/2009/12/txtsushi-050.html. TxtSushi is a set of command-line utilities for transforming CSV and tab-delimited files including an SQL

Re: [Haskell-cafe] Generating Haskell From a XSD

2009-12-23 Thread Keith Sheppard
I don't think such a tool exists. I think it would be a great contribution if someone decides to create one. Best Keith On Wed, Dec 23, 2009 at 12:34 PM, jonathangfisch...@gmail.com wrote: I would like to generate Haskell data types and xml serialization code from xsd. I know of DtdToHaskell

Re: [Haskell-cafe] Generating Haskell From a XSD

2009-12-23 Thread Keith Sheppard
Yes I'm interested in helping too. It's hard for me to know how much time I'll have but my other side proj is starting to wind down now. Maybe a wiki planning page and a patch-tag (or any other repo site really) workspace is a good starting point? Sent from my iPhone On Dec 23, 2009, at

Re: [Haskell-cafe] pointfree-trouble

2009-12-22 Thread Keith Sheppard
Hello, I didn't try to understand what the function is doing, but just quickly noticed that reMatr a = Matr . (flip (.) unMatr) a can be written as reMatr a = Matr . ((flip (.) unMatr) a) but that reMatr = Matr . (flip (.) unMatr) can be written as reMatr a = (Matr . (flip (.) unMatr)) a

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-12 Thread Keith Sheppard
What about if during the Checking a Cabal package upload step there was a check to see if there was a homepage in the cabal file? If there is no homepage we could have something like: Your cabal file does not contain a link to a project homepage. You may want to add a haskell wiki link as your

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

2009-12-04 Thread Keith Sheppard
There is nothing wrong with constructive criticism and debate. We should welcome it and I think that the initial response did. But the OP's follow up of: It will be better for all of you to figure it out for yourselves and gain more experience about what is out there. Haskell isn't the world.

[Haskell-cafe] hoogle down

2009-11-27 Thread Keith Sheppard
hoogle is down for me: Internal Server Error Thanks Keith -- keithsheppard.name ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Problems with Haskell

2009-10-19 Thread Keith Sheppard
Hello Philippos I received a lot of furious and offensive private emails for suggesting the Clean programmer to stick with Clean. I don't get why some people think it's OK to be disrespectful just because they're on the internet... Regarding the code, I find it hard to follow without some

Re: [Haskell-cafe] I/O Haskell question

2009-10-05 Thread Keith Sheppard
I have to nominate I'm lying here, but for a good cause as a quote of the week. -Keith On Mon, Oct 5, 2009 at 10:06 AM, Deniz Dogan deniz.a.m.do...@gmail.com wrote: 2009/10/5 Maria Boghiu maria.bog...@gmail.com: I get an error saying I am mismatching types IO [String] and [String]. Something

Re: [Haskell-cafe] killer app sought

2009-10-04 Thread Keith Sheppard
IMO google web toolkit has done this for Java and I haven't tried it but maybe http://www.haskell.org/haskellwiki/Haskell_in_web_browser does or will do this for Haskell. I still think that there is a place for web applications that are smart on the server side though. Best -Keith On Sun, Oct 4,

[Haskell-cafe] ANN: TxtSushi 0.4.0

2009-10-04 Thread Keith Sheppard
Hello Cafe, I've just uploaded TxtSushi 0.4.0 to hackage. TxtSushi is a collection of command line utilities for processing comma-separated and tab-delimited files. I posted details on my blog (along with an advertisement to see if others are interested in hacking TxtSushi):

Re: [Haskell-cafe] killer app sought

2009-10-03 Thread Keith Sheppard
I think having access to the parsec library would be a major plus that you can show off. Eg: you can have a RoR based email web app that uses parsec parsing to figure out which sections of an email thread belong to which author... Best -Keith On Sat, Oct 3, 2009 at 11:08 PM, Mark Wotton

Re: [Haskell-cafe] Examples

2009-08-10 Thread Keith Sheppard
This seems to me like the kind of thing hackage maintainers should be giving guidance on (maybe they do already?) so that there is consistency. Sorry if this seems too off base, but here I go anyway... I have used apache IVY for packaging/dependency management in java and I really like the way it

Re: [Haskell-cafe] Haskell2Xml

2009-08-05 Thread Keith Sheppard
Hello Dmitry, I too was looking for something like this and came up empty. I proposed something similar on the haskell_proposals reddit... http://www.reddit.com/r/haskell_proposals/comments/8zhkx/haxb_and_haxws/ ... but I was left with the impression that there isn't much interest. -Keith On

Re: [Haskell-cafe] get cabal info for self?

2009-07-11 Thread Keith Sheppard
That's perfect. Thanks! On Sat, Jul 11, 2009 at 12:10 AM, Gwern Branwengwe...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jul 10, 2009 at 11:46 PM, Keith Sheppard wrote: Is there a way for a cabalized program to get its own info. I'm specifically interested

[Haskell-cafe] get cabal info for self?

2009-07-10 Thread Keith Sheppard
Is there a way for a cabalized program to get its own info. I'm specifically interested in version info. Thanks Keith -- keithsheppard.name ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] On the parallel between java annotations and monads

2009-07-03 Thread Keith Sheppard
I see some parallels between Inversion of Control/Dependency Injection frameworks and monads. I would say annotations are tools that are sometimes used for those frameworks, but they are also used for other unrelated things (warning suppression, overriding functions ...) so it may be more clear to

[Haskell-cafe] download, download-curl ...

2009-06-26 Thread Keith Sheppard
Hello Cafe, I'm looking to make it possible for people to use urls directly in my haskell program (TxtSushi) and I'd like your suggestions if you have any. I really like the API's for download and download-curl, but I'm wondering what the practical differences are between the two? Is

Re: [Haskell-cafe] Slightly off-topic: Lambda calculus

2009-06-21 Thread Keith Sheppard
forgot to cc the cafe :-) On Sun, Jun 21, 2009 at 1:08 PM, Keith Sheppardkeiths...@gmail.com wrote: hmm, it's been a while but... i think this infinite loop with a free variable would cause collision (\a . a a) (\b . b b d) On Sun, Jun 21, 2009 at 12:53 PM, Andrew

Re: [Haskell-cafe] Slightly off-topic: Lambda calculus

2009-06-21 Thread Keith Sheppard
scratch that... it's completely wrong On Sun, Jun 21, 2009 at 1:09 PM, Keith Sheppardkeiths...@gmail.com wrote: forgot to cc the cafe :-) On Sun, Jun 21, 2009 at 1:08 PM, Keith Sheppardkeiths...@gmail.com wrote: hmm, it's been a while but... i think this infinite loop with a free variable

Re: [Haskell-cafe] curious about sum

2009-06-18 Thread Keith Sheppard
OK, I think I went off on a tangent that isn't very useful anyway thanks -Keith On Wed, Jun 17, 2009 at 6:32 PM, Lennart Augustssonlenn...@augustsson.net wrote: The creators of Haskell didn't pick any particular representation for numbers. (Well, literals are kind of In..tegers.)  You can pick

Re: [Haskell-cafe] curious about sum

2009-06-18 Thread Keith Sheppard
equivalent? -Keith On Thu, Jun 18, 2009 at 7:53 AM, Thomas Davietom.da...@gmail.com wrote: No, I think it's extremely useful.  It highlights that numbers can both be lazy and strict, and that the so called useless lazy sum, is in fact, useful. Bob On 18 Jun 2009, at 13:29, Keith Sheppard wrote

Re: [Haskell-cafe] curious about sum

2009-06-17 Thread Keith Sheppard
Haskell's numeric literals are strict. You wouldn't want that to change right? It seems to me that having sum and product be strict is consistent with this. -Keith On Wed, Jun 17, 2009 at 11:15 AM, Thomas Davietom.da...@gmail.com wrote: On 17 Jun 2009, at 13:32, Yitzchak Gale wrote: Henk-Jan

Re: [Haskell-cafe] curious about sum

2009-06-17 Thread Keith Sheppard
In lambda calculus numbers are just functions and you evaluate them just like any other function. Haskell could have chosen the same representation for numbers and all evaluation on numbers would be lazy (assuming normal order evaluation). I think that would have been the Purist Lazy way to go.

Re: [Haskell-cafe] curious about sum

2009-06-15 Thread Keith Sheppard
The answer is sometimes (only if you use an optimize flag): ke...@sugarglider:~/temp/ cat sumtest.hs main = putStrLn . show . sum $ [0 .. 100] ke...@sugarglider:~/temp/ ghc --make sumtest.hs [1 of 1] Compiling Main ( sumtest.hs, sumtest.o ) Linking sumtest ...

Re: [Haskell-cafe] curious about sum

2009-06-15 Thread Keith Sheppard
I just realized... that was a statement not a question :-) anyway, thanks Keith On Mon, Jun 15, 2009 at 11:14 AM, Don Stewartd...@galois.com wrote: keithshep: Is there any reason that sum isn't strict? I can't think of any case where that is a good thing. Prelude sum [0 .. 100] ***

[Haskell-cafe] curious about sum

2009-06-13 Thread Keith Sheppard
Is there any reason that sum isn't strict? I can't think of any case where that is a good thing. Prelude sum [0 .. 100] *** Exception: stack overflow -Keith -- keithsheppard.name ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] curious about sum

2009-06-13 Thread Keith Sheppard
That's an interesting example. I guess a lazy number system like that would work nicely for Deniz's use case. On Sat, Jun 13, 2009 at 10:26 AM, Stephan Friedrichsdeduktionstheo...@web.de wrote: Jochem Berndsen wrote: Keith Sheppard wrote: Is there any reason that sum isn't strict? I can't

Re: [Haskell-cafe] Change value of a variable

2009-06-07 Thread Keith Sheppard
I guess the short answer is that it is not possible. 'x' is immutable and if you want a different value than 'x' that expression has to be given a different name like: let x=1 y=x+2 ... But I'm not sure if that helps you. Haskell does things very differently than the imperative languages

[Haskell-cafe] Re: ANN: TxtSushi 0.1

2009-05-21 Thread Keith Sheppard
now on and if you want to follow progress more closely I'll post all updates to this feed. http://blog.keithsheppard.name/feeds/posts/default/-/TxtSushi Thanks, Keith On Sun, May 17, 2009 at 11:07 AM, Keith Sheppard keiths...@gmail.com wrote: Hello Haskell Cafe I have released the first version

[Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
Hello Haskell Cafe I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV files. It includes a util for doing SQL SELECTs on flat files. This is my first haskell project and feedback of all

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
to ByteString's, and beware memory leaks. 2009/5/17 Keith Sheppard keiths...@gmail.com: Hello Haskell Cafe I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV files. It includes a util

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
Thanks! Good advice, I will do that. On Sun, May 17, 2009 at 11:49 AM, Jochem Berndsen joc...@functor.nl wrote: Keith Sheppard wrote: I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV

[Haskell-cafe] Re: Incremental array updates

2009-02-27 Thread Keith Sheppard
I'm still learning haskell, so I may be missing something pretty obvious, but isn't this the kind of thing that the diff array types were created for. http://en.wikibooks.org/wiki/Haskell/Hierarchical_libraries/Arrays#DiffArray_.28module_Data.Array.Diff.29 -Keith On Thu, Feb 26, 2009 at