Re: [GHC] #3693: Show stack traces

2010-05-21 Thread GHC
#3693: Show stack traces -+-- Reporter: jpet |Owner: Type: feature request | Status: patch Priority: normal|Milestone: 6.14.1

Re: [GHC] #4085: minor External Core prettyprinter bug

2010-05-21 Thread GHC
#4085: minor External Core prettyprinter bug -+-- Reporter: tim |Owner: Type: bug | Status: patch Priority: normal|Milestone:

Re: [GHC] #4084: minor External Core prettyprinter bug

2010-05-21 Thread GHC
#4084: minor External Core prettyprinter bug +--- Reporter: tim| Owner: Type: bug| Status: closed Priority: normal | Milestone:

Re: [GHC] #2889: Compilation fails - Can't opne temporary

2010-05-21 Thread GHC
#2889: Compilation fails - Can't opne temporary ---+ Reporter: fobrock | Owner: igloo Type: bug | Status: infoneeded Priority: high | Milestone: 6.12.3

Re: [GHC] #3808: piping binary files sometimes fail

2010-05-21 Thread GHC
#3808: piping binary files sometimes fail +--- Reporter: paolino| Owner: Type: bug| Status: new Priority: high | Milestone: 6.14.1

[GHC] #4086: Data.List 'nub' function is O(n^2)

2010-05-21 Thread GHC
#4086: Data.List 'nub' function is O(n^2) ---+ Reporter: Pete| Owner: Type: bug | Status: new Priority: normal | Component: libraries/base

Re: [GHC] #4068: GHC 6.12.2 on Mac OS X from GHC-6.12.2-i386.pkg fails with Undefined symbols: _iconv_close, referenced from: _hs_iconv_close in libHSbase-4.2.0.1.a(iconv.o) ...

2010-05-21 Thread GHC
#4068: GHC 6.12.2 on Mac OS X from GHC-6.12.2-i386.pkg fails with Undefined symbols: _iconv_close, referenced from: _hs_iconv_close in libHSbase-4.2.0.1.a(iconv.o) ... --+- Reporter: thorkilnaur | Owner: igloo

Re: [GHC] #4086: Data.List 'nub' function is O(n^2)

2010-05-21 Thread GHC
#4086: Data.List 'nub' function is O(n^2) -+-- Reporter: Pete |Owner: Type: bug | Status: new Priority: normal

Re: [GHC] #4060: runhaskell Setup register fails with internal error: unexpected package db stack

2010-05-21 Thread GHC
#4060: runhaskell Setup register fails with internal error: unexpected package db stack +--- Reporter: mrothe | Owner: duncan Type: bug| Status: closed

Re: [GHC] #3889: configure script is generating the incorrect value for HAVE_GNU_NONEXEC_STACK

2010-05-21 Thread GHC
#3889: configure script is generating the incorrect value for HAVE_GNU_NONEXEC_STACK ---+ Reporter: dmp | Owner: igloo Type: bug | Status: closed Priority:

[Haskell] Register now for: Haskell in Leipzig (Germany), June 4.

2010-05-21 Thread Johannes Waldmann
The schedule and registration for the Haskell in Leipzig meeting on June 4 are now on-line: http://www.iba-cg.de/hal5.html Keywords: Leksah, HXT, Hawk, Adga, lambda camp, sound synthesis. The workshop is presented by http://www.fit-leipzig.de/ , in co-operation with

[Haskell] Call for fast abstracts: TAIC-PART (testing conference)

2010-05-21 Thread John Hughes
TAIC-PART is an interesting conference on testing that takes place in wonderful surroundings in Windsor Park. I recommend it-I much enjoyed it last year. It's calling for fast abstracts-short papers on new results-by June 11th. It would be fun to see work on testing in the FP community

[Haskell] EXTENDED DEADLINE: VSTTE workshops on Theory and on Experiments Tools

2010-05-21 Thread Gudmund Grov
-- Apologies for multiple copies -- VSTTE 2010: Workshops on Theories, Tools and Experiments Edinburgh, Scotland, 19th August 2010 (*** NEW SUBMISSION DEADLINE: May 28, 2010 *) The Third International Conference on Verified Software: Theories, Tools, and

[Haskell-cafe] Existentials and SYB [Was: GADTs and Scrap your Boilerplate]

