Re: [Haskell-cafe] Haskell Platform and Leksah on Windows

2013-08-08 Thread David Virebayre
Hi, If you go the EclipseFP approach, you may have installations troubles too. In my case, it was due to having a version of GHC and libraries that EclipseFP doesn't like. Once I got it to work, I loved it. David. 2013/8/8 Dorin Lazar : > Hi, > I understood what's wrong about my approach - an

Re: [Haskell-cafe] Hackage Update Brigade

2013-05-28 Thread David Virebayre
2013/5/28 Conrad Parker : > For that proposal, there is also an informal github group for updating > unmaintained packages, > which anyone willing is welcome to join: Say I would be willing to spend a few hours a month to fix some problems, but I'm not very experienced; I only use haskell for a f

Re: [Haskell-cafe] Looking for portable Haskell or Haskell like language

2013-04-29 Thread David Virebayre
I've got ghc working here on a centos 5.5 machine. But without root privilege, I don't know how. Perhaps you can use a virtual machine with centos 5.5 (you'd have root access on this machine), install ghc on this machine, compile your programs there, then transfer that on the first computer ? 20

Re: [Haskell-cafe] Prolog-style patterns

2013-04-08 Thread David Virebayre
Hi Jan, On one hand, I've never really needed this. On the other hand, it looks like a nice syntaxic sugar addition, so if you implemented this I would probably give it a try. David. 2013/4/8 Jan Stolarek > > You can achieve something similar with the ViewPatterns language > > extension. > >

Re: [Haskell-cafe] introducing Maybe at managing level

2013-03-29 Thread David Virebayre
The link to LYAH that John provided, http://learnyouahaskell.com/making-our-own-types-and-typeclasses , doesn't mention monad at all. Laziness is mentionned only once while explaining recursive types, but you could omit that line. Now Algebraic is mentionned 6 times, but if you're afraid it might

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread David Virebayre
Prelude> :t [[1,2],3] you have a list with 2 elements: - [1,2] - 3 the type of [1,2] is [Integer] the type of 3 is Integer But all elements in a list must have the same type. 2012/12/27 Rustom Mody : > > > On Thu, Dec 27, 2012 at 1:48 AM, Roman Cheplyaka wrote: >> >> * Rustom Mody [2012-12

Re: [Haskell-cafe] Survey: What are the more common Haskell IDEs in use ?

2012-11-24 Thread David Virebayre
I often use geany too 2012/11/24 Erik de Castro Lopo : > Dan wrote: > >> Because I see there are many preferences on what IDE to use for Haskell >> I've created a quick survey on this topic. >> >> Please click here and select your choices from the lists. >> >> http://kwiksurveys.com/s.asp?sid=oqr4

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-28 Thread David Virebayre
Le 28 février 2012 14:45, Doug McIlroy a écrit : > Here's an example that fits comfortably in 5 minutes--if > your audience knows elementary calculus: > http://www.cs.dartmouth.edu/~doug/powswer.html 404 invalid url ! David. ___ Haskell-Cafe mailing l

Re: [Haskell-cafe] Haskell-Cafe Tag (was: Optimizations and parallel execution in the IO for a small spellchecker)

2012-02-16 Thread David Virebayre
Le 15 février 2012 21:32, JP Moresmau a écrit : > OK, thanks all, I can stop worrying being an uncouth Frenchman, then... Not that I post a lot, but you had me worried for a while, too. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] Poll: Do you want a mascot? -- please stop this

2011-11-24 Thread David Virebayre
2011/11/23 Giovanni Tirloni : > 2. It floods people with email they don't care (unless they care to keep > track of the results) Not that I care that much about a mascot (I like the lamb though), but a few threads about it hardly counts for a flooding. Besides, a good email client would allows to

Re: [Haskell-cafe] Data.Text.IO.hGetContents problem on windows

2011-09-19 Thread David Virebayre
Re-bonjour Café, Bryan, > I have a program that works fine on linux, but doesn't on windows. > Is there something I'm doing wrong ? Checking the source code for Data.Text.IO.hGetContents, I see that the only time hFileSize is used is in chooseGoodBuffering when the buffering is in block mode, so

[Haskell-cafe] Data.Text.IO.hGetContents problem on windows

2011-09-19 Thread David Virebayre
Bonjour Café, bonjour Bryan I have a program that works fine on linux, but doesn't on windows. On windows XP with the latest Haskell platform, I get: : hFileSize: invalid argument (Bad file descriptor) I think the problem is with hGetContents from Data.Text.IO, but my google-fu failed to help me

Re: [Haskell-cafe] ANN: EclipseFP 2.1.0 released

2011-09-03 Thread David Virebayre
Is it possible to install it with GHC7.2 ? I tried and it can't compile scion. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHCI Feature Request: Last Successful Compilation State Saved

2011-08-27 Thread David Virebayre
2011/8/27 aditya siram : > Hi all, > I would like for the GHCI interpreter to save its environment before > reloading a file and allowed the user to revert back to that state if the > compilation was unsuccessful. That would be awesome. I would like this too. David. _

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-08 Thread David Virebayre
2011/7/8 Heinrich Apfelmus : > I want to hear! > Just a description. :) You can also mention why you find it interesting etc. Well I have an old program sitting around. Anyway, it's very simple : The GUI has - a window with a menu bar, 2 directory selects (source and dest directories), 1 file se

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-07 Thread David Virebayre
2011/7/8 Heinrich Apfelmus : > Do you know any *small GUI programs* that you would *like* to see > *implemented with Functional Reactive Programming?* I may have an example. > I would love to hear your examples, so that I can try to convert them to FRP > style and test my library against them!

Re: [Haskell-cafe] [ANN] mysql-simple - your go-to package for talking to MySQL

2011-06-21 Thread David Virebayre
> You can access the docs on a slightly earlier version: > http://hackage.haskell.org/package/mysql-simple-0.2.2.0 That's what I did. > The doc specifies it here: >> convertError :: [Field] -> [Maybe ByteString] -> Int -> a >> Throw a ConversionFailed exception, indicating a mismatch between the

Re: [Haskell-cafe] [ANN] mysql-simple - your go-to package for talking to MySQL

2011-06-21 Thread David Virebayre
2011/5/2 Bryan O'Sullivan : > Hi, folks - > Over the past few days, I've released two MySQL-related packages on Hackage > that I think should be pretty useful. > The first is mysql-simple: http://hackage.haskell.org/package/mysql-simple > This is a mid-level binding to the MySQL client API. I aimed

Re: [Haskell-cafe] How unique is Unique

2011-05-27 Thread David Virebayre
2011/5/27 Emil Axelsson : > Does anyone have any comments on the proposed solution? Are there any > alternatives available? It might be unsuitable where an administrator can change the system's time while the program is running. David. ___ Haskell-Caf

Re: [Haskell-cafe] Parallel compilation and execution?

2011-05-26 Thread David Virebayre
2011/5/26 michael rice > Thank, Daniel > > Multiple threads are in evidence in my system monitor, but I wonder why I'm > getting two different answers, one twice the other. The first is the > parallel solution and the second is the non. > Why do you add n1+n2+1 in the parallel program, but only

Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators

2011-05-06 Thread David Virebayre
2011/5/6 Ertugrul Soeylemez : > David Mazieres wrote: >> Please enjoy.  I'd love to hear feedback. > Thanks a lot, David.  This looks like really good work.  I'm using the > 'enumerator' package, and looking at the types your library seems to use > a similar, but more complicated representation.

Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators

2011-05-06 Thread David Virebayre
2011/5/6 David Mazieres : >   * Every aspect of the library is thoroughly document in haddock >     including numerous examples of use. I'm reading the documentation, it's impressively well detailed. It has explanations, examples, all that one could dream for. Thanks ! __

Re: [Haskell-cafe] Programming Chalenges: The 3n+1 problem

2011-04-15 Thread David Virebayre
2011/4/14 Sebastian Fischer > > The advantage of this complicated definition is that you get a > memoized version of the `fibonacci` function simply by using `fixmemo` > instead of `fix`: > Wow. I think something about 'fix' just made sense thanks to your post, though I had read a few blog posts

Re: [Haskell-cafe] Haskell mail server fail?

2011-03-09 Thread David Virebayre
2011/3/10 wren ng thornton > Like Kenneth Hoste, I haven't been receiving mails from haskell-cafe@ nor > libraries@ for a few days to a week now. What is the status of the mailing > lists? > I don't have the status, but I am still receiving emails from cafe and libraries. David. ___

