Re: [Haskell-cafe] embedding prolog in haskell.

2005-08-31 Thread Fergus Henderson
On 18-Aug-2005, Keean Schupke [EMAIL PROTECTED] wrote: I was wondering if anyone has any comments on my implementation of unify? For example can the algorithm be simplified from my nieve attempt? Most importantly is it correct? type Subst = [(Vname,Term)] data Term = Func Fname

Re: [Haskell-cafe] Updating the Haskell Standard

2005-07-20 Thread Fergus Henderson
On 20-Jul-2005, David Barton [EMAIL PROTECTED] wrote: I can contribute some experience from commercial standardization efforts. ANSI, IEEE, and ISO standards require re-ballotting every five years, otherwise the standards lapse. Reballotting may or may not be accompanied by changes in the

Re: [Haskell-cafe] ghc 6.4 import problem

2005-05-31 Thread Fergus Henderson
On 31-May-2005, Daniel Fischer [EMAIL PROTECTED] wrote: Am Freitag, 27. Mai 2005 02:06 schrieb Shiqi Cao: I tried to port some code from ghc 6.2 to ghc 6.4, but I got the following error PrelExts.lhs:41:25: Ambiguous occurrence `map' It could refer to either `GHC.Base.map',

Re: [Haskell-cafe] hugs segmentation fault

2004-10-28 Thread Fergus Henderson
On 29-Oct-2004, Ben Rudiak-Gould [EMAIL PROTECTED] wrote: Jon Fairbairn wrote: On 2004-10-29 at 00:03BST Ben Rudiak-Gould wrote: Not much better, though: in my experience this particular exception leaves ghci in a very peculiar state, and it's usually necessary to quit and restart it

Re: [Haskell-cafe] Re: OCaml list sees abysmal Language Shootout results

2004-10-08 Thread Fergus Henderson
On 08-Oct-2004, Andre Pang [EMAIL PROTECTED] wrote: I believe that Marcin wishes to prove the same point that I want to: namely, Clean encourages use of strictness by making it easier to use (via language annotations). At the risk of sounding ignorant and arrogant, I think the Haskell

Re: [Haskell-cafe] Optmiization of recursion

2004-10-04 Thread Fergus Henderson
On 28-Sep-2004, John Goerzen [EMAIL PROTECTED] wrote: As I'm investigating Haskell, it's occured to me that most of the Haskell tutorials out there have omitted something that was quite prominent in the OCaml material I had read: making functions properly tail-recursive. The OCaml compiler

Re: [Haskell-cafe] complete documentation like the one from Java or C++

2004-09-10 Thread Fergus Henderson
On 10-Sep-2004, Cale Gibbard [EMAIL PROTECTED] wrote: Just in case it's not what you're referring to, http://www.haskell.org/ghc/docs/latest/html/libraries/index.html together with the Haskell report http://www.haskell.org/onlinereport/ generally does the trick for me. Occasionally,

Re: [Haskell-cafe] cost of List.// for Ord types?

2004-09-07 Thread Fergus Henderson
On 03-Sep-2004, David Roundy [EMAIL PROTECTED] wrote: I was wondering if the list diff operator \\ takes advantage of situations where the list data type is in class Ord, besides being in Eq. No, it cannot, at least not in the general case. The interface for \\ says that it only depends on the

Re: [Haskell-cafe] exceptions vs. Either

2004-08-03 Thread Fergus Henderson
On 03-Aug-2004, Evan LaForge [EMAIL PROTECTED] wrote: In response to the mysterious head exceptions thread, isn't there a way to compile with profiling and then get the rts to give a traceback on exception? There is, but it doesn't really work properly, due to - lazy evaluation

Re: [Haskell-cafe] Ord (IORef a)?

2004-06-22 Thread Fergus Henderson
On 22-Jun-2004, Simon Peyton-Jones [EMAIL PROTECTED] wrote: My own view is that this is fine -- IORefs shouldn't be in your inner loop, so an extra word in each is no big deal. I find that attitude rather extraordinary and I do not agree. For some applications, IORefs may well be a major

Re: Preventing/handling space leaks