2010-05-21 Thread oleg
Oscar Finnsson wrote: I got the GADT data DataBox where DataBox :: (Show d, Eq d, Data d) = d - DataBox and I'm trying to get this to compile instance Data DataBox where gfoldl k z (DataBox d) = z DataBox `k` d gunfold k z c = k (z DataBox) -- not OK As has been pointed out,

Re: [Haskell-cafe] Intuitive function given type signature

2010-05-21 Thread Richard O'Keefe
On May 21, 2010, at 3:51 AM, Brent Yorgey wrote: On Thu, May 20, 2010 at 11:53:09AM +1200, Richard O'Keefe wrote: On May 20, 2010, at 3:18 AM, Brent Yorgey wrote: On Wed, May 19, 2010 at 04:27:14AM +, R J wrote: What are some simple functions that would naturally have the following

Re: [Haskell-cafe] Intuitive function given type signature

2010-05-21 Thread Tom Davies
On 20/05/2010, at 9:53 AM, Richard O'Keefe wrote: The key point is the 'that would NATURALLY have', which I take to mean as a result of type inference without any forcibly imposed type signatures. In my second edition of Bird, the question just says: Give examples of functions with the

Re: [Haskell-cafe] Proposal to solve Haskell's MPTC dilemma

2010-05-21 Thread Stephen Tetley
Hi Evan EHC - Essential Haskell Compiler - is the 'family of compilers' that UHC - Utrecht Haskell Compiler - is instance one of. The EHC family starts with a simple Haskell subset and adds features building up to (almost) Haskell98 for UHC and extended Haskell for some of the EHC variations.

Re: [Haskell-cafe] Proposal to solve Haskell's MPTC dilemma

2010-05-21 Thread Max Bolingbroke
On 21 May 2010 01:58, Carlos Camarao carlos.cama...@gmail.com wrote: But this type-correct program would become not typeable if instances such as the ones referred to before (by Daniel Fischer) I was thinking this through, and the situation is more complex than I had thought. It seems that

[Haskell-cafe] Re: String rewriting

2010-05-21 Thread Johannes Waldmann
... to rewrite strings according to simple composable rules like ... more often than not, regexp/replace is a hack to avoid the real thing (parse - AST - transform - AST' - print). such hacks tend to grow into something that is definitely not composable. but, you can be a hero ...

[Haskell-cafe] Недвижимость во Франции, ар енда и продажа вилл

2010-05-21 Thread moreletto
Офис нашей компании находится в Ницце - в самом сердце Французской Ривьеры, что дает нам непосредственную возможность предложить виллы для аренды и продажи во всем их многообразии, а также сориентировать наших клиентов на самые интересные и значимые мероприятия в богатой культурной и светской

Re: [Haskell-cafe] Недвижимость во Ф ранции, аренда и продажа вилл

2010-05-21 Thread Roel van Dijk
Google translation: The office of our company is located in Nice - the heart of the Riviera, that gives us an immediate opportunity to offer villas for rent and sale in all their diversity, as well as guidance to our clients on the most interesting and important events in the rich cultural

Re: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-21 Thread Thomas Schilling
You could try changing the log_action[1] member of the DynFlags. A while ago I turned most printed errors into some form of error message, but I wouldn't be surprised if I missed some places. All output should go through log_action, though, so try changing that to intercept any output. [1]:

Re: [Haskell-cafe] Type families vs. functional dependencies -- how to express something

2010-05-21 Thread Tomáš Janoušek
Hello, On Tue, May 18, 2010 at 04:47:50PM -0700, Dan Weston wrote: Unifying those two types by hand, I get: P (A t - B a) ~ P (B a) Maybe the problem is that type families (and associated types, their class cousins) are not injective: P x ~ P y does not imply that x ~ y.

RE: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-21 Thread Phyx
Hi, I tried that, setting it to (\_ _ _ _ - return ()) and it still did the same, also tried setting it to undefined to see whether the code that's printing the error is using it, and it didn't crash So I assume it's not. --- *VsxParser getModInfo True

Re: [Haskell-cafe] Proposal to solve Haskell's MPTC dilemma

2010-05-21 Thread Marco Túlio Gontijo e Silva
Hi Max. Excerpts from Max Bolingbroke's message of Sex Mai 21 04:56:51 -0300 2010: (...) (Incidentally, the link to your paper is broken, so I haven't actually been able to read it, sorry!) It was easy to find it on google. http://www.dcc.ufmg.br/~camarao/CT/solution-to-mptc-dilemma.pdf

