<div dir="ltr">Marciej,<br><br>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&#39;s working for me at least, which I know is a dubious recommendation.<br>
<br>Also, I am currently using the hdbc-odbc package for accessing MySQL. I couldn&#39;t get hdbc-mysql to work properly. I hope that once I get this project working right, I&#39;ll have a chance to dig into the hdbc-mysql issue itself.<br>
<br>Good luck!<br><br>Michael<br><br><div class="gmail_quote">On Fri, Jun 19, 2009 at 12:26 AM, Maciej Podgurski <span dir="ltr">&lt;<a href="mailto:maciej.podgurski@googlemail.com">maciej.podgurski@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I&#39;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.<br>
<br>
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 to the cabal file but there still was a compile error (something due to the change from Exception to Exception e =&gt; e).<br>

<br>
So I switched to GHC 6.8.3 and tried it again. Now it says:<br>
<br>
Configuring hsql-mysql-1.7.1...<br>
Warning: &#39;extra-lib-dirs: /usr/lib/mysql&#39; directory does not exist.<br>
Warning: &#39;include-dirs: /usr/include/mysql&#39; directory does not exist.<br>
Warning: This package indirectly depends on multiple versions of the same<br>
package. This is highly likely to cause a compile failure.<br>
package process-1.0.0.1 requires filepath-1.1.0.0<br>
package directory-1.0.0.1 requires filepath-1.1.0.0<br>
package Cabal-1.6.0.3 requires filepath-1.1.0.2<br>
Setup: Missing dependency on a foreign library:<br>
* Missing C library: mysqlclient<br>
This problem can usually be solved by installing the system package that<br>
provides this library (you may need the &quot;-dev&quot; version). If the library is<br>
already installed but in a non-standard location then you can use the flags<br>
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.<br>
<br>
There&#39;s no Haskell package mysqlclient and I don&#39;t know how to install a C library in Haskell. So I switched to HDBC-2.1.1 and got the next compile error:<br>
<br>
Building convertible-1.0.5...<br>
<br>
Data/Convertible/Instances/Num.hs:671:0:<br>
    warning: no newline at end of file<br>
[...]<br>
[5 of 8] Compiling Data.Convertible.Instances.C ( Data/Convertible/Instances/C.hs, dist\build/Data/C<br>
onvertible/Instances/C.o )<br>
[6 of 8] Compiling Data.Convertible.Instances.Time ( Data/Convertible/Instances/Time.hs, dist\build/<br>
Data/Convertible/Instances/Time.o )<br>
<br>
Data/Convertible/Instances/Time.hs:64:0:<br>
   Duplicate instance declarations:<br>
     instance Typeable NominalDiffTime<br>
       -- Defined at Data/Convertible/Instances/Time.hs:(64,0)-(65,42)<br>
     instance Typeable NominalDiffTime<br>
       -- Defined in time-1.1.3:Data.Time.Clock.UTC<br>
<br>
Data/Convertible/Instances/Time.hs:67:0:<br>
   Duplicate instance declarations:<br>
     instance Typeable UTCTime<br>
       -- Defined at Data/Convertible/Instances/Time.hs:(67,0)-(68,34)<br>
     instance Typeable UTCTime<br>
       -- Defined in time-1.1.3:Data.Time.Clock.UTC<br>
<br>
So please help me, what GHC/package configuration will I need to use MySQL from my Haskell programs on Windows? I really like Haskell but all those &quot;broken&quot; packages are really discouraging. :(<br>
<br>
<br>
Best wishes,<br>
Maciej<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>