Re: Mutable arrays in Haskell 98

2002-03-27 Thread José Romildo Malaquias
On Wed, Mar 27, 2002 at 03:58:46PM +, Malcolm Wallace wrote: > José Romildo Malaquias <[EMAIL PROTECTED]> writes: > > > I would like to use muttable arrays in Haskell 98, with the GHC > > _and_ NHC98 compilers. By muttable arrays I mean arrays with > > in-pla

Mutable arrays in Haskell 98

2002-03-27 Thread José Romildo Malaquias
. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED] Brasil [EMAIL PROTECTED] ___ Haskell mailing list [EMAIL

[Newbie] Programming with MArray

2002-02-08 Thread José Romildo Malaquias
indices? Regards, Romildo -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED] Brasil [EMAIL PROTECTED] module Main where import MArray import ST

Re: Position of arguments in function definition and performance

2002-02-07 Thread José Romildo Malaquias
ghc -O2 compiler option generated code is worst than no optimization Romildo -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED] Brasil [EMAIL

Position of arguments in function definition and performance

2002-02-06 Thread José Romildo Malaquias
position of the argument in which the pattern matching is done in the function definition. Regards. Romildo -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED

ANNOUNCE: hmake-3.00 RPM packages

2002-01-21 Thread José Romildo Malaquias
eports: > Please send bug reports for 'hmake' to the mailing list > [EMAIL PROTECTED] -- Prof. José Romildo Malaquias Departamento de Computação http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto [EMAIL PROTECTED]

Re: suggestion

2001-10-23 Thread José Romildo Malaquias
ot like the extra prefixes. It is easy to organize the messages from different lists in separate mailboxes (at least in my Linux machine) so that there is no need to identify the list one message belongs by its message. Besides that, the subjects would get more difficult to be quicly read looking whe

ANNOUNCE: nhc98-1.02 RPMS for RedHat Linux 7.0

2001-02-16 Thread José Romildo Malaquias
ll missing: Directory, System, Time, Locale, CPUTime, Random.) > > > Regards, > Malcolm > > > -------- > To unsubscribe, send a message containing the word `unsubscribe' to: > [EMAIL PROTECTED]

ANNOUNCE: hmake-2.02 RPM packages

2001-02-08 Thread José Romildo Malaquias
> Haskell mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/haskell Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: no non-typevariable in instance declarations

2000-11-15 Thread José Romildo Malaquias
nctional language with a better system for overloading. As an exercise I may try implementing some extensions to NHC98. Regards, Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil _

Re: no non-typevariable in instance declarations

2000-11-14 Thread José Romildo Malaquias
On Tue, Nov 14, 2000 at 02:18:47PM -0800, Jeffrey R. Lewis wrote: > José Romildo Malaquias wrote: > > > On Tue, Nov 14, 2000 at 05:02:30PM +, Malcolm Wallace wrote: > > > > class C a where > > > > ty :: a -> String > > > > in

Re: no non-typevariable in instance declarations

2000-11-14 Thread José Romildo Malaquias
On Tue, Nov 14, 2000 at 07:41:21PM +, Marcin 'Qrczak' Kowalczyk wrote: > Tue, 14 Nov 2000 16:17:48 -0200, José Romildo Malaquias <[EMAIL PROTECTED]> >pisze: > > > But this is not relevant to my question. Removing the instance > > declaration > >

Re: no non-typevariable in instance declarations

2000-11-14 Thread José Romildo Malaquias
does not provide type-system extensions to Haskell'98. Not exactly. NHC98 provides at least the following extension to Haskell 98: * existentialy quantified type variables (By the way, is there any plans to implement multiparameter type classes and instance overlapping in NHC98?) Tha

no non-typevariable in instance declarations

2000-11-14 Thread José Romildo Malaquias
instance head) Compilation had errors Why GHC and NHC98 are more restrictive than Hugs? This style of instantiation would be very helpful when dealing with type extensions in Haskell (based on classes to provide the interface for common operations on the extendable type). Regards, Romil

Error compiling gtk+hs in Red Hat Linux 7.0

2000-11-04 Thread José Romildo Malaquias
rpms/BUILD/gtk+hs-0.10.1/glib' make: *** [prep] Error 2 I am using c2hs from CVS. The system is Red Hat Linux 7.0. Any clues? Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação U

Re: Passing an environment around

2000-10-27 Thread José Romildo Malaquias
On Fri, Oct 27, 2000 at 09:07:24AM -0700, Jeffrey R. Lewis wrote: > José Romildo Malaquias wrote: > > > On Thu, Oct 19, 2000 at 09:08:16AM -0700, Conal Elliott wrote: > > > Indeed Fran behaviors are like your alternative #1 (function passing), and > > > hence sharin

Overloaded function and implicit parameter passing

2000-10-23 Thread José Romildo Malaquias
rmance may rule it out when the final product is ready. So I will need a good Haskell compiler to compile my system. Any comments? Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil __

Re: Passing an environment around

2000-10-21 Thread José Romildo Malaquias
luck, and please let me know how it turns out. > > - Conal > > -Original Message- > From: Simon Peyton-Jones > Sent: Thursday, October 19, 2000 1:51 AM > To: José Romildo Malaquias; [EMAIL PROTECTED] > Cc: Conal Elliott (E-mail); Meurig Sage (E-m

Re: Extensible data types?

2000-10-20 Thread José Romildo Malaquias
iparameter type classes). I would like hear any comments from the Haskell comunity on this subject. Is there a workaround for the overlapping instances? Regards. Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computa

NHC98 and GHC 4.08.1 differ on monad related functions

2000-10-14 Thread José Romildo Malaquias
default for Monad.MonadPlus at 6:1.(174,[(2,208)]) GHC 4.08.1 and Hugs98 accepts the code without complaining. Any hints? Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil module Test where import

Binary files and NHC98

2000-10-13 Thread José Romildo Malaquias
. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil module Main where import IO (IOMode(ReadMode,WriteMode)) import Binary (openBin,closeBin,getBits,putBits,isEOFBin, BinIOMode(RO,WO),BinLocation(File),Bin

Haskore and nhc98

2000-10-13 Thread José Romildo Malaquias
Hello. I am just curious whether anybody has already tried Haskore (http://www.haskell.org/haskore/) with the NHC98 Haskell compiler. I am trying to do it, while GHC 4.08.1 is non functional in my RH Linux 7.0 box. Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departame

Re: haskell-mode and XEmacs

2000-04-30 Thread José Romildo Malaquias
7;haskell-mode-hook 'turn-on-haskell-indent) ;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent) (add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) - Thanks for pointing me for a solution. Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

haskell-mode and XEmacs

2000-04-29 Thread José Romildo Malaquias
eone please take a look at the mode and try to correct it. Note that this message does not appear in GNU Emacs. Regards, Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

[TEST] Please, ignore.

2000-04-14 Thread José Romildo Malaquias
Is the list down? The latest message I received was on Apr 11. -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Announce: nhc98-1.0pre17 rpms

2000-03-19 Thread José Romildo Malaquias
into. Only when binary rpm package is installed, the files go to the final location for them. Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Re: Dynamic scopes in Haskell

1999-12-03 Thread José Romildo Malaquias
uot;Observable Sharing for Functional Circuit Description", > Koen Claessen, David Sands, ASIAN '99. > Available from: http://www.cs.chalmers.se/~koen/publications.html > > Regards, > Koen. > > -- > Koen Claessen http://www.cs.chalmers.se/~koen > phone:+46-31-772 5424 e-mail:[EMAIL PROTECTED] > - > Chalmers University of Technology, Gothenburg, Sweden > -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Re: Dynamic scopes in Haskell

1999-12-02 Thread José Romildo Malaquias
the > environment will not be available and you would have to make == a dummy > function. This solution seems to fit my problem. I will just investigate it a little more. Thanks. > In fact you would probably be better of by hiding the prelude > and overloading + and friends on your own. Is there any directions on how to hide the prelude and still use the definitions it exports? Romildo. -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Re: Dynamic scopes in Haskell

1999-12-01 Thread José Romildo Malaquias
d according to the users taste, > e.g., to form an expression like > > expr1 +e expr2 > > where e is some environment and the above expression is shorthand for > > (+) e expr1 expr2. > > -- > Christoph Herrmann > E-mail: [EMAIL PROTECTED] >

Re: Dynamic scopes in Haskell

1999-12-01 Thread José Romildo Malaquias
allude > to, we extended substitution, particularly thru `with' bindings, to preserve > dynaming scoping (i.e. to prevent dynamic capture). Thus referential > transparency is retained, you just have to be careful when you substitute - > just as you have to be careful with regular static name capture. > > --Jeff > -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Re: Dynamic scopes in Haskell

1999-12-01 Thread José Romildo Malaquias
On Wed, Dec 01, 1999 at 02:05:04PM +, Jerzy Karczmarczuk wrote: > José Romildo Malaquias: > > > One of the algorithms I have to implement is the > > addition of symbolic expressions. It should have > > two symbolic expressions as arguments and should > > produc

Dynamic scopes in Haskell

1999-12-01 Thread José Romildo Malaquias
askell implementations (ghc, nhc, hbc, ...) would provide this extension in next releases? (This way, even been an extension, my system would be portable) Any comments on these subject will be apreciated. Regards. J. R. Malaquias -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento d

How to use an state reader monad?

1999-11-30 Thread José Romildo Malaquias
then return 'a' else return 'b' do_test = runReader test "choose a" main = putStr (show do_test) --- Thanks. Romildo -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil

Re: CICS, Haskell, and CAS

1999-11-29 Thread José Romildo Malaquias
S and that you have written a document > (monograph) describing the process of implementing one. > > Is CICS still available some where? Would you send me a copy of your > monograph? > > Thanks, > Ben. -- Prof. José Romildo Malaquias <[EMAIL PROTECTED]> Departamento de Computação Universidade Federal de Ouro Preto Brasil