Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  cabal question, asked in a foul mood (Philippe Sismondi)
   2. Re:  do-notation question (Arlen Cuss)
   3. Re:  cabal question, asked in a foul mood (Antoine Latter)
   4.  Example Connection String to MySQL via ODBC? (Christopher Howard)
   5. Re:  Example Connection String to MySQL via ODBC?
      (Christopher Howard)


----------------------------------------------------------------------

Message: 1
Date: Fri, 13 May 2011 23:10:36 -0400
From: Philippe Sismondi <[email protected]>
Subject: [Haskell-beginners] cabal question, asked in a foul mood
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

What exactly *is* a cabal package? I an not asking about the purpose of a 
package, but very literally: is it a single file? a set of files? a hierarchy 
of directories?

I apologize if this seems like a silly question. However, I have just read the 
first five pages of the cabal user's guide, and am none the wiser for it. That 
particular piece of documentation is in serious need of review by a good 
editor, to put it mildly.  I cannot read any further in it without losing my 
patience completely.

Thanks; sorry for the bit of ranting.

- Phil -





------------------------------

Message: 2
Date: Sat, 14 May 2011 13:11:05 +1000
From: Arlen Cuss <[email protected]>
Subject: Re: [Haskell-beginners] do-notation question
To: [email protected]
Cc: [email protected]
Message-ID: <1305342665.2487.1.camel@asu>
Content-Type: text/plain; charset="utf-8"

>  defaultLayout contents = do
>          PageContent title headTags bodyTags <- widgetToPageContent $ do
>              addCassius ...
> 
>  How does this work?  Is bodyTags drawn from widgetToPageContent and 
>  then used as the third argument to PageContent?

I believe it's a pattern match; widgetToPageContent returns a
PageContent (in some monad), which is bound to "PageContent title
headTags bodyTags" -- so the three variables are bound to.

>  tia,
>  Lee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110514/2f933541/attachment-0001.pgp>

------------------------------

Message: 3
Date: Fri, 13 May 2011 22:38:35 -0500
From: Antoine Latter <[email protected]>
Subject: Re: [Haskell-beginners] cabal question, asked in a foul mood
To: Philippe Sismondi <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

On Fri, May 13, 2011 at 10:10 PM, Philippe Sismondi <[email protected]> wrote:
> What exactly *is* a cabal package? I an not asking about the purpose of a 
> package, but very literally: is it a single file? a set of files? a hierarchy 
> of directories?
>

A cabal package is a set of files along with a package description
file (named *.cabal).

A single directory can hold at most one package description file.

A cabal package is traditionally distributed as a tarball, and many
are available on Hackage:

* http://hackage.haskell.org/package/HTTP
* http://hackage.haskell.org/package/bytestring

The tarball itself is at the bottom of the page, along with a link to
the package description file itself.

Most folks interact with Cabal packages using the "cabal-install" tool.

> I apologize if this seems like a silly question. However, I have just read 
> the first five pages of the cabal user's guide, and am none the wiser for it. 
> That particular piece of documentation is in serious need of review by a good 
> editor, to put it mildly. ?I cannot read any further in it without losing my 
> patience completely.
>

It is okay! If it isn't clear, it is okay to ask questions.

> Thanks; sorry for the bit of ranting.
>
> - Phil -
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>



------------------------------

Message: 4
Date: Fri, 13 May 2011 21:04:10 -0800
From: Christopher Howard <[email protected]>
Subject: [Haskell-beginners] Example Connection String to MySQL via
        ODBC?
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Hi. I'm trying to connect for the first time to a 5.1 MySQL database
with HDBC via the ODBC driver. Would someone be kind enough to show me
an example connect string to pass to connectODBC? I've tried to put
together what I can from the "example" at Hackage and old posts I found
on the Web, but all I ever get is

*** Exception: <<Database.HDBC.SqlError>>

If someone could give me a boilerplate example with the standard
elements (host, database, user, password) that would probably help.
Thank you.

-- 
frigidcode.com
theologia.indicium.us



------------------------------

Message: 5
Date: Fri, 13 May 2011 21:17:47 -0800
From: Christopher Howard <[email protected]>
Subject: Re: [Haskell-beginners] Example Connection String to MySQL
        via ODBC?
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 05/13/2011 09:04 PM, Christopher Howard wrote:
> Hi. I'm trying to connect for the first time to a 5.1 MySQL database
> with HDBC via the ODBC driver. Would someone be kind enough to show me
> an example connect string to pass to connectODBC? I've tried to put
> together what I can from the "example" at Hackage and old posts I found
> on the Web, but all I ever get is
> 
> *** Exception: <<Database.HDBC.SqlError>>
> 
> If someone could give me a boilerplate example with the standard
> elements (host, database, user, password) that would probably help.
> Thank you.
> 

Heh, heh... oops... I see now I don't have the ODBC MySQL driver
installed on my system. That's probably important.

-- 
frigidcode.com
theologia.indicium.us



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 35, Issue 27
*****************************************

Reply via email to