Send Beginners mailing list submissions to
        beginners@haskell.org

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
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

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


Today's Topics:

   1. Re:  Installing HDBC (Kathleen Lynch)
   2.  How to use the yaml package? (Xavier Shay)
   3. Re:  How to use the yaml package? (Michael Snoyman)
   4.  Can't find or open a Sqlite3 database in Windows Vista
      (Kathleen Lynch)


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

Message: 1
Date: Wed, 02 Feb 2011 13:35:16 -0500
From: "Kathleen Lynch" <kmandpjly...@verizon.net>
Subject: Re: [Haskell-beginners] Installing HDBC
To: "Patrick LeBoutillier" <patrick.leboutill...@gmail.com>
Cc: beginners@haskell.org
Message-ID: <83E370621ED54EB081516C9BD1444BC8@UserPC>
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
        reply-type=original

Eureeka!

Your info helped...I can't thank you enough...
I can now connect to the database shown in "Real World Haskell" - I was just 
about ready to give up...

Now if I can only get GTK and my Mac to work...well we'll start that 
tomorrow...enuf to do today...

Thank you

Ps
If anyone want to get a task force started in regard to installing Sqlite3 
and GTK, I'll definitely participate...

----- Original Message ----- 
From: "Patrick LeBoutillier" <patrick.leboutill...@gmail.com>
To: "Kathleen Lynch" <kmandpjly...@verizon.net>
Cc: <beginners@haskell.org>
Sent: Tuesday, February 01, 2011 9:49 PM
Subject: Re: [Haskell-beginners] Installing HDBC


Kathleen,

Grab this: http://www.sqlite.org/sqlite-dll-win32-x86-3070500.zip
Extract the sqlite3.dll file from inside, copy it to c:\users\user and
to c:\windows\system32

Grab: http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz
Extract the sqlite3.h file from inside, copy it to c:\users\user

Then

> cabal install 
> HDBC-sqlite3 --extra-include-dirs=C:\Users\User --extra-lib-dirs=C:\Users\User

should work.

I have only installed it though, I didn't run it.

Patrick

On Tue, Feb 1, 2011 at 5:00 PM, Kathleen Lynch <kmandpjly...@verizon.net> 
wrote:
> ...I put it in my PATH [C:\users\user] and put the file Sqlite3 in that
> folder [C:\users\user] where I'm running Cabal and extended the Cabal
> command as follows - nothing helps...
> cabal install HDBC-sqlite3 --extra-include-dirs=C:\Users\User
> --extra-lib-dirs=C:\Users\User
>
> ...At this point, I'm unable to install Sqlite3 and GTK...
>
> ...I know this is 'open source' but it really shouldn't be this hard to do
> these installations...
>
> ...I'll go back to my Monads and see if I can figure them out and then 
> take
> a look at F# - I might have better luck there...
>
> Bye
>
> ----- Original Message ----- From: "Daniel Fischer"
> <daniel.is.fisc...@googlemail.com>
> To: "Kathleen Lynch" <kmandpjly...@verizon.net>
> Cc: <beginners@haskell.org>
> Sent: Tuesday, February 01, 2011 3:07 PM
> Subject: Re: [Haskell-beginners] Installing HDBC
>
>
> On Tuesday 01 February 2011 20:20:22, Kathleen Lynch wrote:
>>
>> I entered the command you gave me: cabal install HDBC-sqlite3
>> It returned the following error:
>> Resolving dependencies...
>> Configuring HDBC-sqlite3-2.3.1.0...
>> cabal: Missing dependency on a foreign library:
>> * Missing C library: sqlite3
>
> That means you don't have the C library installed, or at least that cabal
> can't find it. You have to install it otherwise or put it in a directory 
> in
> your %PATH%. I'm not familiar with Windows, so I can't tell you how to do
> that. You could search on the haskellwiki, perhaps there are instructions
> there.
>
>>
>> I then went to the link you provided:
>> http://hackage.haskell.org/package/HDBC-sqlite3
>> I extracted the tar file, HDBC-sqlite3-2.3.1.0.tar, and tried to un-tar
>> it but get the following message:
>> "Error reading header after processing 0 entries"
>
> If cabal complains about a missing foreign dependency, trying a manual
> install won't help, runhaskell ./Setup configure won't look anywhere cabal
> doesn't.
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
=====================
Patrick LeBoutillier
Rosem?re, Qu?bec, Canada 





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

Message: 2
Date: Thu, 03 Feb 2011 07:23:36 +1100
From: Xavier Shay <xavier-l...@rhnh.net>
Subject: [Haskell-beginners] How to use the yaml package?
To: beginners@haskell.org
Message-ID: <4d49bd48.1080...@rhnh.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

I want to use YAML in my app

I have run:
cabal install yaml