Re: [Haskell-cafe] Haskell IDE

2011-03-07 Thread David Virebayre
2011/3/7 David Virebayre > And build success. Now to open a haskell source file and play with > Eclipse. > ... and I keep having those "Problem occurred" popups: 'Occurrences has encountered a problem An internal error has occurred. In the detail: An int

Re: [Haskell-cafe] Haskell IDE

2011-03-07 Thread David Virebayre
2011/3/3 JP Moresmau : > Hello, I'm one of the maintainers of EclipseFP. It is a real > alternative: it works, it is maintained, supported and enhanced. I use > it for my own projects, and of course I use it to work on the version > of the scion library that ships with it, so we eat our own dogfoo

Re: [Haskell-cafe] Haskell IDE

2011-03-07 Thread David Virebayre
I use kate too. I tried and liked leksah, but the fact that everything is a project with a cabal file felt to heavy for me when I just want to hack on a single .hs file. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailm

Re: [Haskell-cafe] Rendering of in new wiki (MSIE6)

2010-12-22 Thread David Virebayre
> Statistics from "A tour of the Haskell Monad functions" (on my site), after > 15.351 pageviews: I find it surprising that nobody using google chrome ever browsed your site. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/

Re: [Haskell-cafe] the beginning of the end

2010-12-05 Thread David Virebayre
2010/12/5 Andrew Coppin > I get Haskell. It's a programming language. You write programs with it. I get > VB - even if I think it sucks. But something like Stack Overflow, I find > myself just staring at it thinking "what the hell /is/ this thing?" It's quite simple. Level 1 - You have an un

[Haskell-cafe] Question about TagSoup

2010-12-03 Thread David Virebayre
Hello café, I have seen tutorials about extracting information from a tag soup, but I have a different use case: I want to read a xml file, find a tag, change its content, and write the xml file back. This is an example of the files http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"; DOMVers

Re: [Haskell-cafe] GHC 7.0.1 developer challenges

2010-11-30 Thread David Virebayre
2010/11/30 Ryan Ingram > On Mon, Nov 29, 2010 at 12:36 AM, Simon Peyton-Jones > wrote: > > Do you have an alternative to suggest? After all, the previous situation > wasn't good either. > > I suggest that we should be able to specify RTS options at > compile/link time, or as pragmas in the Main

Re: [Haskell-cafe] Catching up on Time and Directory

2010-11-16 Thread David Virebayre
2010/11/16 Jon Fairbairn : > I'm probably terribly out of date with this, so I wonder if > anyone can save me the bother of working out what the > /preferred/ libraries are for (a) determining the > last-modified-time of a file or directory and (b) manipulating > the resulting time datum. > > I ca

[Haskell-cafe] Is there a better way to convert from UTCTime to EpochTime ?

2010-11-10 Thread David Virebayre
I want to set a file's modification time to the time I got from exif data. To get the time from exif, I found : Graphics.Exif.getTag :: Exif -> String -> IO (Maybe String) To set the file modification time, I found : System.Posix.Files.setFileTimes :: FilePath -> EpochTime -> EpochTime -> IO ()

Re: [Haskell-cafe] "Haskell is a scripting language inspired by Python."

2010-11-05 Thread David Virebayre
<< Also they "don't scale well", which I guess means that they don't make it inconvenient to design badly. >> Luke Palmer I nominate the above for quote of the week ! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/l

Re: [Haskell-cafe] In what language...?

2010-10-26 Thread David Virebayre
2010/10/25 Gregory Collins > Andrew Coppin writes: > > Hypothesis: The fact that the average Haskeller thinks that this kind of > > dense > > cryptic material is "pretty garden-variety" notation possibly explains why > > normal people think Haskell is scary. > That's ridiculous. That's not s

Re: [Haskell-cafe] Haskellers design

2010-10-21 Thread David Virebayre
2010/10/21 Michael Snoyman > > > * How important is adhering to a "standard" look? > Important yet it should not feel like it's impossible to try new things > * Which theme is overall more visually appealing? > 2nd > * Which theme gives a more professional feel? > 2nd David.

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-18 Thread David Virebayre
2010/10/18 Andrew Coppin : > ...I thought *I* was the only person who's ever heard of Rexx? ... and thanks to you, I now know some people here have heard of Amiga :) David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/m