2003-12-09 Thread Fergus Henderson
. Note that this class has already been the subject of extensive analysis of its exception safety, and indeed the only reason that auto_ptr was introduced in the first place was in an attempt to help guarantee exception safety! -- Fergus Henderson [EMAIL PROTECTED] | I have always known

Re: type of (/) ?

2003-12-09 Thread Fergus Henderson
The infamous monomorphism restriction (Haskell Report section 4.5.5) strikes again. -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit The University of Melbourne | of excellence is a lethal habit WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T. S

Re: Preventing/handling space leaks

2003-12-07 Thread Fergus Henderson
. This is a _much_ easier kind of analysis. IMHO it is probably also much easier than trying to analyze space usage of Haskell programs. badly written cache-like data structures, etc. Those can be a problem in any language. -- Fergus Henderson [EMAIL PROTECTED] | I have always known

Re: Global variables?

2003-02-05 Thread Fergus Henderson
, none if there is no recursion between modules). In other words, GHC doesn't support separate compilation of Haskell 98 -- it supports separate compilation of a closely related but distinct language which we can call Haskell 98 + GHC hi-boot files. -- Fergus Henderson [EMAIL PROTECTED] | I have

Re: Global variables?

2003-02-02 Thread Fergus Henderson
of them inlined? A compiler could do that to improve performance on some architectures, e.g. by allowing the function to be called via a short jump instruction rather than a long jump instruction. -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit The University

Re: Error Handling

2002-12-13 Thread Fergus Henderson
-of-memory case, anyway -- so most of the time you'd still need Monads.) -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit The University of Melbourne | of excellence is a lethal habit WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T. S. Garp

Re: if - is a type constructor

2002-02-24 Thread Fergus Henderson
; MR_Word MR_closure_hidden_args[MR_VARIABLE_SIZED]; } MR_Closure; -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit The University of Melbourne | of excellence is a lethal habit WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T

Re: modules, classes, instances

2001-12-15 Thread Fergus Henderson
/mailing-lists/mercury-developers/m ercury-developers.0111/0082.html [3] http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-developers/m ercury-developers.0111/0097.html. -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit The University of Melbourne

Re: Why no exceptions in Haskell?

2001-11-22 Thread Fergus Henderson
Peyton Jones, Alastair Reid, Tony Hoare, Simon Marlow, Fergus Henderson. Proc Programming Languages Design and Implementation (PLDI'99), Atlanta. ... and the main reason why Haskell 98 didn't incorporate this is because, well, 98 was before 99 ;-). In other words, it wasn't well understood

Re: a newbie's question

2001-10-14 Thread Fergus Henderson
of the overloaded name Foo, the Haskell compiler will infer from the context which is intended. -- Fergus Henderson [EMAIL PROTECTED] | ... it seems to me that 15 years of The University of Melbourne | email is plenty for one lifetime. WWW: http://www.cs.mu.oz.au/~fjh | -- Prof. Donald E. Knuth

Re: = vs -

2001-10-12 Thread Fergus Henderson
a significant disincentive to using that syntax. -- Fergus Henderson [EMAIL PROTECTED] | ... it seems to me that 15 years of The University of Melbourne | email is plenty for one lifetime. WWW: http://www.cs.mu.oz.au/~fjh | -- Prof. Donald E. Knuth

Re: [off-topic] LaTex for [[ ... ]]

2001-06-01 Thread Fergus Henderson
companion, but it's not listed there AFAICT.) -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit | of excellence is a lethal habit WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T. S. Garp

Re: Macros (Was: Interesting: Lisp as a competitive advantage)

2001-05-05 Thread Fergus Henderson
well. -- Fergus Henderson [EMAIL PROTECTED] | I have always known that the pursuit | of excellence is a lethal habit WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T. S. Garp. ___ Haskell-Cafe

Re: What do you think about Mercury?

2001-04-08 Thread Fergus Henderson
(n:l) = d /= n - b d /= b - n nodiag b (d+1) l -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit | of excellence is a lethal habit" WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of

Re: Primitive types and Prelude shenanigans

2001-02-21 Thread Fergus Henderson
On 21-Feb-2001, Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] wrote: Wed, 21 Feb 2001 12:55:37 +1100, Fergus Henderson [EMAIL PROTECTED] pisze: The documentation in the Haskell report does not say what `fromInteger' should do for `Int', but the Hugs behaviour definitely seems preferable

Re: Primitive types and Prelude shenanigans

2001-02-15 Thread Fergus Henderson
. (10) the vast majority of the prelude changes desirable to support will have to do with the numeric hierarchy s/numeric hierarchy/class hierarchy/ -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pu

Re: A sample revised prelude for numeric classes

2001-02-11 Thread Fergus Henderson
is not changed, compilers can at least warn about that case. class (Num a, Additive b) = Powerful a b where (^) :: a - b - a I don't like the name. Plain `Pow' would be better, IMHO. Apart from those two points, I quite like this proposal, at least at first glance. -- Fergus Henderson

Re: Show, Eq not necessary for Num [Was: Revamping the numeric classes]

2001-02-10 Thread Fergus Henderson
On 11-Feb-2001, Brian Boutel [EMAIL PROTECTED] wrote: Fergus Henderson wrote: On 09-Feb-2001, Brian Boutel [EMAIL PROTECTED] wrote: Patrik Jansson wrote: The fact that equality can be trivially defined as bottom does not imply that it should be a superclass of Num, it only

Re: Instances of multiple classes at once

2001-02-09 Thread Fergus Henderson
On 08-Feb-2001, Dylan Thurston [EMAIL PROTECTED] wrote: On Thu, Feb 08, 2001 at 09:41:56PM +1100, Fergus Henderson wrote: One point that needs to be resolved is the interaction with default methods. Consider class foo a where f :: ... f

Re: Revamping the numeric classes

2001-02-09 Thread Fergus Henderson
ents anyway, because it is not immediately visible in the definitions. Yes. Much better to make it part of the language, so that the compiler can check it. (now any method definition can be omitted even if it has no default!), Yeah, that one really sucks. -- Fergus Henderson [EMAIL PROTECTED] |

Re: Show, Eq not necessary for Num [Was: Revamping the numeric classes]

2001-02-09 Thread Fergus Henderson
. -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit | of excellence is a lethal habit" WWW: http://www.cs.mu.oz.au/~fjh | -- the last words of T. S. Garp. ___ Haskell-Cafe mailing l

Re: O'Haskell OOP Polymorphic Functions

2001-01-30 Thread Fergus Henderson
). That lets you downcast to specific ground types, but it doesn't let you downcast to a type class constrained type variable. -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit | of excellence is a lethal habit"

Re: O'Haskell OOP Polymorphic Functions

2001-01-30 Thread Fergus Henderson
On 30-Jan-2001, Ashley Yakeley [EMAIL PROTECTED] wrote: At 2001-01-30 02:37, Fergus Henderson wrote: class BaseClass s where downcast_to_derived :: s - Maybe Derived Exactly what I was trying to avoid, since now every base class needs to know about every derived class. This isn't

Re: Type Pattern-Matching for Existential Types

2001-01-30 Thread Fergus Henderson
Num a) = Maybe Char *** Expression : get (Any 42) Main get (Any (42 :: Int)) Nothing -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit | of excellence is a lethal habit" WWW: http://www.cs.mu.oz.au/~fjh |

Re: Problems compiling HDirect 0.17

2001-01-03 Thread Fergus Henderson
You need to make sure that the files are mounted as binary rather than as text, or vice versa. Try the cygwin `mount' command. -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit | of excellence is a lethal h

Re: Will Haskell be commercialized in the future?

2000-11-27 Thread Fergus Henderson
ke Sather and Eiffel which have been around for many years, not to mention Pizza and Generic Java. This has lead C# to copy some of Java's other flaws, such as the awful array type. C# has plenty of flaws. Please criticize it for its real flaws, not the imagined ones. -- Fergus Henderson [EMAIL PR

Re: Intel is in the .NET?

2000-09-25 Thread Fergus Henderson
found it? I had a brief look when I saw Ketil's original article and came to the same conclusion that you did. -- Fergus Henderson [EMAIL PROTECTED] | "I have always known that the pursuit WWW: http://www.cs.mu.oz.au/~fjh | of excellence is a lethal habit" PGP: finger [EMAIL