[Haskell] ANNOUNCE: HWSProxyGen version 0.1

2005-03-27 Thread Andre W B Furtado
://www.cin.ufpe.br/~haskell/hwsproxygen/ HWSProxyGen was conceived and implemented in the Informatics Center of the Federal University of Pernambuco, Brazil, by: - Andre W. B. Furtado - Andre L. M. Santos - Carlos A. G. Ferraz - Gustavo A. Santos - Adeline S. Silva - Carla M. P. Nascimento Cheers, -- AFurtado

[Haskell] ANNOUNCE: Haskell support for Visual Studio .NET 2003 and Assignment Manager tools

2004-11-24 Thread Andre W B Furtado
We are pleased to announce an alpha/preview version of VHS (Visual Haskell), which integrates the Haskell functional language with the Microsoft Visual Studio .NET 2003 IDE, and VHS-AM, which allows the use of VHS with the Microsoft Assignment Manager tools. This preview version supports: -

Re: [Haskell] Building from source

2004-10-12 Thread Andre W B Furtado
Christian Maeder wrote: [compilation] failed in the directory hood, because the target boot is unknown there. Could/Should this be fixed? BTW, nofib is also breaking the fptools suite compilation. Cheers, -- AFurtado ___ Haskell mailing list [EMAIL

[Haskell] HTTP and Borwser modules maintainer

2004-09-06 Thread Andre W B Furtado
Who is actually responsible for the Haskell HTTP and Browser modules (http://homepages.paradise.net.nz/warrickg/haskell/http/)? The e-mail indicated in the site (oinutter [at] hotmail.com) is returning... Thanks, -- Andre ___ Haskell mailing list

Re: [Vhs-ufpe] problems building GHC from source in Windows

2004-02-26 Thread Andre W B Furtado
, -- Andre - Original Message - From: Simon Peyton-Jones [EMAIL PROTECTED] To: Andre Santos [EMAIL PROTECTED]; Andre W B Furtado [EMAIL PROTECTED] Cc: GHC bugs [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 23, 2004 8:23 AM Subject: RE: [Vhs-ufpe] problems building GHC from

locating package.conf II

2004-02-26 Thread Andre W B Furtado
Hi, In July 2003, a discussion in this list named locating package.conf (http://www.haskell.org/pipermail/glasgow-haskell-users/2003-July/005511.htm l) concluded that make install on Windows is not supported. Has this evolved since then? Thanks, -- Andre

inconsistent GHC building documentaion

2004-02-24 Thread Andre W B Furtado
Hi, In the Building the Glasgow Functional Programming Tools Suite, chapter 12, Notes for building under Windows (http://www.haskell.org/ghc/docs/6.2/html/building/winbuild.html), it is said: Install an executable Happy, from http://www.haskell.org/happy;. The latest version of happy in its

haskell for educative games

2003-08-04 Thread Andre W B Furtado
Does anyone know if Haskell is/was used to develop educative games? Do you recommend some papers on the subject? Thanks a lot, -- Andre Furtado ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Haskell for educative games

2003-08-02 Thread Andre W B Furtado
Does anyone know if Haskell is/was used to develop educative games? Do you recommend some papers on the subject? Thanks a lot, -- Andre Furtado ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

literal default value for an unknown type

2003-07-08 Thread Andre W B Furtado
Is it possible replace the question mark in the following code in order to make defaultMyType return a don't care value for b? data MyType t = MyType { a :: Int, b :: t} defaultMyType :: MyType defaultMyType = MyType {a = 0, b = ?} Cheers, -- Andre

deprecated non-standard syntax

2003-04-05 Thread Andre W B Furtado
The following line: foreign import shutdownHaskellAndExit :: Int - IO () causes a compiler warning: foreign declaration uses deprecated non-standard syntax Which is the correct way to use a foreign declaration? Thanks, -- Andre ___

Re: Labelled types question

2002-09-11 Thread Andre W B Furtado
I'm guessing you're using the current release of Hugs. It doesn't implement the Haskell98 module system really, [...] This answers my question, indeed. Thank you all. (compiling the code with GHC was ok!) -- Andre ___ Haskell mailing list [EMAIL

Re: Haddock installing problems

2002-05-15 Thread Andre W B Furtado
Andre W B Furtado wrote: [Haddock cannot find perl] This works for me, but I'm not a Cygwin/Windows expert so I'm not sure what the canonical answer should be. On my system I have the Cygwin perl.exe in /cygwin/bin, and this is also /bin under cygwin, because by default Cygwin seems

ObjectIO install

2002-05-09 Thread Andre W B Furtado
The INSTALL file that comes with the objectIO files says that one must use the following commands to register the package: $ ghc-pkg -r objectio $ ghc-pkg -a objectio -f pckg.cfg The second command is not recognized as a valid one, and the ghc-pkg help appears showing the correct syntax. I

ANNOUNCE: FunGEn-0.1 released!

2002-04-18 Thread Andre W B Furtado
of 24-bit bitmap files; * Some debugging and game performance evaluation facilities; * Sound support (actually for windows platforms only... :-[ ) You can download and find more info about FunGEn in: http://www.cin.ufpe.br/~haskell/fungen Your feedback is highly welcome! Nice coding... -- Andre W

register error

2002-04-11 Thread Andre W B Furtado
While trying to install GHC-5.02.3 (win32 release) in my computer (Windows 98), I got the following error message: Error 1406: Could not write value _MainFeature to key HKEY_LOCAL_MACHINES\Software\Microsoft\Windows\CurrentVersion\Installer\Feat ures\8C655693FA0801D4E87FA1CA60C4AAE1 Verify that

functional programming contest

2002-04-04 Thread Andre W B Furtado
I was visiting http://www.ai.mit.edu/extra/icfp-contest/ and noticed that there was a functional programming contest in ICFP 98. I'd like to know if there are any periodic functional progamming contests around the world, such as the ACM contest for the C language. -- Andre

handling errors in Happy

2002-04-02 Thread Andre W B Furtado
Is it possible to get the result of function happyError, in the main module of my program (which imports the module generated by Happy)? Thanks a lot, -- Andre ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: newbie:: getting random Ints

2002-03-29 Thread Andre W B Furtado
the function randomRIO :: (a,a) - IO a defined in module Random gives you a random number between the two input parameters (including themselves). -- Andre - Original Message - From: Peter Rooney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 28, 2002 3:05 AM Subject:

uniqueness typing

2002-03-12 Thread Andre W B Furtado
I found the following text when visiting the Clean (a functional language) site: Clean is the only functional language in the world which has a special type system, uniqueness typing. It enables to update function arguments destructively retaining the purity of the language. Then I have some

pattern-matching with labelled types

2002-03-07 Thread Andre W B Furtado
If I have: data MyType = MT { x :: Int, y :: Char } How do I update the Int value of MyType leaving the Char value unaffected? I tryied something like: MT {x = newValue} but GHC gave me a warning about the Char value and it indeed caused strange effects. Of course, it is

labelled types efficiency

2002-03-07 Thread Andre W B Furtado
Another question about labelled types, this time concerning about efficiency: is there any efficiency differences between functions f and g below? data RType = R Int Char data Stype = S {x :: Int, y :: Char} f :: RType - Int f (R x _) = x g :: SType - Int g s = x s Thanks again, --

strip effect

2002-02-22 Thread Andre W B Furtado
What is the effect of using the strip command with the files generated by ghc (besides reducing the file size)? -- Andre ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

declaring a generic type in type synonyms

2002-02-21 Thread Andre W B Furtado
Is is possible to declare a generic type without using data or newtype? For example, I woud like that pair is a type synonym for (t,t) where t is a generic type, but just saying: type pair = (t,t) won't work: i get a parse error. Thanks, -- Andre

Re: forcing IO operations

2002-02-20 Thread Andre W B Furtado
liftIOtoMyMonad_ :: IO () - MyMonad () liftIOtoMyMonad_ m = liftIOtoMyMonad' (const m) () I'm having problems compiling this one: The last statement in a 'do' construct must be an expression ___ Haskell mailing list [EMAIL PROTECTED]

Re: forcing IO operations

2002-02-20 Thread Andre W B Furtado
[answering myself...] liftIOtoMyMonad_ :: IO () - MyMonad () liftIOtoMyMonad_ m = liftIOtoMyMonad' (const m) () I'm having problems compiling this one: The last statement in a 'do' construct must be an expression The problem is not related with liftIOtoMyMonad_ , but with

Re: Composition Monad

2002-02-18 Thread Andre W B Furtado
Hal Daume III wrote: I'm not sure exactly what you mean. Say I have something like that, then what's the difference between saying: f = do { action1; action2; action3 } and simply f = do action3 ? If the result of each of the actions is ignored for the following

Re: Composition Monad

2002-02-18 Thread Andre W B Furtado
Hal Daume III wrote: I'm not sure exactly what you mean. Say I have something like that, then what's the difference between saying: f = do { action1; action2; action3 } and simply f = do action3 ? If the result of each of the actions is ignored for the following

Composition Monad

2002-02-17 Thread Andre W B Furtado
Roughly speaking, I'm in need of a monad (say MyIO) that interprets the following code f :: MyIO () f = do action1 action2 action3 ... return () as applying action1 to g, then action2 to the SAME g (not the result of action1) and so on... Of course,

unIO vs. unsafePerformIO

2002-01-31 Thread Andre W B Furtado
What's the difference between unIO and unsafePerformIO? And why is the former safe? (I would like to apply the same questions to unsafeIOToST and ioToST) Thanks, -- Andre ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

if-then-else inside a do

2002-01-29 Thread Andre W B Furtado
In the following code, will other things be executed or the return () will end function f? I guess the answer is yes (other things WILL be executed anyway), but I'd like to understand why won't the return () be the [state change/result produced] created by f. f :: IO () f = do -- lots of

st monad

2002-01-29 Thread Andre W B Furtado
How do I find the implementation of the module ST? In the GHC documentation, I can only find the signatures of the functions.

Re: monad thinking process

2002-01-25 Thread Andre W B Furtado
Just check this monad tutorial (attached). It's really great for beginners. -- Andre ---BeginMessage--- -- Forwarded message -- Date: Tue, 05 Jun 2001 11:26:12 -0300 From: Andre Santos [EMAIL PROTECTED] Newsgroups: depto.cursos.grad.if098 Subject: Monads for the Working

Re: Monad composition

2002-01-24 Thread Andre W B Furtado
Well, it's also possible to interchange data between these two monads by: unsafeIOToST :: IO a - ST s a stToIO :: ST s a - IO a Can anyone tell the possible problems related to unsafeIOToST? ^^ -- Andre - Original Message - From: Tom Bevan [EMAIL PROTECTED] To: Andre W B Furtado

GHC-5.02(.1) InstallShield for Windows

2001-11-17 Thread Andre W B Furtado
I just would like to report that, if you have GHC-5.02 installedand want to install GHC-5.02.1 (under Windows), you'll need to uninstall GHC-5.02 first, otherwise the InstallShield for GHC-5.02.1 won't work as expected. Is this a bug? -- Andre

Re: profiling problem

2001-11-17 Thread Andre W B Furtado
Turn down the context switching time and/or the delta between profiling samples, e.g., to get the max amount of data, do prog +RTS -h -C0 -i0 When I did this, the size of the .ps file increased, but I'm still getting an empty graph... Can anyone compile the following simple program with

profiling behavior

2001-11-13 Thread Andre W B Furtado
If module A imports B, and if B was compiled without the profiling options (but A was), is the final program expected to abort (illegal operation or something like that)? If it is, why? -- Andre ___ Glasgow-haskell-users mailing list [EMAIL

Re: profiling behavior

2001-11-13 Thread Andre W B Furtado
If module A imports B, and if B was compiled without the profiling options (but A was), is the final program expected to abort (illegal operation or something like that)? If it is, why? You must compile (and link) the whole program with -prof, because that option changes certain

Strange fatal error

2001-11-13 Thread Andre W B Furtado
Can anyone explain me the following error? fatal error: scavenge: unimplemented/strange closure type 0 @ 08C03FD0 (this happened with a program that reads and do some manipulations in a 3MB bitmap file, using HOpenGL-1.01 and GHC-5.02under Windows 98 + Cygwin) Thanks, -- Andre

Broken link

2001-11-11 Thread Andre W B Furtado
The link to The Graph Visualisation Tool daVinci, in GHC profiling documentation (http://www.haskell.org/ghc/docs/latest/set/prof-xml-tool.html), seems to be broken. I think the link should point to http://www.informatik.uni-bremen.de/daVinci/ -- Andre

Re: problem definind a function

2001-10-30 Thread Andre W B Furtado
The following code works... = \x y - (x+y - length [1..(gcd x y)] = round (((fromIntegral x)+1)/2) ) -- Andre hello, Does anybody know why it is not possible to define the folowing function in ghc? = \x y - (x+y - length [1..(gcd x y)] = round ((x+1)/2)) ) The message

Profiling in GHC-4.08.1

2001-10-24 Thread Andre W B Furtado
I was trying to compile a .hs file with the profiling option enabled (-prof -auto-all) but I got an error message: /usr/bin/ld: cannot find -lHSstd_p_imp collect2: ld returned 1 exit status Does anyone know what is this -lHSstd_p_imp? I am using GHC-4.08.1 (with Cygwin) under a Windows 98

Uninstall warning...

2001-10-23 Thread Andre W B Furtado
I had GHC-4.08.1 installed in my computer (which runs under a Windows98 platform), and then I decided to install GHC-5.00.2 (this was its latest version at that time). It is said that GHC-5.00.2 can co-exist with other versions of GHC under a Windows platform, because it does not use cygwin

Unistall warning... again!

2001-10-23 Thread Andre W B Furtado
Now things really got worse... when I try to use GHC-4.08.1, I got the following message: ghc: permission denied ghc: not found make[1]: *** [depend] Error 127 How can I use the old GHC-4.08.1 back again? I have some APIs that still need it... Thanks, -- Andre

suggestion

2001-10-22 Thread Andre W B Furtado
What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? For example: [hugs-users] Installation problems or [haskell] newbie question. I think this would be a nice way to make massages more organized and help

Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
I'm trying to create a fast program in Haskell that reads the content of a file, do some stuff with its characters (one by one) an then save the final result (the modified characters) in another file. The fastest program I've developed so far is: main :: IO () main = do bmFile - openFileEx

Re: Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
- Original Message - From: Albert Lai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 9:42 PM Subject: Re: Working character by character in Haskell Andre W B Furtado [EMAIL PROTECTED] writes: [...] For example, suppose function doSomeStuffWith returns its own

Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
I'm trying to create a fast program in Haskell that reads the content of a file, do some stuff with its characters (one by one) an then save the final result (the modified characters) in another file. The fastest program I've developed so far is: main :: IO () main = do bmFile - openFileEx

Re: Working character by character in Haskell

2001-10-18 Thread Andre W B Furtado
- Original Message - From: Albert Lai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 9:42 PM Subject: Re: Working character by character in Haskell Andre W B Furtado [EMAIL PROTECTED] writes: [...] For example, suppose function doSomeStuffWith returns its own

Examples of some nice Haskell programs

2001-10-17 Thread Andre W B Furtado
There are some nice examples (binaries) of [Haskell + HOpenGL] programs at: www.cin.ufpe.br/~haskell/hopengl/examples.html I think they may be of interest to the community because they confirm that it's really possible to use Haskell in the development of complex, fast and robust graphic

Re: Harmful spammers

2001-10-15 Thread Andre W B Furtado
to allowing subscriber-only posting, and I got a small number of responses, which were split roughly 50/50 so no action was taken. I think moving the list to allowing subscriber-only posting may cause some trouble to the subscribers too... (now there isn't a 50/50 split anymore ) ) Andre W B

hGetContents bug?

2001-10-10 Thread Andre W B Furtado
If I open a file using openFile from the IO module (x - openFile foo.txt ReadMode) and convert it to a String via hGetContents (y - hGetContents x) and finally try to print the file on the screen (putStrLn y) I'll get a strange result if the file contains the character 1A-hexadecimal (or

HOpenGL mailing list (?)

2001-09-26 Thread Andre W B Furtado
Is there any interest out there in creating a HOpenGL mailing list? Thanks, Andre W B Furtado

mouse HOpenGL

2001-09-19 Thread Andre W B Furtado
WAS moved. Unfortunately, the "motionFunc" and "passiveMotionFunc" are related to the new position of the mouse cursor, rather than the mouse movement... (in the Allegro library, this is solved by a thing called"mouse mickeys"). Thanks a lot, Andre W B Furtado

Profiles in GHC

2001-07-20 Thread Andre W B Furtado
Can anyone give me a brief explanation (or show me where in the web I can find some info) about using the profiling library in GHC? Is it avaible for Windows 98/NT? Thanks in advance, Andre W B Furtado

hbc

2001-06-19 Thread Andre W B Furtado
Why hbc did not succeeded? It is still possible to make it reach Haskell 98? Or why doesn't ghc uses some of its techniques to compile/run programs faster? Andre W B Furtado ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman

Announcement: new HOpenGL Tutorial

2001-05-29 Thread Andre W B Furtado
at: www.cin.ufpe.br/~haskell/hopengl/ Thank you, Andre W B Furtado

Re: running for long enough...

2001-04-25 Thread Andre W B Furtado
. - Original Message - From: Simon Marlow [EMAIL PROTECTED] To: Andre W B Furtado [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 7:57 AM Subject: RE: running for long enough... About the program below, someone (I think Simon

Concurrent Haskell (Ops...)

2001-04-16 Thread Andre W B Furtado
[I mean "CONCURRENT Haskell" rather than "Haskell DIRECT" in the last email. Sorry.] --- I am trying to create a program that prints interleaved sequences of'a'sand 'z's, using Haskell Direct (under GHC). I've tryied the following: import Concurrent main :: IO()main = let loop ch =

Concurrent Haskell

2001-04-16 Thread Andre W B Furtado
ram prints only 'z's, and no 'a's.I was surprised by this, since GHC uses preemptive multitasking, not cooperative multitasking. Does anyone knows what's going wrong? Thanks, Andre W b Furtado

EOF marker

2001-02-21 Thread Andre W B Furtado
[Sorry if you are receiving this message for the second time] Hello there. I used the code below to read and print the bitmap file attached (bitmap.bmp), which cointains the character ASCII 26 (or 1A-hexa), that is used as an end of file marker in MS-DOS: import IOimport IOExts main :: IO

Problem reading files...

2001-02-12 Thread Andre W B Furtado
Hello there. I was trying to read a bitmap file using hGetChar but I had a problem: if the file contains the byte 26-decimal (or 1A-hexa) the program aborts. Here you have the output: Fail: end of file Action: hGetChar Since hGetChar is implemented with getc, I created a similar program

Problem reading files...

2001-02-12 Thread Andre W B Furtado
Hello there. I was trying to read a bitmap file using hGetChar but I had a problem: if the file contains the byte 26-decimal (or 1A-hexa) the program aborts. Here you have the output: Fail: end of file Action: hGetChar Since hGetChar is implemented with getc, I created a similar program

Please help :)

2000-06-06 Thread Andre W B Furtado
Hi out there. I would really appreciate if anyone can tell me if there exists any haskell/hugs library that can PLAY midi files during the execution of a program. Unfortunately, the FRAN library is limitated to wav files... Pleasereply to [EMAIL PROTECTED]. Thanks a lot. Andre W B Furtado

Please help :)

2000-06-06 Thread Andre W B Furtado
Hi out there. I would really appreciate if anyone can tell me if there exists any haskell/hugs library that can PLAY midi files during the execution of a program. Unfortunately, the FRAN library is limitated to wav files... Pleasereply to [EMAIL PROTECTED]. Thanks a lot. Andre W B Furtado