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

2010-03-12 Thread Paul R
wren I wish Haskell allowed ! to occur (non-initially) in alphanum_' wren identifiers as well as in symbolic ones. Then we could be more wren consistent about having ! mean strictness BTW, does something in haskell syntax prevent '?' from appearing at the end of identifiers ? It is a nice way to

[Haskell-cafe] Re: How efficient is read?

2010-05-09 Thread Paul R
PEM In fact, the time you'd spend writing read instances would not PEM compare to the half hour required to learn parsec. maybe the wiki could be updated to give more clues for a newcomer. http://www.haskell.org/haskellwiki/Parsec in particular : - link 1 points to the parsec site, with

[Haskell-cafe] Re: How efficient is read?

2010-05-10 Thread Paul R
Hello Stephen, Stephen The 10 year old documentation is very good though - for my Stephen taste, Parsec 2.0 is the best documented Haskell lib I've seen. Indeed the doc for 2.0 is really comprehensive, but didn't the library evolve a lot between release 2.0 and 3.1 ? Stephen If you want to

[Haskell-cafe] Re: Language Shootout reverse-complement benchmark

2010-06-02 Thread Paul R
David I'm still trying to figure out what the point of the shootout David really is. It is a fun and largely flawed competition between languages and their users :) Fun, on its own, is enough to motivate this project I guess. -- Paul ___

[Haskell-cafe] Re: Function to find a substring

2010-06-08 Thread Paul R
What's an elegant definition of a Haskell function that takes two strings and returns Nothing in case the first string isn't a substring of the first, or Just i, where i is the index number of the position within the first string where the second string begins? my quick take, with Maybe and

Re: [Haskell-cafe] Why not Darcs?

2011-04-22 Thread Paul R
Maciej I believe the biggest problem was (i.e. when migration started) Maciej that there is no big-name-hosting supporting darcs. When Maciej code.haskell.org went down people were cut off from code. Please forgive me if the answer is obvious : is Darcs storage backend agnostic, or must it

Re: [Haskell-cafe] For class Monoid; better names than mempty mappend might have been: mid (mident) mbinop

2011-07-25 Thread Paul R
Hi Café, Thomas I think () is fairly uncontroversial because: Thomas (...) Thomas 2. It's abstract. i.e., no intended pronunciation How can that be an advantage ? A text flow with unnamed (or unpronounceable) symbols makes reading, understanding and remembering harder, don't you think ? I really

Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-27 Thread Paul R
This should be mapM_ and 'ghc -Wall' spots this problem since 6.12. The compiler (7.04) doesn't tell me anything about it. Henning It seems that it is no longer part of -Wall. Indeed, that's not part of -Wall. http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/options-sanity.html Am I

Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-27 Thread Paul R
Hem hem ... I should never try to write anything sensible before putting my thick glasses. -w does not turn ON all warnings, but turns them OFF, so my previous comment regarding swapping its definition with -Wall is just nonsense. Sorry for the noise. Still, do you think there could be room for

Re: [Haskell-cafe] A language that runs on the JVM or .NET has the advantage of Oracle Microsoft making those layers more parallelizable.

2011-07-31 Thread Paul R
KC Are there plans a foot (or under fingers) to make a version of KC Haskell that runs on the JVM? This is probably a fun - or even useful - project, and a lot of people have had this wish of a general convergence of language runtimes toward a single VM such as the java one or the .net one.

Re: [Haskell-cafe] Solving the configuration problem with parametrized modules

2011-09-08 Thread Paul R
Joachim point taken, if you are already building on a transformer Joachim stack, adding yet another layer is not a problem. I’m having Joachim mainly pure code in mind. I think we need an other word than pure here. Usually, we understand pure as always producing the same result when given the

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Paul R
On 1 November 2011 21:35, Ketil Malde ke...@malde.org wrote: or even  Maintainer: Ketil Malde ketil at malde dot org  -- email me if you are human Though unless the hackage email bot is smart enough, this will result in a lot of unsendable emails... But the bot is not a human, so that's

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Paul R
Ross A field in the .cabal file is just as available to bots as Ross a field on the package page. Yes, absolutly. There are at least one easy solution for this problem : having a server-side user model that is related to packages, or to packages versions, indicating wich user is the maintainer

Re: [Haskell-cafe] capri cabal-dev virtualenv cab

2011-11-08 Thread Paul R
Hey, Rustom Does anyone give me a little comparison of these? What would all Rustom my requirements be? Not sure... these seem important for me Rustom 1. Need to sandbox not just haskell-projects but ghc (different Rustom compilations/versions) itself 2. Stability of the (sandboxing) Rustom tool

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

2011-11-23 Thread Paul R
Yes If some people don't like it, they won't use it. I doubt it will find its way in highly technical haskell core team, but it could appear for fun here and there in web material. For example, I think we could have 3 variants of it, reflecting the haskell level (beginner, confirmed, guru).

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-04 Thread Paul R
dokondr On the contrary, standard shell variable $0 - contains a full dokondr path to the program location in the directory structure, no dokondr matter from what directory the program was called. I don't think the comparison makes sense, as shell script invocation and executable run are very

Re: [Haskell-cafe] Where threadSleep is defined?

2011-12-06 Thread Paul R
dokondr Hi, I need to make the current process (executing thread) go to dokondr sleep for a given amount of time.  Can't find where threadSleep dokondr is defined. Maybe because there is no such threadSleep function in base packages, what do you think ? Ok, let's see if we can find what you are

Re: [Haskell-cafe] Why doesn't this work? (palindrome :: IO)

