On Wed, Nov 04, 2009 at 07:01:50PM +0100, Sjoerd Visscher wrote:
To: Haskell Cafe haskell-cafe@haskell.org
From: Sjoerd Visscher sjo...@w3future.com
Date: Wed, 4 Nov 2009 19:01:50 +0100
Subject: Re: [Haskell-cafe] Fair diagonals (code golf)
The code by Twan can be reduced to this:
diagN
On Fri, Oct 16, 2009 at 11:42:22AM +0100, pat browne wrote:
To: haskell-cafe@haskell.org
From: pat browne patrick.bro...@comp.dit.ie
Date: Fri, 16 Oct 2009 11:42:22 +0100
Subject: [Haskell-cafe] Merging modules
Hi,
I want to establish the strengths and weakness of the Haskell module
On Fri, Oct 16, 2009 at 12:56:30PM +0100, pat browne wrote:
To: haskell-cafe@haskell.org
From: pat browne patrick.bro...@comp.dit.ie
Date: Fri, 16 Oct 2009 12:56:30 +0100
Subject: Re: [Haskell-cafe] Merging modules
This is all pretty basic stuff. Not sure any of it is very helpful.
i'll try a very non-technical explanation that has worked for me so
far. (is it correct? does it make sense?)
IO and ST are quite similar. the difference is that whereas IO gives
you a concept of time in the world surrounding your code, ST lets you
create a little bubble inside your code in
On Sat, Oct 10, 2009 at 11:11:24PM +0200, Daniel Fischer wrote:
To: haskell-cafe@haskell.org
From: Daniel Fischer daniel.is.fisc...@web.de
Date: Sat, 10 Oct 2009 23:11:24 +0200
Subject: Re: [Haskell-cafe] How do I get this done in constant mem?
Am Samstag 10 Oktober 2009 22:14:38 schrieb
On Fri, Oct 09, 2009 at 05:48:15PM -0600, Luke Palmer wrote:
To: mf-hcafe-15c311...@etc-network.de
Cc:
From: Luke Palmer lrpal...@gmail.com
Date: Fri, 9 Oct 2009 17:48:15 -0600
Subject: Re: [Haskell-cafe] How do I get this done in constant mem?
On Fri, Oct 9, 2009 at 2:05 PM,
On Sat, Oct 10, 2009 at 09:33:52AM -0700, Thomas Hartman wrote:
To: Luke Palmer lrpal...@gmail.com
Cc: mf-hcafe-15c311...@etc-network.de, haskell-cafe@haskell.org
From: Thomas Hartman tphya...@gmail.com
Date: Sat, 10 Oct 2009 09:33:52 -0700
Subject: Re: [Haskell-cafe] How do I get this done
Hi all,
I think there is something about my use of the IO monad that bites me,
but I am bored of staring at the code, so here you g. The code goes
through a list of records and collects the maximum in each record
position.
-- test.hs
import Random
import System.Environment (getArgs)
import
Hi Erik,
I am not aware of any SSL implementation in haskell either (even
though I think it should go not into HTTP but into Crypto (which is a
neat piece of code, but needs a lot more work)).
I can think of two quick solutions if you need your Haskell code to
use an SSL link: run stunnel.org
I stand corrected. The answer was 'cabal install HsOpenSSL'.
On Wed, Oct 07, 2009 at 09:37:38PM +1100, Erik de Castro Lopo wrote:
To: haskell-cafe@haskell.org
From: Erik de Castro Lopo mle...@mega-nerd.com
Date: Wed, 7 Oct 2009 21:37:38 +1100
Subject: Re: [Haskell-cafe] Network.Curl and
does this compile at all? i don't think i understand the first line.
anyway, a few hints:
- if you want to have all numbers between 0..n in your output for
some n, just in random order, google for permutation.
- perhaps you can generate the output in an ordered fashion first,
eg.
Hi,
Cabal is still fighting me all the time. Its latest move is to be
oblivious of some of the installed packages:
$ cabal unpack crypto
Unpacking Crypto-4.2.0...
$ cd Crypto-4.2.0/
$ runghc ./Setup.hs configure --prefix=/tmp2/
Configuring Crypto-4.2.0...
Setup.hs: At least the following
works, thanks! (:
actually, what i did in the end is this (installing everything for my
user locally):
runghc ./Setup.hs configure --user --prefix=/tmp2/
runghc ./Setup.hs build
...
(I first did the 'cabal install crypto', but for ghc-6.10.4 that
didn't work. will start debugging now.)
On Thu, Sep 10, 2009 at 05:23:26AM -0700, staafmeister wrote:
To: haskell-cafe@haskell.org
From: staafmeister g.c.stave...@uu.nl
Date: Thu, 10 Sep 2009 05:23:26 -0700 (PDT)
Subject: Re: Re[Haskell-cafe] [2]: memoization
Hi Bulat,
Bulat Ziganshin-2 wrote:
Hello staafmeister,
You are right, I forgot about callbacks. freeHaskellFunPtr is only
for Haskell functions packaged for usage by the foreign code. Example
from the FFI specification, Section 5.4.2:
type Compare = Int - Int - Bool
foreign import ccall wrapper
mkCompare :: Compare - IO (FunPtr Compare)
If
the purpose of ForeignPtr is to attach a finalization procedure to the
object behind the pointer. for example, you can have close called
aimplicitly whenever the garbage collector finds you don't need a file
handle any more. function pointers do not need finalization.
cheers,
matthias
On
greetings,
greencard is confusing me: I copied an example from the command line
and was hoping to look at some generated Haskell code to understand
what's going on, but got this instead:
| $ cat M1.gc
| module M1 where
| %enum PosixError Int [EACCES, ENOENT]
| $ greencard M1.gc
| greencard:
echo ':load ~/money/Money.hs' ~/.ghci
works for me. this adds a line to the startup script that loads a
file that is not in any package. if this module loads other modules,
you may need to play with ':cd' in addition to ':load'.
hope this helps,
matthias
On Fri, Sep 04, 2009 at 06:14:50PM
hi,
i am stuck with a linker error in greencard, and haven't found
anything online, so i am addressing you for fresh ideas. as soon as i
get this sorted out, i will try to turn the answer into a patch that
you can consider for the next release.
SYMPTOMS: greencard 3.0.3 and 3.01 do not
Yes, it works:
$ greencard -V
greencard, version 3.00
(Daniel: You were right; I made the mistake of following the
instructions in the README :). Now I've finally switched to Cabal,
and that did the trick. Bulat: Yes, I am aware of all the other
projects, but greencard seems to be a
20 matches
Mail list logo