Re: Who is afraid of arrows, was Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-13 Thread David Virebayre
2010/10/13 Henning Thielemann : > David Virebayre schrieb: >> 2010/10/12 Gregory Crosswhite : >> >>> Also, I don't see why one would prefer >>> over the standard function >>> composition operator, ".". >> >> With "."  

Re: Who is afraid of arrows, was Re: [Haskell-cafe] ANNOUNCE: Haskell XML Toolbox Version 9.0.0

2010-10-13 Thread David Virebayre
2010/10/12 Gregory Crosswhite : > Also, I don't see why one would prefer >>> over the standard function > composition operator, ".". With "." you have to read right-to-left to follow data's path. For me that reading order isn't natural, and I imagine it is so for most people which don't have a

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-10 Thread David Virebayre
2010/10/10 Michael Snoyman : Hi, > Haskellers became popular a lot faster than I'd anticipated. This has I've noticed a new 'flag this user' on my profile, but it's not clear (at least to me) what this does. Out of curiosity, I clicked on it, got a uninformative (again, to me) message "A flag me

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-13 Thread David Virebayre
Does it help to compile with ghc --make -O2 -funbox-strict-fields ?? David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Oracle stored procedures

2010-09-07 Thread David Virebayre
2010/9/7 Peter Marks : > Are there any Haskell libraries that can call stored procedures in Oracle? > I've been looking at Takusen which I like, but I can't find a way to call a > stored procedure. Don't you need to execute a SELECT query that calls the procedure, as in select my_procedure(parame

Re: [Haskell-cafe] Re: Paralelism and Distribution in Haskell

2010-09-07 Thread David Virebayre
> This is not stupid, but yes you missed something :) > http://www.reddit.com/r/haskell/comments/dad6j/unless_theres_a_major_hiccup_itll_be_in_ghc_70/ Oh, I saw that thread, but at the time it had vrey few comments, so I definately missed something ! Thanks ! David. _

Re: [Haskell-cafe] Re: Paralelism and Distribution in Haskell

2010-09-07 Thread David Virebayre
2010/9/7 Ben Lippmeier : > Though be warned you must use a recent GHC head build to get good > performance. After GHC 7.0 is out (in a few weeks) we'll be able to release a > properly stable version. Pardon a probably stupid question, but did I miss something ? http://hackage.haskell.org/trac/g

Re: [Haskell-cafe] ANNOUNCE: text 0.8.0.0, fast Unicode text support

2010-08-31 Thread David Virebayre
2010/9/1 Tako Schotanus : > As a Haskell noob I'm curious about this statement, is there something > intrinsically wrong with String? String is just a linked list of Char which are unicode code points; which is probably not the optimal way to store text. For intensive use of text it takes too much

Re: [Haskell-cafe] Changing my Profile

2010-08-23 Thread David Virebayre
2010/8/23 Christopher Done : > Any suggestions would be appreciated. Isn't there the possibility to mute a thread in gmail ? You need to activate keyboard shortcuts, then "?" gives you a list of keys. m seems to be used to mute a thread, but I didn't try it so I don't know what it does exactly.

Re: [Haskell-cafe] Hackage on Linux

2010-08-23 Thread David Virebayre
2010/8/24 Ivan Lazar Miljenovic : > What do you mean by "metapackages"? Metapackage are packages of packages, they don't provide something by themselves, but they have a dependency list so that a set of package can be installed together. For example, on ubuntu, installing "build-essentials" will

Re: [Haskell-cafe] Suggestions For An Intro To Monads Talk.

