Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread MightyByte
I also stick to a pretty rigid 78 characters. Doing so actually helps me fit more code onto my screen at a time because I usually have two or three columns of open files side by side. I find that I need this more often than I need to see a single function on a page (thanks to Haskell's

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread MightyByte
. Are there more people here with ADD (or ADD-history) and long-lines-disorder? Or is that just me? - marc Original-Nachricht Datum: Mon, 29 Oct 2012 11:32:29 -0400 Von: MightyByte mightyb...@gmail.com An: Jake McArthur jake.mcart...@gmail.com CC: Haskell Cafe haskell

Re: [Haskell-cafe] [Snap] Argument Substitution in Heist Templates with Splices

2012-09-21 Thread MightyByte
This is one of the more subtle corner cases of Heist. My default, splices are recursively processed. So when testSplice is executed for the test tag, the results are fed back into splice processing. I think this is the right thing to do because it makes behavior less sensitive to evaluation

Re: [Haskell-cafe] Build regressions due to GHC 7.6

2012-08-30 Thread MightyByte
Interesting data point. I think my initial thoughts can be summarized with the suggestion that this thread would be better served by a little irony and a new subject: Reuse Considered Harmful. On Thu, Aug 30, 2012 at 1:26 AM, Bryan O'Sullivan b...@serpentine.comwrote: Since the release of the

[Haskell-cafe] ANNOUNCE: readable-0.1

2012-08-24 Thread MightyByte
I'm happy to announce a new package called readable: http://hackage.haskell.org/package/readable This package provides simple reading of data types from ByteString and Text using MonadPlus to handle failure. It doesn't seem like there's a standard way to do simple reading from ByteString

Re: [Haskell-cafe] Platform Versioning Policy: upper bounds are not our friends

2012-08-15 Thread MightyByte
On Wed, Aug 15, 2012 at 9:19 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 16 August 2012 08:55, Brandon Allbery allber...@gmail.com wrote: Indeed. But the ghc release that split up base broke cabalised packages with no warning to users until they failed to compile. Upper

Re: [Haskell-cafe] Martin Odersky on What's wrong with Monads

2012-06-28 Thread MightyByte
Tillmann Rendel rendel at informatik.uni-marburg.de writes: Which drawbacks do you see besides increased verbosity? Well, you did change the equation amount (Leaf x) = x to amount fun (Leaf x) = x. In a larger example, this means that you need to change many lines of many functions,

Re: [Haskell-cafe] Martin Odersky on What's wrong with Monads

2012-06-25 Thread MightyByte
Jonathan Geddes geddes.jonathan at gmail.com writes: Cafe, I was watching a panel on languages[0] recently and Martin Odersky (the creator of Scala) said something about Monads: What's wrong with Monads is that if you go into a Monad you have to change your whole syntax from scratch.

Re: [Haskell-cafe] GSOC Proposal 2012 : HDBC

2012-04-04 Thread MightyByte
pranjal pandit pranjal5215 at gmail.com writes: Hi,I would like to work on improving the HDBC as a GSOC project 2012. I have a previous working experience with Django and its ORM and I had a look at Amnesia (http://amnesia.sourceforge.net/user_manual/manual.html) which is a SQL database

Re: [Haskell-cafe] Software Deployment and Distribution - WAS Re: CUFP mailing list

2010-03-22 Thread MightyByte
Fundamentally, Software Copy Protection (as well as DRM) is an unsolvable problem. It's basically like saying that you want to give someone something and not give it to them at the same time. With physical products there are physical properties that you can use to accomplish some aspects of

Re: [Haskell-cafe] search Data.Tree.Zipper

2010-03-08 Thread MightyByte
I haven't tested it, but I think you're looking for something like this: searchTree2 :: (a - Bool) - TreeLoc a - Maybe (TreeLoc a) searchTree2 pred rootLoc = if pred (getLabel rootLoc) then Just rootLoc else firstChild rootLoc = siblings where siblings loc = searchTree2 pred loc

Re: [Haskell-cafe] GPL answers from the SFLC (WAS: Re: ANN: hakyll-0.1)

2010-03-04 Thread MightyByte
Interesting. It seems to me that the only solution for the BSD-oriented haskell community is to practically boycott GPL'd libraries. From what I understand, this is exactly what the LGPL is for. I've known the basic idea behind the GPL/LGPL distinction for quite awhile, but I didn't realize

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

2010-02-14 Thread MightyByte
I like that idea. When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did. I incorrectly assumed that it was provided by some library. '!' and '~' would certainly be other good candidates for this kind of a page. These types of

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

2010-02-14 Thread MightyByte
On Sun, Feb 14, 2010 at 8:39 AM, Andrew Coppin andrewcop...@btinternet.com wrote: MightyByte wrote: I like that idea.  When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did.  I incorrectly assumed that it was provided by some

Re: [Haskell-cafe] Using Cabal during development

2010-02-11 Thread MightyByte
On Thu, Feb 11, 2010 at 5:28 AM, Limestraël limestr...@gmail.com wrote: Eventually, I think using cabal during development may be convenient. The only drawback is that you have to specify each dependency... I actually think this is a benefit, not a drawback. In one of my projects where I used

Re: [Haskell-cafe] various dependencies breakages

2010-02-09 Thread MightyByte
The latest darcs head for happstack has changed the quickcheck dependency to 2. You might try that. On Tue, Feb 9, 2010 at 7:13 AM, Thomas Girod tho...@0xc29.net wrote: thanks Lars and Max. It did the trick, except for one small detail : MissingH needs the testpack -any dependency, but cabal

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-05 Thread MightyByte
I've been seeing a steady stream of similar resource vanished messages for as long as I've been running my happstack app. This message I get is this: socket: 58: hClose: resource vanished (Broken pipe) I run my app from a shell script inside a while true loop, so it automatically gets restarted

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread MightyByte
Hi, I'm also a happy linode customer. However, my happstack app eats a lot of memory. I currently have plans to switch to prgmr.com because their hosting plans give you much more RAM / dollar than any other hosting company I've seen ($20 / month for a gig of RAM). On Sun, Jan 31, 2010 at 4:37

Re: [Haskell-cafe] on Happstack - embedded HTML

2010-01-12 Thread MightyByte
The example you came across is probably using HSP [1] to generate HTML. Happstack isn't tied to a specific method of generating HTML. You could use HSP or other libraries such as html-minimalist [2], xhtml [3], HStringTemplate [4], or even plain old manual construction of strings. [1]

Re: [Haskell-cafe] looking for origin of quote on preprocessors and language design

2010-01-07 Thread MightyByte
It strikes me that this question may be related (perhaps distantly) to Godel's incompleteness theorem. Anyone else see similarities here? On Thu, Jan 7, 2010 at 7:32 AM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: Dear all, It's not exactly Haskell-specific, but ... I am trying to

Re: [Haskell-cafe] Re: Why?

2009-12-10 Thread MightyByte
On Thu, Dec 10, 2009 at 9:50 AM, John D. Earle johndea...@cox.net wrote: in progress. The Haskell creed appears to be, This is the way so stick to it! The idea appears to be that by sticking to the program the problems will be overcome in time and we will be left with all the glorious goodness.

Re: [Haskell-cafe] Re: Why?

2009-12-10 Thread MightyByte
On Thu, Dec 10, 2009 at 11:56 AM, Sebastian Sylvan sebastian.syl...@gmail.com wrote: On Thu, Dec 10, 2009 at 3:30 PM, John D. Earle johndea...@cox.net wrote: My intuition says that laziness and purity are distinct whereas yours says that purity is a necessary condition. This is what needs to

Re: [Haskell-cafe] If you haven't bought any of Knuth's fascicles yet, this is definitely the one to get. Bitwise Tricks Techniques

2009-11-18 Thread MightyByte
I can't compare it with Knuth's fascicle, but the FXT book (linked to from http://www.jjj.de/fxt/) has a whole chapter on bit wizardry and is another excellent resource along these lines. On Wed, Nov 18, 2009 at 6:22 PM, Casey Hawthorne cas...@istar.ca wrote: If you haven't bought any of Knuth's

Re: [Haskell-cafe] Static Linking Problem

2009-11-11 Thread MightyByte
On Tue, Nov 10, 2009 at 4:29 PM, Ketil Malde ke...@malde.org wrote: MightyByte mightyb...@gmail.com writes: After a bit of googling, I came to the conclusion that I needed to compile it with ghc --make -static -optl-static Foo.hs.  Using only -static or -optl-static by themselves did

[Haskell-cafe] Static Linking Problem

2009-11-10 Thread MightyByte
of linker errors: /home/mightybyte/.cabal/lib/network-fancy-0.1.4/ghc-6.10.4/libHSnetwork-fancy-0.1.4.a(Fancy.o): In function `s6ks_info': (.text+0x3068): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking