Re: [GHC] #3307: System.IO and System.Directory functions not Unicode-aware under Unix

2009-06-19 Thread GHC
#3307: System.IO and System.Directory functions not Unicode-aware under Unix ---+ Reporter: YitzGale | Owner: Type: bug| Status: new Priority:

Re: [GHC] #3297: Compiler panic on incorrect code (TcTyFuns.flattenType: synonym family in a rank-n type)

2009-06-19 Thread GHC
#3297: Compiler panic on incorrect code (TcTyFuns.flattenType: synonym family in a rank-n type) -+-- Reporter: hesselink| Owner: chak Type: bug | Status: new

[GHC] #3313: Uncertain bug report (panic!)

2009-06-19 Thread GHC
#3313: Uncertain bug report (panic!) --+- Reporter: semanticprecision | Owner: Type: bug| Status: new Priority: normal | Component: Compiler Version:

Re: [GHC] #3313: Uncertain bug report (panic!)

2009-06-19 Thread GHC
#3313: Uncertain bug report (panic!) ---+ Reporter: semanticprecision | Owner: Type: bug| Status: new Priority: normal | Milestone: Component:

Re: [GHC] #3313: Uncertain bug report (panic!)

2009-06-19 Thread GHC
#3313: Uncertain bug report (panic!) ---+ Reporter: semanticprecision | Owner: Type: bug| Status: new Priority: normal | Milestone: Component:

Re: Three patches for cabal

2009-06-19 Thread Ian Lynagh
On Wed, Jun 17, 2009 at 10:24:48AM +0100, Duncan Coutts wrote: Deprecating PatternSignatures seems uncontroversial, but the NoMonoPatBinds is potentially controversial. GHC essentially uses -XMonoPatBinds by default, even in H98 mode, and the user can use -XNoMonoPatBinds to restore H98

Re: build question: ghc 6.11.20090605 - ghc 6.10.3?