2010-08-08 Thread David Virebayre
On Fri, Aug 6, 2010 at 5:58 PM, Alex Stangl wrote: > On Fri, Aug 06, 2010 at 10:17:26AM -0500, aditya siram wrote: >> >From my vantage point they are (in no particular order) : Reader, Writer, >> State, IO, ST, STM, Parsec (have I missed any?) and of course the >> transformer versions. I am debati

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-06 Thread David Virebayre
On Sat, Aug 7, 2010 at 7:54 AM, Magnus Therning wrote: > Wouldn't the docs be unusable if it were in French even if > Haddock handled unicode characters correctly? Joke aside, for software to be released, a French documentation indeed wouldn't be of much use. The langage of technology and scienc

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-06 Thread David Virebayre
I prefer the new look. That being said, I'd rather like haddock handling unicode characters in comments, at the moment it's unusable if I want to write comments in French. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mail

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-08-06 Thread David Virebayre
On Fri, Aug 6, 2010 at 6:11 AM, Hamish Mackenzie wrote: > On 5 Aug 2010, at 21:12, David Virebayre wrote: > Can you try out this... > > ~/haskell/test$ cat ~/bin/cabal_quick_init > #!/bin/sh > > SOURCE_FILE=$1 > CABAL_NAME=`basename -s .lhs $SOURCE_FILE` >

Re: [Haskell-cafe] Why is toRational a method of Real?

2010-08-05 Thread David Virebayre
On Thu, Aug 5, 2010 at 1:55 PM, Henning Thielemann wrote: > It's even worse: The NumericPrelude is in progress, certainly currently > better than Haskell 98's type classes, but there are known problems. > Sometimes new numeric types are implemented and require to refine or > restructure the class

Re: [Haskell-cafe] Why is toRational a method of Real?

2010-08-05 Thread David Virebayre
On Thu, Aug 5, 2010 at 1:11 PM, John Meacham wrote: > use. This isn't to say ghc is doing the wrong thing, I don't think there > really is a right thing to do here given the broken class specifications > in the report. I often read that the numerical classes are problematic. At the same time, th

Re: [Haskell-cafe] Why is toRational a method of Real?

2010-08-05 Thread David Virebayre
On Thu, Aug 5, 2010 at 11:35 AM, Henning Thielemann wrote: > What else shall a rounding function return if not integers? Getting from 29.84645 to 29.85 isn't rounding ? David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.o

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-08-05 Thread David Virebayre
ssing features > is the next best thing. I did check the bug/feature tracker, and most issues I have are already there, but with a low priority. I could try to contribute, but I'm both lazy and unsure I can be of help > > On 3 Aug 2010, at 18:48, David Virebayre wrote: >> Try

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-08-02 Thread David Virebayre
On Mon, Aug 2, 2010 at 4:12 PM, Phyx wrote: >> I've tried to use leksah but some minor annoying things make it unusable for >> me. > I'm curious, what are those minor annoying things? Trying code completion in comments on string constants, for example. Code completion makes the text jump if you

Re: [Haskell-cafe] what's the best environment for haskell work?

2010-08-02 Thread David Virebayre
On Sat, Jul 31, 2010 at 12:07 PM, Rustom Mody wrote: > Do most people who work with haskell use emacs/vi/eclipse or something > else?? I mostly use kate, with a separate terminal window running ghci. I've tried to use leksah but some minor annoying things make it unusable for me. David. ___

Re: [Haskell-cafe] Is 'flip' really necessary?

2010-07-25 Thread David Virebayre
On Sun, Jul 25, 2010 at 11:53 PM, Edward Z. Yang wrote: > An interesting alternate spin on flip is infix notation combined with partial > application, such as: > >    (`foobar` 3) > > which is equivalent to > >    \x -> foobar x 3 > > I frequently use this, although the jury's out on whether or n

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

2010-07-19 Thread David Virebayre
On Tue, Jul 13, 2010 at 11:49 PM, Frank1981 wrote: > > First of all: I'm not sure if this question is allowed here. If not, I > apologize > > I'm trying to solve the following problem: For each word in a text find the > number of occurences for each unique word in the text. > > i've come up with t

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-07 Thread David Virebayre
On Tue, Jul 6, 2010 at 9:23 PM, Yves Parès wrote: >> I must have the same impediment. We should start a support group, that, or >> give in and write a compiler. To add insult to injury, >> I think it should be called "Turbo Haskell". > > That's true... I never noticed, because in French the two wo

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

2010-07-06 Thread David Virebayre
On Sun, Jul 4, 2010 at 10:43 AM, John Smith wrote: > My MSc requires a project dissertation, which is expected to take about 800 > hours. I would like to work on something which is of use to the Haskell > community. Any suggestions? I'd love to see something like git-gui for darcs. David. __

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

