zell_ffhut ?:
Last attempt, as its due in a couple of hours
Here's what i have so far..
charToGrid :: Char - Position - Grid - Grid
charToGrid c [] (row,col) xs = xs
charToGrid c (row,col) xs = (changeValue c (concat xs (row*9 + col)))
Using changeValue -
changeValue x 0 (y:ys)
On Wed, Mar 08, 2006 at 07:52:28PM -, Brian Hulley wrote:
To: Nils Anders Danielsson [EMAIL PROTECTED]
Cc: Haskell Cafe haskell-cafe@haskell.org
From: Brian Hulley [EMAIL PROTECTED]
Date: Wed, 8 Mar 2006 19:52:28 -
Subject: [Haskell-cafe] Re: MUA written in Haskell (was: Getting GHC
Dude, that was a friggin' awesome email! I'm trying to figure out how
I can just copy it wholesale into the article ;)
Use what you need. Share and share alike.
I've been struggling
with Haskell for long enough that my knowledge is now snowballing
downhill.
I think I experienced that too.
Hello Brian,
Wednesday, March 8, 2006, 10:52:28 PM, you wrote:
BH 4) An API could be exposed then the user could write scripts to put things
BH into correct folders etc.
BH 5) Ideally the scripting language would be Haskell. There is already stuff
that's whole idea is similar to emacs, only
Hello John,
Thursday, March 9, 2006, 2:02:45 AM, you wrote:
JH You're right that libraries mentioned earlier in the survey received more
JH votes as a result, but since I have a record of all responses *in time
JH order* I can see the difference, for each library, between pre- and post-
JH first
Hello Shannon,
Thursday, March 9, 2006, 1:19:39 AM, you wrote:
I'd use a State-monad, say
SjB I suspect you guys are right. I had always thought of states as
SjB being isomorphic to integers (i.e. you can be in state 0, state 1,
SjB ... state n), not as contexts (you have this input, that
Hello Cale,
Thursday, March 9, 2006, 9:20:44 AM, you wrote:
CG There's also some provision for generics in GHC, but I'm not sure how
CG well maintained it is. The docs say that it is currently broken in
CG 5.02 -- I seem to remember trying it more recently and having it work
CG on a few small
Hello, the following code doesn't compile
snip
module Matrix
where
import Control.Monad.ST
import Data.Array.ST
import Data.Array.Unboxed
type Block s = STUArray s Int Double
data MMatrix s = MMatrix Int Int (Block s)
newMatrix_ :: Int - Int - ST s (MMatrix s)
newMatrix_ m n = do b -
Martin Percossi wrote:
matMul a b = do { let foo = 2*5; return a }
probably
{ let {foo = 2*5}; return a }
will work (untested)
your ; indicates a further let-equation, but the possibility to use
; without { and } is a bit pathologic (and haddock used to reject it)
Christian
Now all's well.
I rebuilt the complete ghc together with haddock-0.7 (I'm not _that_ mad,
when I got my new hard-disk, I forgot to install an OpenGL package, so my ghc
didn't build that and I wanted to rebuild ghc anyway), but surely there must
be an easier way to upgrade haddock.
Originally, I
Christian Maeder wrote:
Martin Percossi wrote:
matMul a b = do { let foo = 2*5; return a }
probably
{ let {foo = 2*5}; return a }
will work (untested)
your ; indicates a further let-equation, but the possibility to use
; without { and } is a bit pathologic (and haddock used to
reject
Hi Wolfgang,
Thanks heaps for replying. I'm just starting to read the books on
Haskell, which is why I don't know much about setting it up. I had a
brief introduction to it a couple of years ago, and I only used it in
text mode, so I wasn't even aware it could do graphics. I barely
Am Donnerstag, 9. März 2006 14:04 schrieb Martin Percossi:
Hello, the following code doesn't compile
snip
matMul :: MMatrix s - MMatrix s - ST s (MMatrix s)
--matMul a b = do let foo = 2*5
--return a
matMul a b = do { let foo = 2*5; return a }
/snip
under ghc 6.4.1,
On Fri, Mar 10, 2006 at 02:21:34AM +1100, Xavier Elizalde wrote:
The binary Installation section for OS X (www.haskell.org/soe/
software.htm) says it installs hugs libs into /usr/local/lib/hugs,
and what I see for GHC uses /usr/local/lib/ghc-6.4.1. I presumed both
hugs and GHC needed to
14 matches
Mail list logo