Re: [Haskell-cafe] MySQL and Haskell on Windows

2010-04-29 Thread Maciej Podgurski
Hi, some time ago I've had similar problems making MySQL work on Windows, and I wrote a post to haskell-cafe how I finally fixed them [1]. Maybe it helps you to solve your problems. I'm still getting linker errors when using hsql-mysql [2], so if you're going to use it and run into the same

[Haskell-cafe] Happstack/Apache configuration problem

2010-03-18 Thread Maciej Podgurski
Hi, I'm not sure if this is the right place to ask because the problem may lay in my Apache or system configuration. I use the Apache proxy module to forward a HTTP request from port 80 to a Happstack application listening on port 8000 via `ProxyPass / http://localhost:8000/' on Windows XP.

Re: [Haskell-cafe] installing Network on windows

2010-03-17 Thread Maciej Podgurski
Am 17.03.2010 21:17 schrieb Andrew Coppin: gladst...@gladstein.com wrote: I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance. cabal install network Resolving dependencies...

Re: [Haskell-cafe] Problems linking hsql-mysql

2010-02-24 Thread Maciej Podgurski
, please let me know... At first sight, I would say it looks like a configuration problem... ;-) Cheers, Nick Maciej Podgurski wrote: Hi, I have problems linking a simple test program that imports Database.HSQL.MySQL via ghc --make Test.hs. The error only occurs when importing this module

[Haskell-cafe] Problems linking hsql-mysql

2010-02-23 Thread Maciej Podgurski
Hi, I have problems linking a simple test program that imports Database.HSQL.MySQL via ghc --make Test.hs. The error only occurs when importing this module of hsql-mysql-1.7.1. I pasted the building output here: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=22911 (actually it was even longer

[Haskell-cafe] Cabal update problem

2010-02-19 Thread Maciej Podgurski
Hi, after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I always get an error when updating the package list: cabal update Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: premature end of compressed stream Is there a way

Re: [Haskell-cafe] Re: Cabal update problem

2010-02-19 Thread Maciej Podgurski
Am 19.02.2010 12:57 schrieb Christian Maeder: Maciej Podgurski schrieb: Hi, after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I always get an error when updating the package list: cabal update Downloading the latest package list from hackage.haskell.org cabal

Re: [Haskell-cafe] Cabal update problem

2010-02-19 Thread Maciej Podgurski
Am 19.02.2010 13:55 schrieb Valery V. Vorotyntsev: after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I always get an error when updating the package list: cabal update Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: premature

Re: [Haskell-cafe] Re: Cabal update problem

2010-02-19 Thread Maciej Podgurski
Maciej Podgurski schrieb: Am 19.02.2010 12:57 schrieb Christian Maeder: Maciej Podgurski schrieb: Hi, after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I always get an error when updating the package list: cabal update Downloading the latest package list

Re: [Haskell-cafe] Re: Cabal update problem

2010-02-19 Thread Maciej Podgurski
it by just replacing the cabal-install executable by the old one used in the haskell platform. Cheers, Bas On 19 February 2010 16:11, Maciej Podgurski maciej.podgur...@googlemail.com wrote: Am 19.02.2010 15:29 schrieb Christian Maeder: Sorry, I've got no further idea (except reinstalling

[Haskell-cafe] Virus alert while installing happstack

2010-02-14 Thread Maciej Podgurski
Hi, I tried to install happstack via cabal install happstack on my WinXP system. While installation progress, my anti-virus software (Avira AntiVir) warned me about dll_hsc_make.exe and files_hsc_make.exe to be a Trojan horse called TR/Dropper.Gen. It's a bit confusing to get a virus alert

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Maciej Podgurski
Does Database.HDBC.getTables work for you? I successfully created a new table and selected data from a database but getTables always returns an empty list (what is not a big problem since a query show tables works fine). Besh wishes, Maciej W dniu 19.06.2009 13:50 Daniel van den Eijkel

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Maciej Podgurski
file mysql_config which seems to be available only for linux systems. Best wishes, Maciej W dniu 19.06.2009 09:31 Björn Peemöller pisze: Maciej Podgurski schrieb: So I switched to HDBC-2.1.1 and got the next compile error: Building convertible-1.0.5... Data/Convertible/Instances/Num.hs:671

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Maciej Podgurski
6.10.2, HDBC-2.1.0, HDBC-ODBC-2.1.0.0) - it gives me the list of all tablenames, as intended. Which HDBC version do you use? best regards, daniel Maciej Podgurski schrieb: Does Database.HDBC.getTables work for you? I successfully created a new table and selected data from a database but getTables

[Haskell-cafe] Use MySQL from Haskell

2009-06-18 Thread Maciej Podgurski
Hello, I'm trying to use MySQL from Haskell but it seems impossible for me to install one of the MySQL packages on my Windows XP machine. First I tired to install hsql-mysql-1.7.1 on GHC 6.10.3 but installing haskelldb-hsql failed with a hidden package error. So I added the old-time package

Re: [Haskell-cafe] self-referential data

2008-08-09 Thread Maciej Podgurski
brian wrote: On Sat, Aug 9, 2008 at 5:18 PM, Brent Yorgey [EMAIL PROTECTED] wrote: The problem is that BString is not a type, it is a data constructor. I know. You could use M.Map BValue BValue, but of course that's probably not what you want either. Right. That wouldn't be according to

[Haskell-cafe] Return user state in Parsec

2008-05-21 Thread Maciej Podgurski
Hi, I'm currently writing a parser using the Parsec library. What I want is to store the order of each subparser called in a user state. So every single parser will be marked with a label that is stored in a special treelike structure when the parser is run. My problem is to return the last

[Haskell-cafe] Parsec: Transforming between parsers with different token streams

2008-02-11 Thread Maciej Podgurski
Hi, I'm writing a simple parser for a line-oriented language using Parsec. A group of lines is parsed by a parser that tokens are of type String. Each token is again parsed by a parser that tokens are of type Char (i.e. this parser has the Parsec type Parser a). Now I wrote a transforming