2010-06-17 Thread David Virebayre
2010/6/17 Günther Schmidt : > Anyway the problem is that I am totally reluctant to code in anything else > but haskell. It has always been a problem to me getting up early in the You're not alone. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org ht

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread David Virebayre
On Thu, Jun 17, 2010 at 3:38 PM, Henning Thielemann wrote: > On Wed, 16 Jun 2010, Marc Weber wrote: >> Hi Aditya Siram, >> - maybe shell scripting: running ghci takes longer than starting bash. >>  Compiling is not always an option because executables are bigger than >>  shell scripts or C exec

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread David Virebayre
On Wed, Jun 16, 2010 at 11:04 AM, Ivan Lazar Miljenovic wrote: > David Virebayre writes: >> *Real* programmers use butterfiles [1]. > If your files are composed of butter, I"d hate to see how you store them > in an efficient manner... Oh well, at least le ridicule ne tue

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread David Virebayre
On Wed, Jun 16, 2010 at 8:00 AM, Michael Snoyman wrote: >> Next you'll say there's no need for anyone to ask whether they prefer >> vi or emacs... ;-) > Of course *real* programmers use ed. It is the standard editor[1]. *Real* programmers use butterfiles [1]. [1] http://xkcd.com/378/ David. _

Re: [Haskell-cafe] parsec: how to get end location

2010-06-13 Thread David Virebayre
On Mon, Jun 14, 2010 at 12:10 AM, Roman Cheplyaka wrote: > Of course most parsers don't consume trailing newlines. But I was > writing general function to use in many places in the code which would > recover the end location. In most cases it just subtracts 1 from the > column number, but what if

Re: [Haskell-cafe] is there a way to prove the equivalence of these two implementations of (Prelude) break function?

2010-06-07 Thread David Virebayre
On Sun, Jun 6, 2010 at 5:10 AM, Thomas Hartman wrote: > Here's two implementations of break, a snappy one from the prelude, ... > prelbreak p xs = (takeWhile (not . p) xs,dropWhile (not . p) xs) -- > fast, more or less as implemented in prelude iiuc I had a look at the prelude, and I was surprise

Re: [Haskell] Re: [Haskell-cafe] Work on Video Games in Haskell

2010-05-26 Thread David Virebayre
On Wed, May 26, 2010 at 9:58 AM, Brandon S. Allbery KF8NH wrote: > You might want to reread that license agreement.  Specifically: > > "Applications must be originally written in Objective-C, C, C++, or > JavaScript as executed by the iPhone OS WebKit engine, and only code > written in C, C++, an

Re: [Haskell-cafe] Work on Video Games in Haskell

2010-05-26 Thread David Virebayre
On Wed, May 26, 2010 at 9:23 AM, Lyndon Maydwell wrote: > As a side note, how is this project getting around the language > restrictions apple put in the developer license agreement? >From the project page : This version uses Apple's official iPhone SDK as its back end compiler. David. ___

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-11 Thread David Virebayre
On Tue, May 11, 2010 at 10:10 AM, zaxis wrote: > `ghc-pkg list` finds two random packages.  After `ghc-pkg unregsiter` the one > installed by cabal in ~/.ghc/, all works normally now! I stopped counting the number of times I've reinstalled GHC because I forgot to tell cabal to install a package

Re: [Haskell-cafe] IO (Either a Error) question

2010-05-06 Thread David Virebayre
By the way, I didn't exactly reply your question : > [...] Basically, i don't understand what does "ErrorT ::" means - it > should name the function - but it starts with capital letter? It's a type signature, it describes the type of ErrorT: Prelude> import Control.Monad.Error Prelude Control.Mo

Re: [Haskell-cafe] IO (Either a Error) question

2010-05-06 Thread David Virebayre
On Thu, May 6, 2010 at 9:56 AM, Eugene Dzhurinsky wrote: > On Wed, May 05, 2010 at 02:54:27PM -0700, Ryan Ingram wrote: >> ErrorT is just a newtype wrapper, changing the order/application of >> the type variables. >> >> newtype ErrorT e m a = ErrorT (m (Either e a)) >> runErrorT (ErrorT action) =

Re: [Haskell-cafe] Haskell Weekly News?

