On Tue, Sep 29, 2009 at 9:36 PM, Andrew Coppin
wrote:
> Similarly, Parsec has some lovely external documentation (unfortunately as a
> single giant HTML page), but the Haddock stuff is bare.
The last version (3.x) improves things.
___
Haskell-Cafe mail
On Tue, Sep 29, 2009 at 9:13 AM, Magicloud Magiclouds
wrote:
> The properFaction part is correct. So I posted the whole code, since
> "isInteger" should accept any reasonable incoming types. Well, in this
> one situation, it does not. And I cannot figure out why
Floating point gives a lot of
On Mon, Sep 21, 2009 at 12:11 AM, Jason Dusek wrote:
> Some day, we're going to need a short, catchy name for Cabal
> packages. Let's call them cabbages.
C'est chou ! :-P
+1
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.o
On Mon, Sep 21, 2009 at 8:37 PM, Andrew Coppin
wrote:
> It also doesn't explain why Cabal isn't finding include/WideStringSrc.h,
> even though that's the correct relative path to the file. I checked six
> times; it's definitely there.
include/WideStringSrc.h is a relative path, maybe cabal gets t
On Thu, Sep 17, 2009 at 9:01 AM, Gregory Propf wrote:
>
> I now have the Haskell platform install problem solved but I'm now trying to
> get the leksah IDE installed and I'm getting this.
>
> runhaskell Setup configure
> Configuring leksah-0.6.1...
> Setup: At least the following dependencies are
On Thu, Sep 3, 2009 at 3:34 PM, Job Vranish wrote:
> It looks like the haddock documentation is generated now. There are a couple
> simple examples for accessing nested state in the tutorial in the module
> documentation here:
> http://hackage.haskell.org/packages/archive/lenses/0.1.2/doc/html/Dat
On Fri, Aug 28, 2009 at 1:03 PM, staafmeister wrote:
> The list you give prod is also 10 MB so it not a terribly inefficient
> program.
That list takes memory only if it is forced. If it is passed to a lazy
function, all the list may not be in memory at once.
On Wed, Aug 5, 2009 at 10:51 AM, wrote:
> (Full source attached; or alternately, grab it: darcs get
> http://community.haskell.org/~gwern/hcorpus )
>
> So I have this little program which hopefully will help me learn French by
Probably off-topic, but also, I'm willing to help anyone learning
Fren
On Fri, Jul 31, 2009 at 5:53 AM, Ryan Ingram wrote:
> Read ($) as a parenthesis that extends as far to the right as
> possible; so you can write, for example:
That doesn't always work, for example :
map (+2) . map (*1) $ [1,2,3]
= [4,6,8]
Now replacing the $ by a parenthesis that extends as far
On Wed, Jul 29, 2009 at 12:04 PM, CK Kashyap wrote:
> map maySwitch . unfoldr go $ (x1,y1,0)
I'm not an expert and I might say things the wrong way or without the
required rigor, so with this disclaimer here's my explanation :
go calculates a step of the line, given the current coordinates and
th
> There are other possible language extension that may make qualification
> easier, Pascal's with statement comes to mind.
>
> http://freepascal.decenturl.com/with-statement-pascal
>
> In Haskell, this would work something like this:
>
> histogram xs =
> with Data.Map
> foldl' f e
On Wed, Jul 22, 2009 at 9:41 AM, Magnus Therning wrote:
> On Wed, Jul 22, 2009 at 7:46 AM, david48 wrote:
>> I went from nothing to using git, and I sincerely don't know what's
>> overwhelming about repo branching.
> You just need to work with more clue-less people
On Wed, Jul 22, 2009 at 4:40 AM, Trent W. Buck wrote:
> Later, when that user has developed VCS habits and is trusted to work on
> larger group projects, I can introduce the additional complexity of in-
> repo branching without overwhelming him.
I went from nothing to using git, and I sincerely d
On Fri, Jul 17, 2009 at 4:15 PM, david48 wrote:
> On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang
>> GHC supports UTF-8 input, and Haddock uses GHC nowadays. So, in my opinion,
>> Haddock should also support UTF-8 input. Do you want to file a feature
>> request?
> Sure. I&
On Fri, Jul 17, 2009 at 4:05 PM, Wolfgang
Jeltsch wrote:
> Yes, it’s a pity. For me, it’s not such a big problem since I don’t write my
> Haddock comments in my native language (German) but in English. I only
> experience this problem because I use nice typography, i.e., “ ” – instead
> of " " -.
On Fri, Jul 17, 2009 at 4:37 PM, Wolfgang
Jeltsch wrote:
> To my knowledge, Haddock only supports ASCII as input encoding. If you want to
> have characters outside ASCII, you have to escape them using something like
> .
Which would mean, while editing the code I'd have to read comments like that
On Fri, Jul 10, 2009 at 10:55 AM, Magnus Therning wrote:
> On Fri, Jul 10, 2009 at 8:54 AM, david48 wrote:
> Not that I have any hope of being able to answer your question, but I
> think it might be useful if you informed us _where_ the characters are
> mangled. Is it when you
Hello all,
I made a small program for my factory and I wanted to try to document
it using haddock. The thing is, the comments are in French and the
resulting html pages are unreadable because the accentuated letters
are mangled.
It's not acceptable to use HTML entities, as I'd like the comments t
2009/7/8 Matthias Görgens :
>> One problem I see is the binary-only distribution of packages. This makes
>> cabal-install incompatible with most distributions except, maybe, gentoo.
>> The automation process would have to run through hackageDB tracking
>> dependencies and compiling each needed libr
Even if 6.10.3 gets into Karmic, I'm sure the problem will arise again
once 6.12.1 is out. It's sadly easier to install from the tarball.
David.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, Jul 1, 2009 at 2:18 PM, Jules Bean wrote:
> Duncan Coutts wrote:
>> I agree, if we can't use ++ then <> is the next best thing. As John says
>> it's already a monoid operator for Data.Sequence and Text.PrettyPrint.
> I agree, if we can't use +> and <+ then <> is the next best thing.
> ;
On Wed, Jul 1, 2009 at 9:34 AM, Jochem Berndsen wrote:
> a...@spamcop.net wrote:
>> I tend to agree. Moreover, and I realise this may be a losing battle,
>> I want (++) to be the generic operator.
> I totally agree.
So do I.
David.
___
Haskell-Cafe m
On Tue, Jun 30, 2009 at 4:28 PM, jutaro wrote:
>
> As Leksah developer I approve your comment.
>
> Even better we will soon have a new release that integrates GHCi and a
> !visual debugger! plus other useful features like much enhanced text search
> with regex and grep and enhanced GUI framework wi
On Mon, Jun 29, 2009 at 3:41 PM, Daniel Fischer wrote:
> Am Montag 29 Juni 2009 10:47:05 schrieb david48:
>> connecter :: IConnection conn => conn
>> connecter = connectMySQL mysqlInfo
>>
>> And even though I suspect that's the correct type, it fails too :
>
Hello Daniel and all,
Your suggestion #1 : Can't import Database.HDBC.MySQL.Connection :
da...@pcdavid2:~/projets/haskell/caimonitor$ ghci -Wall Bdd.hs
GHCi, version 6.10.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking
On Thu, Jun 25, 2009 at 3:27 AM, wren ng thornton wrote:
> If certain warnings truly are spurious and unavoidable, then it's best to
> document this explicitly in the code by pragmas to disable the relevant
> warnings. This way the spurious nature of the warning is documented (for
> future maintai
> Marciej,
>
> I went the HDBC route and got the same problem. Although it does not seem to
> be officially blessed, try installing the time-1.1.3 package. It's working
> for me at least, which I know is a dubious recommendation.What worked for me :
1) Install GHC 6.10.3 from the binary tarball
2)
I thought that it might interest some people :
http://labs.trolltech.com/page/Projects/Graphics/Kinetic/DeclarativeUI
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Mon, May 4, 2009 at 11:49 PM, Conor McBride
wrote:
> Remember folks: Missiles need miffy!
Quote of the week !
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Mon, Apr 27, 2009 at 11:00 PM, siki wrote:
>
> I'm not sure if this is possible at all. I'd like to do something like this:
>
> class A a where
> foo :: a -> Double
>
> foo a = 5.0
>
>
> class (A a) => B a where
> foo a = 7.0
I probably don't understand the question properly, but I do
On Wed, Apr 22, 2009 at 1:28 PM, Victor Nazarov
wrote:
>
> Ubuntu/Debian policy seems to be installation into /var/lib/cabal . So it's
> clear that the whole hierarchy is managed by single tool cabal. Drawback is
> that you should add /var/lib/cabal/bin into your PATH.
>
(K)Ubuntu is so far back
On Wed, Apr 22, 2009 at 1:01 PM, Duncan Coutts
wrote:
> On Wed, 2009-04-22 at 12:21 +0200, david48 wrote:
>
> Lines starting with -- are comments. You need to uncomment the prefix
> line for it to have an effect.
Man do I feel dumb no
On Wed, Apr 22, 2009 at 12:06 PM, Duncan Coutts wrote:
> On Wed, 2009-04-22 at 11:33 +0200, david48 wrote:
> >
> > The default should at least be consistent among cabal install, runghc
> > Setup.hs, installing GHC, Gtk2Hs, and so on.
> >
> > If GHC is in
On Wed, Apr 22, 2009 at 12:32 AM, Duncan Coutts wrote:
> On Tue, 2009-04-21 at 12:31 +0200, david48 wrote:
> > For what it's worth, It's bothered me often enough that cabal doesn't
> > install globally by default that I had to reinstall ghc in order to
> > s
The default should at least be consistent among cabal install, runghc
Setup.hs, installing GHC, Gtk2Hs, and so on.
If GHC is installed in /home/myusername/local, what does cabal install
--global ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
ht
For what it's worth, It's bothered me often enough that cabal doesn't
install globally by default that I had to reinstall ghc in order to solve
package issues.
So I'd prefer the default to be global.
But I don't care that much, I don't think arguing that point is leading
anywhere.
___
Notepad++ has syntax highlighting for Haskell.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, Apr 8, 2009 at 2:55 PM, Neil Mitchell wrote:
> That seems a really weird way to write it! Who decided all auxiliary
> functions should be called go? (I think I'm blaming dons) - why not:
>
> sffi :: (Integral a,Num a) => Integer -> Maybe a
> sffi n | toInteger n2 == n = Just n2
>|
What about :
sffi :: (Integral a,Num a) => Integer -> Maybe a
sffi n = go n (fromInteger n)
where
go a b | toInteger b == a = Just b
| otherwise = Nothing
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.
On Fri, 2009-01-23 at 03:54 -0600, Galchin, Vasili wrote:
> ooops ... cabal install HDBC-mysql doesn't work ??
for what it's worth, calbal install hdbc-mysql worked on my office's pc.
( kubuntu 8.10 )
___
Haskell-Cafe mailing list
Haskell-Cafe@haske
On Sat, Jan 17, 2009 at 11:19 PM, Dan Piponi wrote:
> On Sat, Jan 17, 2009 at 1:47 AM, david48 wrote:
>> why would I
>> need to write a running count this way instead of, for example, a non
>> monadic fold, which would probably result in clearer and faster code?
>
&
On Sat, Jan 17, 2009 at 4:08 PM, David Leimbach wrote:
> So you're saying it should be better documented in Haskell what a Monoid is.
> Did you say you searched for "C++ class" why not "Haskell Monoid" then?
> The first correct google hit that didn't think I meant Monads, takes you
> straight t
On Fri, Jan 16, 2009 at 10:28 PM, Apfelmus, Heinrich
wrote:
> david48 wrote:
>> I don't care about the name, it's ok for me that the name
>> mathematicians defined is used, but there are about two categories of
>> people using haskell and
>> I would love
On Fri, Jan 16, 2009 at 4:04 PM, Jonathan Cast
wrote:
> On Fri, 2009-01-16 at 14:16 +0100, david48 wrote:
>> Part of the problem is that something like a monoid is so general that
>> I can't wrap my head around why going so far in the abstraction.
>> For example, the
On Fri, Jan 16, 2009 at 3:10 PM, Bulat Ziganshin
wrote:
> Hello david48,
>
> Friday, January 16, 2009, 4:16:51 PM, you wrote:
>
>> Upon reading this thread, I asked myself : what's a monoid ? I had no
>> idea. I read some posts, then google "haskell monoid"
On Fri, Jan 16, 2009 at 5:39 AM, Creighton Hogg wrote:
> For you folks who work on GHC, is it acceptable to open tickets for
> poor documentation of modules in base? I think leaving the
> documentation to the tragedy of the commons isn't the best move, but
> if even a few of us could remember to
On Thu, Jan 8, 2009 at 11:58 AM, Manlio Perillo
wrote:
> Unfortunately Haskell is not yet ready for this task.
What makes you say that ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, Nov 26, 2008 at 6:11 PM, Don Stewart <[EMAIL PROTECTED]> wrote:
> I'd love it if people took a photo of the book arriving.
> With enough photos , I could put together a gallery of Haskell around
> the world :-)
Will do !
___
Haskell-Cafe mailing
> Actually right now I was logging in to Amazon.fr to check :)
It's not available yet on Amazon.fr. I've ordered them anyway, but I'm
warned that I will not have them for christmas :(
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.hask
On Wed, Nov 26, 2008 at 9:10 AM, Don Stewart <[EMAIL PROTECTED]> wrote:
> dav.vire+haskell:
>> Is it possible to order it from France yet ?
>
> http://www.amazon.fr/Real-World-Haskell-Bryan-OSullivan/dp/0596514980/ref=sr_1_1?ie=UTF8&s=english-books&qid=1227687031&sr=8-1
>
Actually right now I was
Is it possible to order it from France yet ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
There's an article on slashdot about a developper that has a dilemna
with his BSD-licenced work, I thought that might be relevant to this
thread :
http://ask.slashdot.org/article.pl?sid=08/10/05/1317252
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.
On Wed, Sep 24, 2008 at 11:20 PM, Bulat Ziganshin
<[EMAIL PROTECTED]> wrote:
> please show me example that you mean and i will show exact reasons
> why this Haskell code wasn't compared to the best C code
The shootout seems pretty popular, and there's still a lot of C
programmers around, so I won
On Sun, Sep 21, 2008 at 10:04 PM, Claus Reinke <[EMAIL PROTECTED]> wrote:
> Once your readers understand
> your code, you can add the one-liner and ask for applause
This should make it HWN's quotes of the week !
___
Haskell-Cafe mailing list
Haskell-Cafe
On Tue, Sep 16, 2008 at 5:31 PM, david48 <[EMAIL PROTECTED]> wrote:
> the getCh funtion is supposed to return an interpreted Key with values
> like KeyChar c, KeyReturn, KeyBackspace, etc.
> but in fact, it only ever returns KeyChar c values !
Nevermin
the getCh funtion is supposed to return an interpreted Key with values
like KeyChar c, KeyReturn, KeyBackspace, etc.
but in fact, it only ever returns KeyChar c values !
am I doing anything wrong ?
Here's an example program :
module Main where
import UI.HSCurses.Curses
import Text.Printf
impor
On Fri, Sep 5, 2008 at 1:05 PM, Janis Voigtlaender
<[EMAIL PROTECTED]> wrote:
> See John's comment, right there in the online version:
>
> "The system that generated this webpage didn't have HDBC installed at
> the time. We'll get that fixed and re-post this chapter. In the
> meantime, unfortunatel
In the online version of Real world Haskell, there's a problem with
examples in ghci when the module Database.HDBC.Sqlite3 is imported.
It goes on like this for all of chapter 21 and 22.
Example : ( note: this is not me trying to reproduce the examples,
it's an actual copy & paste from the site ur
You need to get cabal-install.
Here's how I got it working on kubuntu :
1) install GHC 6.8.3 from haskell.org's binaries (kubuntu hardy isn't
at 6.8.3 yet)
2) download from hackage :
* cabal-install-0.5.1.tar.gz from hackage
* HTTP-3001.0.4.tar.gz
* zlib-0.4.0.4.tar.gz
* Cabal-1.4.0.1.tar.gz
I'd love to see a git-gui like interface to darcs.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Wed, Jul 30, 2008 at 10:37 AM, David Waern <[EMAIL PROTECTED]> wrote:
> This is a bug in the haddock.cabal file. Haddock 2.1 doesn't support
> GHC 6.8.3. The next release will, and it will come out soon.
I had the same problem, 2.2 fixes it.
___
Haske
On Sat, Apr 26, 2008 at 9:33 AM, Andrew Coppin
<[EMAIL PROTECTED]> wrote:
> Personally, I don't see the point in rendering a couple of million
> mathematically flat surfaces,
What about speed ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
htt
On Jan 23, 2008 12:13 PM, Jules Bean <[EMAIL PROTECTED]> wrote:
> Presumably there wasn't a sufficiently good answer available in time for
> haskell98.
Will there be one for haskell prime ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://w
On Dec 20, 2007 11:24 PM, Don Stewart <[EMAIL PROTECTED]> wrote:
> there's another curses binding in hmp3,
> http://www.cse.unsw.edu.au/~dons/code/hmp3/Curses.hsc
> that i keep meaning to package up, but never do.
Thanks !
There's quite a lot of stuff I don't understand in Curses.hsc ( the
u
It seems I can't find it.
David.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Dec 20, 2007 5:36 PM, Jules Bean <[EMAIL PROTECTED]> wrote:
> 2. Maybe you want lots of possible different "a"s for each "g". Then you
> make "a" a parameter of the class too.
> 3. Maybe you want just one particular "a" for each "g". I.e. "g"
> determines "a". Then you can proceed as for (2), b
On Dec 20, 2007 5:44 PM, david48 <[EMAIL PROTECTED]> wrote:
> fString :: Int -> FString
> fString n = FString n ""
Oo do I feel dumb for writing this !
Problem solved :)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.o
On Dec 20, 2007 5:26 PM, Tillmann Rendel
<[EMAIL PROTECTED]> wrote:
> at this point fInit has this type:
>FString -> a -> FString
> > fInit (FString n _) s = FString n (take n s)
> but your implementation has this type
>FString -> String -> FString
> These types are incompatible, your fI
On Dec 20, 2007 5:03 PM, Claude Heiland-Allen
<[EMAIL PROTECTED]> wrote:
> You're trying to apply 'take n' to a value of type 'a' ('take n'
> requires [a]), moreover putting the value of 'take n s' into the FString
> further constrains its type to be [Char] == String.
First of all, thanks a lot f
I'm really inexperienced at this :
---
{-# OPTIONS_GHC -fglasgow-exts -funbox-strict-fields
-fallow-undecidable-instances -O2 #-}
class Gadget g where
fInit :: g -> a -> g
data FString = FString !Int !String deriving Show
instance Gadget FString where
fInit (FString n _) s = FStrin
On Nov 30, 2007 9:13 PM, Maurício <[EMAIL PROTECTED]> wrote:
> Nice tip. Do you know of a free news server
> that allows read and post for that group?
http://groups.google.com/group/fr.sci.maths/topics?lnk=gschg
___
Haskell-Cafe mailing list
Haskell-Ca
On Nov 28, 2007 11:07 PM, Maurício <[EMAIL PROTECTED]> wrote:
> Sorry, I don't agree. I try to write things in a
> way that when you read it you can get an intuition
> on why it's doing what it's doing; even when the
That's what comment are for :)
> generate. So, instead of checking if threads
On Nov 19, 2007 11:27 PM, Thomas Hartman <[EMAIL PROTECTED]> wrote:
> the php documentation has "user contributed notes" where people can leave
> sniplets of useful code as comments, eg
> http://www.php.net/manual/en/introduction.php
> I think this is a very nice feature.
I would love to have t
On Nov 7, 2007 9:05 AM, Ketil Malde <[EMAIL PROTECTED]> wrote:
> david48 <[EMAIL PROTECTED]> writes:
> > Didn't work for me : Installs fine, ghci works fine, but I get linking
> > problems. ld complains about -lgmp
> Did you try installing any of these?
>
On Nov 7, 2007 10:44 AM, Simon Marlow <[EMAIL PROTECTED]> wrote:
> /usr/local/lib/ghc-6.8.1 (or wherever you installed it). Alternatively you
> can install a suitable gmp package using your OS's package manager (you
> didn't say which flavour of Linux you're on).
This is what I did, following an
On Nov 7, 2007 6:14 AM, Cale Gibbard <[EMAIL PROTECTED]> wrote:
> On 06/11/2007, Tim Docker <[EMAIL PROTECTED]> wrote:
> > I can confirm that ghc-6.8.1 builds from source completely without fuss
> > on the latest ubuntu (7.10).
> >
> > (... though it took a couple of hours of cpu time :-)
> >
> > T
On 11/6/07, david48 <[EMAIL PROTECTED]> wrote:
well I'm not sure where to use the -I/path/to/ghc... so I tried this :
$ cd /usr/local/lib/ghc-6.8.1
$ sudo cp -R /home/david/Desktop/ghc-6.8.1/gmp .
$ ghc --make -I/usr/local/lib/ghc-6.8.1/gmp -O2 -o edimail Main.hs
Linking edimail ...
On 11/6/07, Alberto Ruiz <[EMAIL PROTECTED]> wrote:
> I have the same problem. And gmp.h is also not found when using the FFI. I
> must add:
> cc-options: -I/path/to/ghc-6.8.1/gmp
unfortunately :
$ find /usr/local/lib/ghc-6.8.1 -name *gmp* -ls
$
ghc was installed this way :
$ tar xvfj g
This is a program that works under ghci.
GHC was installed using the tarball on hashell.org.
When I try to compile the program, it can't link. It used to work with 6.6.1.
ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.1
ghc --make -O2 -o edimail Main.hs
[1 of 5] Compil
I'd like to see Supero and Jhc - compiled examples in the language shootout.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 10/15/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote:
> Yes, exactly, but how does one call the way of programming without
> monads / do notation then, explicitly passing the "object"? Does this
> approach have a name? Or just "non-monadic style"?
the "painful" style ?
On 10/14/07, Peter Verswyvelen <[EMAIL PROTECTED]> wrote:
> If you want I can dig up my old source code where I converted a random number
> generator from a purely functional approach to a monadic approach, but I'm not
> sure reading it would help you, it's creating the code yourself that will be
On 10/14/07, Lennart Augustsson <[EMAIL PROTECTED]> wrote:
> You don't need to unsubscribe. Just avoid posting things that are totally
> wrong (at least without a warning).
How would he know they're "totally wrong" ?
___
Haskell-Cafe mailing list
Haskel
On 10/14/07, [EMAIL PROTECTED]
> I know that asking helpful humans is nicer than reading docs, but the latter
> is usually more instructive, and often more efficient.
Sorry, but from my newbie point of view, I think the docs are
sometimes poor and lacking. After seeing the docs, I might want to as
On 9/12/07, VinyleEm <[EMAIL PROTECTED]> wrote:
> projects there, some of them being incomplete. Could you please suggest me
> some project, from which i can learn the State Monad.
xmonad perhaps ?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On 8/6/07, Vimal <[EMAIL PROTECTED]> wrote:
> I am unable to see how exactly this will run. Given that primes is an infinite
> list, and that when it reaches numbers say, as large as 1, it will have to
> keep track of all the numbers (essentially prime numbers, which is the
> answer),
> whose
On 8/3/07, Neil Mitchell <[EMAIL PROTECTED]> wrote:
> > Is it not possible that is desugars to
> > do case x of
> > [] -> return 1
> > (y:ys) -> g y >>= \temp -> f temp
> See the rule about always binding to the previous line of a do block.
> This case then violates that.
I as
On 8/3/07, Neil Mitchell <[EMAIL PROTECTED]> wrote:
> temp <- a
> let x = temp
if you write :
let x = (<-a):x
is it possible that is desugars into :
temp <-a
let x = temp:x
that would'nt work ?
I realize I may be asking dumb questions but being dumb never harmed
anyone so :)
Also :
> do ca
Sorry for the double post, I posted with the wrong email address and
haskell-cafe rejected it.
On 8/3/07, Neil Mitchell <[EMAIL PROTECTED]> wrote:
> > Right. In effect, as a matter of fact, the notation
> >
> > x <- a
> >
> > would become equivalent to
> >
> > let x = (<- a)
>
> Hmm, int
On 8/3/07, Neil Mitchell <[EMAIL PROTECTED]> wrote:
This is how I understand it:
> Can you use (<-) outside of a do block?
> b >> f (<- a)
b >> do { ta <-a; f ta }
or
b >> a >>= \ta -> f ta
> What are the semantics of
> do b >> f (<- a)
do b >> a >>= \ta -> f ta
> Given:
>
> if (<- a) then f
On 8/1/07, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> wrote:
>
> On Aug 1, 2007, at 10:05 , david48 wrote:
>
> > On the topic of indenting, it would be nice if there was a way to tell
> > the compiler the size of the tab characters.
> >
> > The way it is
On the topic of indenting, it would be nice if there was a way to tell
the compiler the size of the tab characters.
The way it is now, I have to use space characters to indent.
It's not really a problem though.
___
Haskell-Cafe mailing list
Haskell-Cafe
On 8/1/07, Andrew Wagner <[EMAIL PROTECTED]> wrote:
> > you can imagine each of the calls to putStrLn gets implicitly passed a
> > variable (here, the world ) and they happen in succession so it's
> > "like a loop".
> It breaks down further as soon as you add any amount of complexity to
> the cod
On 8/1/07, Andrew Wagner <[EMAIL PROTECTED]> wrote:
> This seems wrong to me. A monad is, first and foremost, a type
> constructor class. I'm not sure how you can really compare that to a
> loop. But perhaps the easiest way to test your definition would be to
> ask this: How is, for example, the Ma
On 7/30/07, John Goerzen <[EMAIL PROTECTED]> wrote:
> On 2007-07-25, david48 <[EMAIL PROTECTED]> wrote:
> > HDBC Supports Mysql only through ODBC :(
> This is true, unless some MySQL hacker would like to contribute a native
> module. I don't use MySQL myself and
On 7/25/07, George Moschovitis <[EMAIL PROTECTED]> wrote:
I am a Haskell newbie and I would like to hear your suggestions regarding a
Database conectivity library:
HSQL or HDBC ?
which one is better / more actively supported?
HDBC Supports Mysql only through ODBC :(
_
96 matches
Mail list logo