Re: [Haskell-cafe] Different answers on different machines

2013-06-02 Thread Henry Laxen
system, and the desktop a 64. I changed everything from Int to Integer, and now both agree. Thanks for the pointer. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Combining State and List Monads

2012-08-24 Thread Henry Laxen
, List, State, or who knows what would result in: ([(1,1),(1,2),(2,1),(2,2)],4) assuming we initialize the state to 0 Is there any way to make this happen? Thanks in advance. Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.or

[Haskell-cafe] Beginning Data.Lens tutorial

2011-12-10 Thread Henry Laxen
Dear Group, If you haven't used lenses before, (as I hadn't until recently) you may find this helpful: http://www.nadineloveshenry.com/haskell/lensExamples.html Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskel

Re: [Haskell-cafe] deepseq-1.2.0.1 missing Data.Map instance

2011-11-15 Thread Henry Laxen
Daniel Fischer googlemail.com> writes: > For your unfortunate combination, consider reverting to a prior deepseq > version, or manually provide the instance where needed (I recommend the > former). > Thank you Daniel, for clearing that up. Best wish

[Haskell-cafe] deepseq-1.2.0.1 missing Data.Map instance

2011-11-15 Thread Henry Laxen
but not in deepseq-1.2.0.1. Adding it back got aeson-native-0.3.3.1 and later snap-0.6 to compile just fine. So I guess my question is: Is there a reason that the map instance was removed from deepseq-1.2.0.1, and can we please put it back in? Thanks. Best w

[Haskell-cafe] which tags program should I use?

2011-09-25 Thread Henry Laxen
easy. A google search for hasktags igloo turns up http://hackage.haskell.org/trac/ghc/ticket/1508 whose title is "hasktags program needs replacement" which makes me feel even more queasy. So I guess my question is, what are us disciples of "the one true editor" to

Re: [Haskell-cafe] Problems installing the haskell platform

2011-01-19 Thread Henry Laxen
debian package for snap, which I really wanted to try out. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Problems installing the haskell platform

2011-01-19 Thread Henry Laxen
packages, I wound up with conflicting dependencies, and could not find a way out. I hope this dialog is helpful to whomever is in charge of the haskell platform, a wonderful resource by the way. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Has

[Haskell-cafe] Getting results of of runSTUArray

2010-10-20 Thread Henry Laxen
1{- Dear Group, I am trying to do something that I think should be very simple, but I just can't seem to figure out how. The idea is that I want to use runSTUArray to build up an array, but I want to look at the array after each iteration and possiblely accumulate some elements. -} import Deb

[Haskell-cafe] Big Arrays

2010-10-03 Thread Henry Laxen
in: *Main GOA> main (False,True) (Exception [Negative range size] (False,Exception [Error in array index; 1 not in range [0..1)] It looks like array ranges can only be Ints, and not Int64 or Word64 types. Any pointers would be appreciated. Best wishes, Henry Laxen __

[Haskell-cafe] Re: Adding a field to a data record

2009-07-28 Thread Henry Laxen
where the field names are many, long, and varied. Yes, I could cut and paste, but I'm hoping for a "better way." Thanks. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Adding a field to a data record

2009-07-28 Thread Henry Laxen
7;s back to Foo's, add the z::Int field back into Foo, and read it back. Please tell me there is a better way. Thanks in advance. Best wishes, Henry Laxen PS: I have read syb1, and syb2 a couple of times now, but so far haven't been a

[Haskell-cafe] Re: A Reader Monad Tutorial

2009-06-28 Thread Henry Laxen
Lee Duhem gmail.com> writes: > Nice post. > > I didn't find how to add comments on your blog, so I post them here: > ... Dear Lee, Thank you for your comments and corrections. I have included all of them in the new version of the article. Best

[Haskell-cafe] A Reader Monad Tutorial

2009-06-27 Thread Henry Laxen
Dear Group, If any of you are struggling with understanding monads, I've tried to put together a pretty through explanation of what is behind the Reader monad. If you're interested, have a look at: http://www.maztravel.com/haskell/readerMonad.html Enjoy. H

[Haskell-cafe] Re: Hack (web) and apache configuration

2009-06-25 Thread Henry Laxen
Anton van Straaten appsolutions.com> writes: > Path info is path-like data that directly follows the name of the > resource being referenced, e.g.: /myfiles/foo.html/this/is/path/info > > A rule that would give you path info in the case you describe would be > more like this: > >RewriteR

[Haskell-cafe] Hack (web) and apache configuration

2009-06-25 Thread Henry Laxen
esponse { status = 200 , headers = [ ("Content-Type", "text/plain") ] , body= pack $ show env } main = runFastCGIorCGI $ lambda app -- One final comment to the authors of hack. Would you please consider renaming this project. hack is such a common word that has nothing to do with this project that it make searching the web with google, etc. almost useless. I realize it is a clever respelling of the ruby version "rack", but please consider naming it something more unique, while it is still relatively new on the web. Thanks in advance for your help. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: A generics question

2009-06-09 Thread Henry Laxen
rs, > S. > Thank you Sterling. That is the answer I was looking for. I was trying out things from the various Scrap your Boilerplate papers, and got stuck doing something that I thought should be easy. Now it makes sense. Thanks again. Best wishes, Henry Laxen ___

[Haskell-cafe] A generics question

2009-06-08 Thread Henry Laxen
all of the information is already contained in the parameter c. Is there any way to do this? Thanks in advance for your wise counsel. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] MySQL, CouchDB, and Haskell

2009-06-01 Thread Henry Laxen
me here at the list or to me privately at nadine.and.henry -AT- pobox.com Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Problem with prepose.lhs and ghc6.10.1

2009-04-02 Thread Henry Laxen
e error message. I would really like to play with the code in the paper, but I'm stuck at this point. Any pointers would be appreciated. Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Confused by SYB example with zipping

2009-02-14 Thread Henry Laxen
double _ e = e maxS (S x) (S y) = S (max x y) Failed, modules loaded: CompanyDatatypes. - I must admit I don't really know what to make of this. Any insights would be appreciated. Tha

[Haskell-cafe] What monad am I in?

2008-09-02 Thread Henry Laxen
Ambiguous type variable `m' in the constraint: `Monad m' arising from a use of `increment' at :1:8-18 Probable fix: add a type signature that fixes these type variable(s) Have I, like Monsier Jourdain, been running in the IO monad all my life, and didn't ev