2010-04-27 Thread David Virebayre
On Wed, Apr 28, 2010 at 7:47 AM, David Sankel wrote: > I'm wondering if a monetary incentive would keep the person who does this > work more accountable. I personally would be willing to contribute to > continue getting this service. I wonder if there are others as well. I don't think money would

Re: [Haskell-cafe] Compressing GHC tarballs with LZMA

2010-04-24 Thread David Virebayre
>> How common is support for .xz on the platforms we are interested in here? > Not very.  dpkg may support it in the future, but that is a somewhat closed > platform where Debian folks are in charge of both the archive and the tool > used to unpack it. Trying to install xz on kubuntu brings a ser

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

2010-04-06 Thread David Virebayre
And another +1 from me too. Keeping the policy will only achieve that people who want to stay anonymous will stay away from hackage, and that's not something (IMHO) we should want. David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www

Re: [Haskell-cafe] Hackape package lackage

2010-03-23 Thread David Virebayre
On Mon, Mar 22, 2010 at 5:31 PM, Thomas Davie wrote: > I'd love to see that map normalised by the population of the country – would > be interesting to see where Haskell is popular. Looks like it's very very popular in Alaska :-) David. ___ Haskell-C

Re: [Haskell-cafe] Re: If wishes were horses... (was: Re: definition of sum)

2010-03-12 Thread David Virebayre
On Fri, Mar 12, 2010 at 12:01 PM, Johannes Waldmann wrote: > David Virebayre gmail.com> writes: > in this case, something like:  Data.List.Strict.fold, Data.List.Lazy.fold But then if you need both version, you will have to import them qualified, which I don&#x

Re: [Haskell-cafe] Re: If wishes were horses... (was: Re: definition of sum)

2010-03-12 Thread David Virebayre
On Fri, Mar 12, 2010 at 10:29 AM, Johannes Waldmann wrote: > Well, meaningful identifier names is nice, but I think > here we have a case of the code smell "type info embedded in the name". > Strictness of a function should be expressed in the function's type instead. > But that seems impossible

Re: [Haskell-cafe] OpenSUSE 11.2

2010-02-28 Thread David Virebayre
On Sun, Feb 28, 2010 at 6:30 PM, Andrew Coppin wrote: > Daniel Fischer wrote: > > if [ -z `/bin/echo ${PATH} | /usr/bin/grep cabal` ] > > then >>export PATH="/home/andrew/.cabal/bin:$PATH" >> fi >> >> in your .bashrc >> >> > > Uh... what? that snippet supposes you have cabal installed in y

Re: [Haskell-cafe] wildcards for type variables?

2010-01-13 Thread David Virebayre
On Wed, Jan 13, 2010 at 12:29 AM, Evan Laforge wrote: > Occasionally I have a function with an unused argument, whose type I > don't want to restrict.  Thus: > > f :: _unused -> A -> B > f _ a = b I probably misunderstood the problem, why not f:: a -> A -> B David ___

Re: [Haskell-cafe] Are functional dependencies around to stay?

2009-12-21 Thread David Virebayre
2009/12/21 Günther Schmidt > Hi everyone, > > I'm wondering if there is any chance that functional dependencies will not > be around in the future. I do not actually understand the subject yet as > such, but I'd like to make sure before I get deeper into it that it's > something that will be arou

Re: [Haskell-cafe] Zumkeller numbers

2009-12-09 Thread David Virebayre
On Wed, Dec 9, 2009 at 11:47 AM, Henning Thielemann wrote: > Ist der Ruf erst ruiniert, lebt es sich ganz ungeniert. 8-] > Is there an English translation of it? Google translate says : "If the reputation is ruined, one can live quite openly." David. ___

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

2009-12-04 Thread David Virebayre
On Fri, Dec 4, 2009 at 10:34 AM, Simon Peyton-Jones wrote: > Friends Amen ! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Optimization with Strings ?