I have added it to my build-depends line in my .cabal file:
Build-Depends:       base,time,yaml

$ runhaskell Setup.lhs configure
Configuring xtdo-0.1...
Setup.lhs: At least the following dependencies are missing:
yaml -any

Oh no! I tried just importing Text.Libyaml in both my app and GHCi but 
neither error gave any clues. I also found references to HsSyck, 
data-object-yaml and YAML::Tiny libraries, but not sure what I should be 
using.

Right now I'm feeling totally lost, not being able to find examples of 
code using yaml, nor documentation for how I would use the libraries to 
play around with it. Also not comfortable I understand the interaction 
between cabal, runhaskell, ghc, and my build file.

Any pointers?
References to documentation I should have read also appreciated.

Cheers,
Xavier


(I don't know how relevant it is, but here is my minimal project I am 
trying to add it to: https://github.com/xaviershay/xtdo-hs)



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

Message: 3
Date: Wed, 2 Feb 2011 22:26:37 +0200
From: Michael Snoyman <mich...@snoyman.com>
Subject: Re: [Haskell-beginners] How to use the yaml package?
To: Xavier Shay <xavier-l...@rhnh.net>
Cc: beginners@haskell.org
Message-ID:
        <AANLkTi=os+lkpajawqf+rv9twobmeq+sm8lxiyxav...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Xavier,

I'm the author of both yaml and data-object-yaml. I recommend you
stick with data-object-yaml: yaml is much more low level. I recently
wrote a blog post about data-object-yaml which you will probably find
useful: http://docs.yesodweb.com/blog/data-object-yaml/ .

As for your installation problem: cabal installs libraries by default
in the user folder, whereas Setup.hs checks the global folder by
default. I recommend just using "cabal configure" and skipping the
Setup.hs file.

Good luck!

Michael

On Wed, Feb 2, 2011 at 10:23 PM, Xavier Shay <xavier-l...@rhnh.net> wrote:
> Hello,
>
> I want to use YAML in my app
>
> I have run:
> cabal install yaml
>
> I have added it to my build-depends line in my .cabal file:
> Build-Depends: ? ? ? base,time,yaml
>
> $ runhaskell Setup.lhs configure
> Configuring xtdo-0.1...
> Setup.lhs: At least the following dependencies are missing:
> yaml -any
>
> Oh no! I tried just importing Text.Libyaml in both my app and GHCi but
> neither error gave any clues. I also found references to HsSyck,
> data-object-yaml and YAML::Tiny libraries, but not sure what I should be
> using.
>
> Right now I'm feeling totally lost, not being able to find examples of code
> using yaml, nor documentation for how I would use the libraries to play
> around with it. Also not comfortable I understand the interaction between
> cabal, runhaskell, ghc, and my build file.
>
> Any pointers?
> References to documentation I should have read also appreciated.
>
> Cheers,
> Xavier
>
>
> (I don't know how relevant it is, but here is my minimal project I am trying
> to add it to: https://github.com/xaviershay/xtdo-hs)
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



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

Message: 4
Date: Wed, 02 Feb 2011 17:28:17 -0500
From: "Kathleen Lynch" <kmandpjly...@verizon.net>
Subject: [Haskell-beginners] Can't find or open a Sqlite3 database in
        Windows Vista
To: <beginners@haskell.org>
Message-ID: <76ACC6EC23174DFABE75095FC7BC6129@UserPC>
Content-Type: text/plain; charset="iso-8859-1"

...seems like I 'kicked over another bee hive'...plenty of messages in regard 
to this when you do google search--->[sqlite3.operational error unable to open 
database file in windows vista]

...i'm getting the following error messages when I try to create a database in 
Sqlite3:

*Sandbox> dbh <- connect "poddbtest.db"
*** Exception: SqlError {seState = "", seNativeError = 21, seErrorMsg = 
"prepare 6: BEGIN: unable to open database file"}

*Sandbox> dbh <- connect "test1.db"
*** Exception: SqlError {seState = "", seNativeError = 1, seErrorMsg = "step: 
SQL logic error or missing database"}

Both come from Chapters 21 and 22 in "Real World Haskell"

I can't invoke Sqlite3 from the command line using---> Sqlite3 myDatabase.db...
I created blank files in folder C:\Program Files (x86)\Haskell 
Platform\2010.2.0.0\winghci -- seemed to get me a bit further along...at least 
I was able to connect...

Is it possible to specify the folder that the database should be created in?
Is it possible to run Sqlite3 from the command line - when it has been 
installed using the Haskell wiki?
Has anyone had better success with MySql - I've used it in the past and it was 
very reliable?

Thank you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110202/0f219e6d/attachment-0001.htm>

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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 32, Issue 5
****************************************

Reply via email to