2009-06-19 Thread Ian Lynagh
Hi Uwe, Sorry for the slow response. On Sun, Jun 07, 2009 at 03:04:44PM -0700, Uwe Hollerbach wrote: Hi, all, is it expected that a snapshot version (I'm using 2009.06.05) should be able to build the released version 6.10.3? No: In order to compile the 6.10.3 release you need to use a

[Haskell] 12th Annual ICFP Contest

2009-06-19 Thread Mark Huntington Snyder
The University of Kansas is pleased to call for participation in the 12th Annual ICFP Programming Contest, hosted by the Computer Systems Design Laboratory at the Information and Telecommunication Technology Center. http://icfpcontest.org/ The contest, associated with the International

Re: [Haskell] Re: Top Level

2009-06-19 Thread Ian Lynagh
On Thu, Jun 18, 2009 at 06:03:03PM +0200, Wolfgang Jeltsch wrote: Am Mittwoch, 17. Juni 2009 11:05 schrieb Malcolm Wallace: The problem with a top-level namespace like FRP is that it is a cryptic acronym: it means nothing to a novice, and may be easily confused with other acronyms by an

[Haskell] Re: ANN: haskell-src-exts 1.0.0 rc1 (aka 0.5.2)

2009-06-19 Thread Niklas Broberg
Hi all, Another day, another release candidate. Please see haskell-src-exts-0.5.5, 1.0.0 rc3. Thanks a lot to all reports, and please keep up the good work! Here we go again. Please have a look at haskell-src-exts-0.5.6, or 1.0.0 rc4. Thanks again for the reports, they're all truly

[Haskell-cafe] how to #include files within parsec ... without unsafePerformIO?

2009-06-19 Thread Leonard Siebeneicher
Hi Neil, Hi Daniel. Thank you for your help, using parsec 3.0.0 and liftIO was the solution. After installing new parsec I have had to use import Text.Parsec ... instead of ... import Text.ParserCombinators.Parsec ... to get it work. It seems Text.ParserCombinators.Parsec refers to old Parsec 2

Re: [Haskell-cafe] Creating a new Haskell mailing list

2009-06-19 Thread Wolfgang Jeltsch
Am Donnerstag, 18. Juni 2009 16:21 schrieb Henning Thielemann: Ryan Trinkle schrieb: Hi all, I'm interested in starting a mailing list on haskell.org http://haskell.org. Who should I talk to about such things? Is it a mailing list related to a project? Then you may request a project

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread david48
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)

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Björn Peemöller
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:0: warning: no newline at end of file [...] [5 of 8] Compiling Data.Convertible.Instances.C ( Data/Convertible/Instances/C.hs,

Re: [Haskell-cafe] Runtime strictness analysis for polymorphic HOFs?

2009-06-19 Thread Edward Kmett
Hi Max, I don't have anything in a public repository at this time. I have been exploring a series of designs in this space trying to see if any could be applied to a system like GHC's bytecode interpreter, but up to now I've been working mostly with cooperatively jitting x86-64 assembly to x86-64

[Haskell-cafe] FFI question

2009-06-19 Thread Vasili I. Galchin
Hello, I would like to write bindings from Haskell to Java. Is this possible? If so, where are examples? Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Could someone give me a sample about haskelldb?

2009-06-19 Thread Magicloud Magiclouds
I changed it, some other problem occured. 1. How to compare a BoolT column to a True? t!c .. True could not work. 2. What shoud I use after !? Like table!col, recordset!col, what is col? Thanks. On Fri, Jun 19, 2009 at 1:24 PM, Magicloud Magicloudsmagicloud.magiclo...@gmail.com wrote: Hi,  I am

[Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Deniz Dogan
2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com: Hi I couldn't come up with a better subject than this one, so anyways... I have a small program which spawns a subprocess. However, when I hit C-c, the subprocess won't die, instead it will just keep running until it's done or until I kill

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Aycan iRiCAN
Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı: 2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com: Hi I couldn't come up with a better subject than this one, so anyways... I have a small program which spawns a subprocess. However, when I hit C-c, the subprocess won't

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Deniz Dogan
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı: 2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com: Hi I couldn't come up with a better subject than this one, so anyways... I have a small program which spawns a

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Aycan iRiCAN
Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı: 2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com: Hi I couldn't come up with a better subject than

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Deniz Dogan
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde, Deniz Dogan yazdı: 2009/6/18 Deniz Dogan deniz.a.m.do...@gmail.com: Hi

[Haskell-cafe] Re: Could someone give me a sample about haskelldb?

2009-06-19 Thread GüŸnther Schmidt
Hi Magicloud, restrict (t!T.done .. constant False) should dot it but your t!T.done confuses me, is the the T.xxx due to an import? also the line 49 does not seem to be right. Would you mind to post your table and column definitions? Günther Magicloud Magiclouds schrieb: I changed it,

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Daniel van den Eijkel
The same with me - I'm on XP, and HDBC-odbc is the library I got running to access the MySQL database. Regards, Daniel Michael Snoyman schrieb: 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.

[Haskell-cafe] Using Parsec with ByteString ?

2009-06-19 Thread Fernand
Hi, May be it's a frequently asked question, but I have been unable to find my way in the parsec-3.0.0 library when trying to write a small parser with Parsec that could work with ByteStrings. I mean, there is the Text.Parsec.ByteString module which allows to parse a file using ByteStrings,

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Aycan iRiCAN
Cum, 2009-06-19 tarihinde 13:09 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 11:58 +0200 saatinde,

Re: [Haskell-cafe] Re: Running a sub-process which dies with the main program

2009-06-19 Thread Deniz Dogan
2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 13:09 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr: Cum, 2009-06-19 tarihinde 12:42 +0200 saatinde, Deniz Dogan yazdı: 2009/6/19 Aycan iRiCAN aycan.iri...@core.gen.tr:

[Haskell-cafe] duplicate definition for symbol

2009-06-19 Thread Henk-Jan van Tuyl
L.S., I am trying to run a program in GHCi, but I get a meesage that an object file is loaded twice; it appears that two different versions of package process are loaded, see the session text below. How can I solve this? GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help

Re: [Haskell-cafe] duplicate definition for symbol

2009-06-19 Thread Daniel Fischer
Am Freitag 19 Juni 2009 16:06:50 schrieb Henk-Jan van Tuyl: L.S., I am trying to run a program in GHCi, but I get a meesage that an object   file is loaded twice; it appears that two different versions of package   process are loaded, see the session text below. How can I solve this?

Re: [Haskell-cafe] ANNOUNCE fmlist

2009-06-19 Thread Sebastian Fischer
On Jun 18, 2009, at 9:57 AM, Sjoerd Visscher wrote: This is my first package on Hackage, so any comments are welcome! It is not only pleasingly elegant but also quite useful: Your Monad and MonadPlus instances lead me to an interesting observation. Various strategies for non-deterministic

Re: [Haskell-cafe] ANNOUNCE fmlist

2009-06-19 Thread Sjoerd Visscher
On Jun 19, 2009, at 3:35 PM, Sjoerd Visscher wrote: transform t l = FM $ \f - unFM l (t f) Unfortunately I couldn't get this code to type-check, so the library doesn't use transform. With some help from Martijn van Steenbergen the type turned out to be: transform :: (forall b. Monoid b

Re: [Haskell-cafe] packages on Hackage?

2009-06-19 Thread Don Stewart
vigalchin: Hello, Haskell packages on Hackage can be hosted anywhere, yes? If a Haskell package is hosted on Hackage, how often is it backed up? Nightly. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Don Stewart
jsnow: I'm having some trouble with excessive memory use in a program that uses a lot of IORefs. I was able to write a much simpler program which exhibits the same sort of behavior. It appears that modifyIORef and writeIORef leak memory; perhaps they keep a reference to the old

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Daniel van den Eijkel
Don Stewart schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Best regards, Daniel ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Don Stewart
dvde: Don Stewart schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Try writing a version of this program, using modifyIORef only, such that it doesn't exhaust the heap: import Data.IORef import Control.Monad

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Claus Reinke
It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Possibly, Don meant that 'modifyIORef' is defined in a way that does not allow to enforce evaluation of the result of the modification function (a typical problem with fmap-style

Re: [Haskell-cafe] Using Parsec with ByteString ?

2009-06-19 Thread Chaddaï Fouché
On Fri, Jun 19, 2009 at 1:51 PM, Fernandquarantedeu...@yahoo.fr wrote: but the parser one needs to write must parse ByteStrings instead of Strings (that is, something like having a Parsec Bytestring () type, unless I'm completely misunderstanding the situation). My problem is that I do not

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Daniel van den Eijkel
Don Stewart schrieb: dvde: Don Stewart schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Try writing a version of this program, using modifyIORef only, such that it doesn't exhaust the heap:

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Don Stewart
dvde: Don Stewart schrieb: dvde: Don Stewart schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Try writing a version of this program, using modifyIORef only, such that it doesn't exhaust the

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Daniel van den Eijkel
Yes I guessed that. Thanks, Daniel Claus Reinke schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Possibly, Don meant that 'modifyIORef' is defined in a way that does not allow to enforce evaluation of the result of

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread John Goerzen
Maciej Podgurski wrote: Building convertible-1.0.5... There was unfortunately an API change in GHC 6.10.3 that could not be worked around. Either upgrade to 6.10.3 or use an older version of convertible. -- John ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] ANNOUNCE fmlist

2009-06-19 Thread Sjoerd Visscher
On Jun 19, 2009, at 5:06 PM, Sebastian Fischer wrote: Your Monad and MonadPlus instances lead me to an interesting observation. Various strategies for non-deterministic search can be implemented using FMList by expressing failure and choice via a Monoid instance. I have just finished a

Re: [Haskell-cafe] duplicate definition for symbol

2009-06-19 Thread austin s
Excerpts from Henk-Jan van Tuyl's message of Fri Jun 19 09:06:50 -0500 2009: L.S., I am trying to run a program in GHCi, but I get a meesage that an object file is loaded twice; it appears that two different versions of package process are loaded, see the session text below. How can I

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] IORef memory leak

2009-06-19 Thread Jim Snow
Don Stewart wrote: dvde: Don Stewart schrieb: It is not possible to write a modifyIORef that *doesn't* leak memory! Why? Or can one read about it somewhere? Try writing a version of this program, using modifyIORef only, such that it doesn't exhaust the heap:

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Maciej Podgurski
Hi Björn, thanks for your hint, I finally made HDBC-odbc and even hsql-mysql run. Below is a step-by-step manual how to install both packages on windows for people having the same troubles I had. I used GHC 6.8.3. MySQL from HDBC-odbc 1.) Install package time-1.1.2.4.

Re: [Haskell-cafe] IORef memory leak

2009-06-19 Thread Gregory Collins
Jim Snow js...@cs.pdx.edu writes: Works for me. The laziness of modifyIORef and workarounds would be a good thing to have documented in the modifyIORef docs, since it's probably a common source of memory leaks. I'd also be in favor of a strict version of modifyIORef.

[Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Paulo J. Matos
Hi all, I am trying to install agda through cabal but I get this: $ cabal install alex Resolving dependencies... [1 of 1] Compiling Main ( /tmp/alex-2.3.116333/alex-2.3.1/Setup.lhs, /tmp/alex-2.3.116333/alex-2.3.1/dist/setup/Main.o ) /tmp/alex-2.3.116333/alex-2.3.1/Setup.lhs:6:51: Warning:

Re: [Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Jake McArthur
Paulo J. Matos wrote: As you can see, I had just finished installing alex 2.3.1, so why does cabal still request alex =2.0.1 3? Probably you don't have alex in your PATH. - Jake ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Paulo J. Matos
On Fri, 2009-06-19 at 15:35 -0500, Jake McArthur wrote: Paulo J. Matos wrote: As you can see, I had just finished installing alex 2.3.1, so why does cabal still request alex =2.0.1 3? Probably you don't have alex in your PATH. - Jake Shouldn't cabal make sure the library it installs

Re: [Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Max Rabkin
On Fri, Jun 19, 2009 at 11:20 PM, Paulo J. Matospocma...@gmail.com wrote: Shouldn't cabal make sure the library it installs are in PATH? This would require modifying the path (since there may be no writable location on the existing path). But the PATH is set by a combination of several programs

Re: [Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Paulo J. Matos
On Fri, 2009-06-19 at 23:35 +0200, Max Rabkin wrote: On Fri, Jun 19, 2009 at 11:20 PM, Paulo J. Matospocma...@gmail.com wrote: Shouldn't cabal make sure the library it installs are in PATH? This would require modifying the path (since there may be no writable location on the existing path).

Re: [Haskell-cafe] Installing agda through cabal

2009-06-19 Thread Daniel Fischer
Am Freitag 19 Juni 2009 23:41:05 schrieb Paulo J. Matos: It might be a good idea for cabal-install to warn that its bin directory is not in your path when you install an executable. Yep, might be an interesting idea for warning. :) This has been discussed in connection to the question where

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Daniel van den Eijkel
Hi Maciej, Database.HDBC.getTables works fine here (XP, ghc 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

[Haskell-cafe] Re: ANN: haskell-src-exts 1.0.0 rc1 (aka 0.5.2)

2009-06-19 Thread Niklas Broberg
Hi all, Another day, another release candidate. Please see haskell-src-exts-0.5.5, 1.0.0 rc3. Thanks a lot to all reports, and please keep up the good work! Here we go again. Please have a look at haskell-src-exts-0.5.6, or 1.0.0 rc4. Thanks again for the reports, they're all truly

Re: [Haskell-cafe] Use MySQL from Haskell

2009-06-19 Thread Maciej Podgurski
Hi Daniel, I use HDBC-2.1.1 + HDBC-odbc-2.1.0.0 with GHC 6.8.3 and MySQL Server 5.1 on XP. The hsql equivalent Database.HSQL.tables works as expected. Best wishes, Maciej W dniu 20.06.2009 01:16 Daniel van den Eijkel pisze: Hi Maciej, Database.HDBC.getTables works fine here (XP, ghc

[Haskell-cafe] hs-dotnet users?

2009-06-19 Thread GüŸnther Schmidt
Hi all, I'm just touching base with Sigbjorns hs-dotnet package. Are there other users of this package out there who would like to share their experience? Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Getting my mind around UArray - STUArray conversion

2009-06-19 Thread Scott Michel
I'm trying to get my mind around how to thaw and then freeze a UArray. Theoretically, what I've written below should be a no-op, but I keep getting typing errors that I can't figure out. GHCI 6.10.3 says: Couldn't match expected type `UArray ix a' against inferred type `ST s (STUArray

Re: [Haskell-cafe] Getting my mind around UArray - STUArray conversion

2009-06-19 Thread Dan Doel
On Friday 19 June 2009 9:43:29 pm Scott Michel wrote: wombat :: (IArray UArray e, Ix ix, MArray (STUArray s) e (ST s)) = e - ix - UArray ix e - UArray ix e wombat val idx mem = (unsafeThaw mem :: ST s (STUArray s ix e)) = (\mmem - unsafeFreeze mmem) Based on the error message and dealing with

Re: [Haskell-cafe] Getting my mind around UArray - STUArray conversion

2009-06-19 Thread Daniel Fischer
Am Samstag 20 Juni 2009 03:51:08 schrieb Dan Doel: On Friday 19 June 2009 9:43:29 pm Scott Michel wrote: wombat :: (IArray UArray e, Ix ix, MArray (STUArray s) e (ST s)) = e - ix - UArray ix e - UArray ix e wombat val idx mem = (unsafeThaw mem :: ST s (STUArray s ix e)) = (\mmem -

Re: [Haskell-cafe] Getting my mind around UArray - STUArray conversion

2009-06-19 Thread Dan Doel
Oops, I replied too hastily. What I wrote in my first mail is a problem, as witnessed by the ix and ix1 in the error message. However, it isn't the main error. The main error is that you have a monadic expression, with type something like: ST s (UArray ix e) but the return type of your

Re: [Haskell-cafe] Confusion on the third monad law when using lambda abstractions

2009-06-19 Thread wren ng thornton
Hans van Thiel wrote: On Wed, 2009-06-17 at 21:26 -0500, Jake McArthur wrote: Jon Strait wrote: I'm reading the third (bind associativity) law for monads in this form: m = (\x - k x = h) = (m = k) = h Arguably, that law would be better stated as: (h = k) = m = h = (k = m) This