2009-12-03 Thread David Virebayre
On Thu, Dec 3, 2009 at 1:03 PM, Emmanuel CHANTREAU wrote: > In my futur program, it use a lot of binary trees with strings (words) > as leaf. There is just arround 1000 words and they will appear a lot of > times. The program will possibly consume a lot of process and memory > (it is a mathematic

Re: [Haskell-cafe] Typeclasses for name punning (was: Re: I miss OO)

2009-11-27 Thread David Virebayre
2009/11/27 Daniel Schüssler > > I think punning is a worthwhile goal on its own, since I find myself > wasting > quite some thought on whether to prefix a record field name somehow, and if > I > do, what I should use as a short but sufficiently unique prefix. > I agree, especially since it looks

Re: [Haskell-cafe] What does the `forall` mean ?

2009-11-12 Thread David Virebayre
On Thu, Nov 12, 2009 at 8:52 PM, Andrew Coppin wrote: > I just meant it's not immediately clear how >  foo :: forall x. (x -> x -> y) > is different from > foo :: (forall x. x -> x) -> y > It takes a bit of getting used to. That still confuses me.

Re: [Haskell-cafe] Resource compilation in GHC

2009-11-12 Thread David Virebayre
On Thu, Nov 12, 2009 at 11:12 AM, Konstantin Vladimirov wrote: > Hello. > I'm writing an wxHaskell application. Everything is ok, but now I need > a separate folder for icons, bitmaps, and so on, from where they are > loaded at runtime. How can I compile resources, and link them into my > executa

Re: [Haskell-cafe] Static Linking Problem

2009-11-11 Thread David Virebayre
On Wed, Nov 11, 2009 at 5:44 PM, Svein Ove Aas wrote: > My recommendation would be to take glibc off the list of statically > linked libraries. How do you do that ? David. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/m

Re: [Haskell-cafe] faster compiling for ghc

2009-11-11 Thread David Virebayre
On Thu, Nov 12, 2009 at 7:18 AM, Bulat Ziganshin wrote: > > Hello Evan, > > Thursday, November 12, 2009, 4:02:17 AM, you wrote: > > > Recently the "go" language was announced at golang.org.  There's not a > > lot in there to make a haskeller envious, except one real big one: > > compilation speed.

Re: [Haskell-cafe] What's the deal with Clean?

2009-11-06 Thread David Virebayre
On Fri, Nov 6, 2009 at 8:45 AM, Ketil Malde wrote: > > enough about. I'd be happy to hear any suggestions. > This is more a question than a suggestion, but would the iteratees package fit your needs ? David. ___ Haskell-Cafe mailing list Haskell-Caf

Re: [Haskell-cafe] Hoogle is great but ...

2009-10-26 Thread David Virebayre
On Sun, Oct 25, 2009 at 2:09 PM, Curt Sampson wrote: > But zaxis, here's another thing to look at. There's usually a "view > source" link beside most of the functions that come up in the Haddock > documentation to which Hoogle links. It's worth clicking. You would be > surprised (certainly I was!

Re: [Haskell-cafe] x -> String

2009-10-16 Thread David Virebayre
On Fri, Oct 16, 2009 at 8:19 PM, Andrew Coppin wrote: > Is there any way that you can turn an arbitrary Haskell value into a string? > I rephrase: There *is* a way to turn arbitrary values into strings. I know > there is, because the GHCi debugger *does* it. The question is, does anybody > know o

Re: Re[2]: [Haskell-cafe] GHC devs

2009-10-15 Thread David Virebayre
On Wed, Oct 14, 2009 at 11:06 PM, Bulat Ziganshin wrote: > Hello Andrew, > > Thursday, October 15, 2009, 12:54:37 AM, you wrote: > >> Does anybody actually "get paid" to develop GHC? Or is this all people > > SPJ, SM and Ian are paid by MS Research. Other people involved in core > development are

Re: [Haskell-cafe] better way to do this?

2009-10-07 Thread David Virebayre
On Wed, Oct 7, 2009 at 10:05 AM, Peter Verswyvelen wrote: > over every bit of the system (it was even easy to count exactly how many > cycles a routine would take :-), so it was just a matter of starting the You sound like you used to code on the Commodore 64 :) David. __

Re: [Haskell-cafe] Re: Curried function terminology

2009-10-06 Thread David Virebayre
On Mon, Oct 5, 2009 at 11:52 AM, Jon Fairbairn wrote: > [1] A pet peeve of mine is "x supports y" being used backwards (as in > "our application supports windows Vista", which would only make sense if > it were something like a system tool that stopped Vista crashing. (Not a native English speak