2011-12-08 Thread Paul R
Alexej The interesting thing is, that if I change the case ... of Alexej statement to an if ... then ... else statement, this magically Alexej starts to work. Since I no longer am enrolled (I have to take Alexej the course next year), I can't ask a teacher, but my curiosity Alexej still bugs me.

Re: [Haskell-cafe] partial type annotations

2012-01-20 Thread Paul R
Hi, x :: Integer - instruction1 -- Require ScopedTypeVariables Indeed, that does require ScopedTypeVariables to be enabled, but this basic use case is not clearly covered in the ScopedTypeVariables documentation. Also, it is not clear to me why ScopedTypeVariables is required at all here, as

Re: [Haskell-cafe] Some thoughts on Type-Directed Name Resolution

2012-01-28 Thread Paul R
AntC Steve, I think that proposal has been rather superseeded by AntC http://hackage.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields, which AntC draws on TDNR. But SORF is best seen as an evolving design space, with precise AntC details yet to be clarified/agreed. I've put my own

Re: [Haskell-cafe] Some thoughts on Type-Directed Name Resolution

2012-01-30 Thread Paul R
Steve Every programmer has their own favorite editor, usually using the same Steve one to work in many different languages. For the moment, you'd have Steve a hard job separating me from Notepad++. Main editors have very advanced customization features (though incredibly hacky most of the time).

Re: [Haskell-cafe] Some thoughts on Type-Directed Name Resolution

2012-02-09 Thread Paul R
Although it's a bit off topic, I must say I agree with Malcolm on that. Record-fields-selection-as-functions might be sometime unconvenient, but it is simple and easy to reason about and deal with, with usual Haskell strategies (prefixed names, modules, qualified imports ... business as usual).

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
I have quiet a lot of experience in the business of web services strongly backed by data stores, in a company that allowed me to apply a technologies such as RubyOnRails, DataMapper, PostgreSQL, Redis, Riak, HappStack and Snap. Greg, with no offense intended, I will share with the café a

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
For one, I am adverse to DSL based on quasi-quotation. Not because I find the syntax hard - to be honnest it is often the opposite, with DSL designed with ease of use in mind - but because of the volatile nature of languages without specification, be them basic DSL. It is quiet hard to settle on a

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
The most proeminent example is probably PostgreSQL, which is an incredibly strong product with high SQL power. But as soon as you access it through the ActiveRecord or Persistent API, it gets turned into a very limited store, with the SQL power of SQLITE or MongoDB. Tom Limited /= Worst,

Re: [Haskell-cafe] Subject: A universal data store interface

2012-02-13 Thread Paul R
advantage over going directly to the database is concise, Michael type-safe code. Are you really telling me that `runSql SELECT * FROM Michael foo where id=? [someId]` plus a bunch of marshal code is better then Michael `get someId`? Michael Michael Michael On Mon, Feb 13, 2012 at 9:53 PM, Paul R paul.r

Re: [Haskell-cafe] Finally, a pure iteratee library that deals with errors

2012-02-26 Thread Paul R
Nice, thank you. I was wondering recently what was the current state of Gabriel's pipes and Paolo's guarded variant. IIRC, they were working on a converging branch with good support at resources early termination. On Sun, 26 Feb 2012 10:50:22 +, Daniel Waterworth da.waterwo...@gmail.com

Re: [Haskell-cafe] Open-source projects for beginning Haskell students?

2012-03-23 Thread Paul R
Chris * https://github.com/chrisdone/pgsql-simple The PostgreSQL library Chris that amelie uses, it's a raw tcp/ip socket interface to the server, Chris fairly trivial and yet interesting (to me) and useful. Needs more Chris authentication methods, and I have some opportunities for optimizing

Re: [Haskell-cafe] New in haskell for old-timers?

2012-03-31 Thread Paul R
John 0.8.1 is almost due to be put out, it will be the first to be 100% John haskell 2010 (and haskell 98) compliant and has a lot of other neat John features over 0.8.0. That's great ! I can't wait to put it into my toolbox. Haskell compilers are all pieces of art, bringing beauty to our daily

Re: [Haskell-cafe] I Need a Better Functional Language!

2012-04-05 Thread Paul R
Grigory So now I wonder, what are the languages that are functional in Grigory the sense above? With a reasonable syntax and semantics, thus Grigory no assembler. I guess Lisp might be of this kind, but I'm not Grigory sure. In addition, I'm not a fan of parentheses. What else? Grigory Pure?

Re: [Haskell-cafe] Darcs home page updated

2012-04-30 Thread Paul R
On Mon, 30 Apr 2012 12:27:57 -0700, Simon Michael si...@joyful.com said: Simon With 2.8 released, I felt Darcs deserves better presentation. After Simon surveying other VCS sites I worked on an update to our home page Simon layout and content over the last few days, with review and input from

Re: [Haskell-cafe] Darcs home page updated

2012-05-01 Thread Paul R
Simon It does discuss both camp and darcs. I meant to say the following: Simon I was happy to be able to use Ian Lynagh's video, which I have always Simon felt strikes a very good tone - technical, concise, grounded and Simon energising. I like listening to it. Thanks Ian! Indeed, the form,

[Haskell-cafe] binary file handling (was: no subject)

2007-05-24 Thread Paul R. Potts
be the default mode for opening and reading a file, but I would say that the two should be made equally simple and clear options in the standard library. Paul R. Potts -- Paul R. Potts - [EMAIL PROTECTED] - http://thepottshouse.org ___ Haskell-Cafe mailing