[Haskell-cafe] Register now for: Haskell in Leipzig (Germany), June 4.

2010-05-21 Thread Johannes Waldmann
Schedule and registration for the Haskell in Leipzig meeting on June 4 are now on-line: http://www.iba-cg.de/hal5.html It's our fifth meeting, and here are five good reasons to go: * learn Haskell: attend tutorials for beginners * get first-hand information: authors of Leksah, HXT,

[Haskell-cafe] Tools to make tidy HTML

2010-05-21 Thread Dmitri O.Kondratiev
Hello! Please advise haskell libraries similar to convert real-world HTML to well-formed XML. I need something similat to HTML Tidy library: http://tidy.sourceforge.net/ Thanks! Dmitri ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ambiguous type variable problem when using forall, multiparameter type classes, and constraints on polymorphic values (and syb-with-class)

2010-05-21 Thread Jeremy Shaw
Hello, I am trying to understand why I am getting an ambigious type variable error, and what I can do to work around it. The problem is occurring while trying to use syb-with-class, but I have stripped it down to it's bare essentials, so the following code is self-contained, and does not require

[Haskell-cafe] FW: Why does this Ord-class instance crash?

2010-05-21 Thread R J
Why does the following, trivial code snippet below hang GHCi when I typeScalene Failure, and what's the fix? data Triangle = Failure | Equilateral | Isosceles | Scalene

Re: [Haskell-cafe] Proposal to solve Haskell's MPTC dilemma

2010-05-21 Thread David Menendez
On Fri, May 21, 2010 at 3:56 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 21 May 2010 01:58, Carlos Camarao carlos.cama...@gmail.com wrote: But this type-correct program would become not typeable if instances such as the ones referred to before (by Daniel Fischer) I was thinking

Re: [Haskell-cafe] FW: Why does this Ord-class instance crash?

2010-05-21 Thread David Menendez
2010/5/21 R J rj248...@hotmail.com: Why does the following, trivial  code snippet below hang GHCi when I type Scalene Failure, and what's the fix? An instance of Ord must declare compare or (=). You only defined (), so () is using the default definition. Here are the defaults: compare x y

Re: [Haskell-cafe] FW: Why does this Ord-class instance crash?

2010-05-21 Thread Miguel Mitrofanov
From Prelude.hs: class (Eq a) = Ord a where compare :: a - a - Ordering (), (=), (), (=) :: a - a - Bool max, min :: a - a - a compare x y = if x == y then EQ -- NB: must be '=' not '' to validate the -- above claim

Re: [Haskell-cafe] FW: Why does this Ord-class instance crash?

2010-05-21 Thread Daniel Fischer
On Friday 21 May 2010 19:06:51, R J wrote: Why does the following, trivial code snippet below hang GHCi when I typeScalene Failure, and what's the fix? For an Ord instance, you need to define at least one of compare and (=) or the other functions from the class won't work. All methods have

Re: [Haskell-cafe] ambiguous type variable problem when using forall, multiparameter type classes, and constraints on polymorphic values (and syb-with-class)

2010-05-21 Thread C. McCann
On Fri, May 21, 2010 at 12:30 PM, Jeremy Shaw jer...@n-heptane.com wrote: Adding all the scoped type variable stuff does not seem to help. Alas, I can not figure out if this is a limitation of the type-checker, or something that is fundamentally impossible. Nor can I figure out how to work

[Haskell-cafe] Exception: : changeWorkingDirectory: does not exist (No such file or directory)

2010-05-21 Thread Anatoly Yakovenko
anyone else seeing this behavior? anato...@anatolyy-linux ~ $ ghci GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package ffi-1.0 ...

Re: [Haskell-cafe] Exception: : changeWorkingDirectory: does not exist (No such file or directory)

2010-05-21 Thread Daniel Fischer
On Friday 21 May 2010 20:50:39, Anatoly Yakovenko wrote: anyone else seeing this behavior? anato...@anatolyy-linux ~ $ ghci GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading

[Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Daniel van den Eijkel
Dear Haskellers, I just want to share an observation. I had to convert a Double to a Float value in an inner loop of an application, and I used somethin like this: xf = (fromRational $ toRational xd) :: Float The program works on windows but it did not on OSX - it was too slow. Now, after

Re: [Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Henning Thielemann
On Fri, 21 May 2010, Daniel van den Eijkel wrote: Dear Haskellers, I just want to share an observation. I had to convert a Double to a Float value in an inner loop of an application, and I used somethin like this: xf = (fromRational $ toRational xd) :: Float I think realToFrac is the

Re: [Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Daniel van den Eijkel
I see. And I changed the code, it works well. Thanks for that! Daniel Henning Thielemann schrieb: On Fri, 21 May 2010, Daniel van den Eijkel wrote: Dear Haskellers, I just want to share an observation. I had to convert a Double to a Float value in an inner loop of an application, and I

Re: [Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Daniel Fischer
On Friday 21 May 2010 22:06:43, Henning Thielemann wrote: On Fri, 21 May 2010, Daniel van den Eijkel wrote: Dear Haskellers, I just want to share an observation. I had to convert a Double to a Float value in an inner loop of an application, and I used somethin like this: xf =

Re: [Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Don Stewart
dvde: Dear Haskellers, I just want to share an observation. I had to convert a Double to a Float value in an inner loop of an application, and I used somethin like this: xf = (fromRational $ toRational xd) :: Float The program works on windows but it did not on OSX - it was too slow.

Re: [Haskell-cafe] double2Float is faster than (fromRational . toRational)

2010-05-21 Thread Pierre-Etienne Meunier
By the way, speaking of floating-point precision, is there a real reason why haskell forces us to write : foreign import ccall unsafe math.h frexp c_frexp::CDouble-(Ptr CInt)-IO () foreign import ccall unsafe math.h ldexp c_ldexp::CDouble-CInt-IO CDouble ulp::Double-Double ulp x=unsafePerformIO

[Haskell-cafe] Proof question -- (==) over Bool

2010-05-21 Thread R J
I'm trying to prove that (==) is reflexive, symmetric, and transitive over the Bools, given this definition: (==) :: Bool - Bool - Boolx == y = (x y) || (not x not y) My question is: are the proofs below for reflexivity and symmetricity rigorous,

Re: [Haskell-cafe] making the GHC Api not write to stderr

2010-05-21 Thread Daniel Peebles
Have you tried freopen on stderr? On Fri, May 21, 2010 at 8:43 AM, Phyx loneti...@gmail.com wrote: Hi, I tried that, setting it to (\_ _ _ _ - return ()) and it still did the same, also tried setting it to undefined to see whether the code that's printing the error is using it, and it didn't

[Haskell-cafe] Enum instantiation

2010-05-21 Thread R J
I'd like to make Day an instance of class Enum, but the definition of toEnum below seems to be completely wrong, because integers seem not permit pattern matching. How is toEnum defined? Thanks. data Day = Sunday | Monday

Re: [Haskell-cafe] Enum instantiation

2010-05-21 Thread Antoine Latter
2010/5/21 R J rj248...@hotmail.com: I'd like to make Day an instance of class Enum, but the definition of toEnum below seems to be completely wrong, because integers seem not permit pattern matching.  How is toEnum defined?  Thanks. Hi, What error are you getting when you try your class

Re: [Haskell-cafe] Enum instantiation

2010-05-21 Thread Gregory Collins
R J rj248...@hotmail.com writes: I'd like to make Day an instance of class Enum, but the definition of toEnum below seems to be completely wrong, because integers seem not permit pattern matching. How is toEnum defined? Thanks. You could try using guards: toEnum x | x == 0= Sunday

Re: [Haskell-cafe] Proof question -- (==) over Bool

2010-05-21 Thread Luke Palmer
2010/5/21 R J rj248...@hotmail.com: I'm trying to prove that (==) is reflexive, symmetric, and transitive over the Bools, given this definition: (==)                       :: Bool - Bool - Bool x == y                     =  (x y) || (not x not y) My question is:  are the proofs below for

Re: [Haskell-cafe] Enum instantiation

2010-05-21 Thread Antoine Latter
On Fri, May 21, 2010 at 8:59 PM, R J rj248...@hotmail.com wrote: If I type toEnum 5, the error I get is: interactive:1:0:     Ambiguous type variable `a' in the constraint:       `Enum a' arising from a use of `toEnum' at interactive:1:0-7     Probable fix: add a type signature that fixes

[Haskell-cafe] [ANNOUNCE] First Public Release of the Snap Framework

2010-05-21 Thread Gregory Collins
Hello all, To coincide with Hac Phi 2010 (http://www.haskell.org/haskellwiki/Hac_%CF%86), the Snap team is happy to announce the first public release of the Snap Framework, a simple and fast Haskell web programming server and library for unix systems. For installation instructions, documentation,