Re[4]: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Bulat Ziganshin
Hello Piotr, Monday, July 3, 2006, 10:27:22 AM, you wrote: - syntax highlighting, including highlighting of bracket's pair - fast access to help about identifier - auto-indenting with user-tuned style Personally I consider these 3 essential, so I'd vote for them to be implemented in first

Re: Re[4]: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Piotr Kalinowski
On 03/07/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: i answer in cafe so that Thiago can see you preferences :) Ups. That's that 'Replay to all' phenomena again ;) smart indentation is not easy for Haskell, i think. I don't even sure that myself has some strict indenting rules. moreover,

Re: Re[2]: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Thiago Arrais
Bulat, Thanks for the suggestions (by the way, very good article on IO). Some comments below. On 7/3/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: - background compilation with errors highlighting There is already some support for background compilation using GHC. Error highlighting doesn't

[Haskell-cafe] Re[2]: Debugging with GHCi.

2006-07-03 Thread Bulat Ziganshin
Hello Pepe, Monday, July 3, 2006, 2:15:59 PM, you wrote: As you may know, this project was accepted for Google SoC and work started a few weeks ago. There are now some observable results that can be tested, and I have set up a wiki page at: http://haskell.org/haskellwiki/Ghci/Debugger As we

Re: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Chris Kuklewicz
Thiago Arrais wrote: Bulat, Thanks for the suggestions (by the way, very good article on IO). Some comments below. On 7/3/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: - auto-indenting with user-tuned style This one seems very challenging and interesting, not a must-have for me but a very

[Haskell-cafe] Input/Output file

2006-07-03 Thread Sara Kenedy
Hi all, I have a module Test.hs: module Test where import IO readMsgFile = do putStr Input file: ifile - getLine putStr Output file: ofile - getLine s - readFile ifile writeFile ofile (test s) --test function test :: String - String test s |s

Re: [Haskell-cafe] Input/Output file

2006-07-03 Thread Stefan Holdermans
Sara, --test function test :: String - String test s |s == true = True |s == false = False |otherwise = [] Then, I run *Test readMsgFile Input file: test1.txt Output file: result1.txt The content of test1.txt is string true. So I expect the result in result1.txt is

Re: [Haskell-cafe] Input/Output file

2006-07-03 Thread Neil Mitchell
Hi Sara, Just a guess, but your input file is probably true\n - with a trailing newline. In fact, many text editors won't let you create a file without that training newline. Thanks Neil On 7/3/06, Sara Kenedy [EMAIL PROTECTED] wrote: Hi all, I have a module Test.hs: module Test where

Re[4]: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Bulat Ziganshin
Hello Thiago, Monday, July 3, 2006, 4:18:01 PM, you wrote: - background compilation with errors highlighting There is already some support for background compilation using GHC. Error highlighting doesn't still work as I'd like to, but is there too. now i'm using editor with just syntax

Re: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Leif Frenzel
Are you use GHC library? Not yet, but it may turn to be a very wise decision to make in the future. EclipseFP is being written in Java, I wonder how the GHC library would be accessed on such a environment. Need to take a look at the paper. I think the way to go is to call it via JNI. This

Re: [Haskell-cafe] Input/Output file

2006-07-03 Thread David House
On 03/07/06, Stefan Holdermans [EMAIL PROTECTED] wrote: test s | ... | ... | otherwise = error $ The file contains: ++ s Or perhaps, ... | otherwise = error $ The file contains: ++ show s Then all the newlines and other control characters will be printed in

Re: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Thiago Arrais
Leif, On 7/3/06, Leif Frenzel [EMAIL PROTECTED] wrote: I think the way to go is to call it via JNI. This has worked fine for me in the past on Windows with dlls Although it required quite some glue code written in C, and it did not look very pretty. Have you already taken a look at this thing

[Haskell-cafe] RE: Packages and modules

2006-07-03 Thread Simon Peyton-Jones
Concerning packages, Alex asks: | We covered this extensively in the Cabal vs Haskell thread starting | here: http://www.haskell.org//pipermail/libraries/2005-April/003607.html | | You concluded it by saying on April 22: | |And this observation points towards a simpler solution: rather than

[Haskell-cafe] forall and a parse error

2006-07-03 Thread Neil Mitchell
Hi, I was experimenting with forall and higher rank types briefly, in particular: x :: [forall a . a] This is illegal because of: http://www.haskell.org/ghc/docs/latest/html/users_guide/type-extensions.html#universal-quantification Which is fine, however its surprising to compare the error

Re: [Haskell-cafe] forall and a parse error

2006-07-03 Thread David House
On 03/07/06, Neil Mitchell [EMAIL PROTECTED] wrote: In normal Haskell, I tend to view [x] as equivalent to [(x)] (provided that x is not a tuple) but in this case it has a different meaning - albeit both are erronous meanings. How would tuples make a difference? -- -David House, [EMAIL

Re: [Haskell-cafe] forall and a parse error

2006-07-03 Thread Neil Mitchell
On 7/3/06, David House [EMAIL PROTECTED] wrote: On 03/07/06, Neil Mitchell [EMAIL PROTECTED] wrote: In normal Haskell, I tend to view [x] as equivalent to [(x)] (provided that x is not a tuple) but in this case it has a different meaning - albeit both are erronous meanings. How would tuples

[Haskell-cafe] Re: JRegex on large input sizes

2006-07-03 Thread John Meacham
On Sat, Jul 01, 2006 at 02:27:17PM +0100, David House wrote: Hi all. I need a decent regex library and JRegex seems the perfect choice: simple API, yet well-featured, as well as PCRE support. I want to use it on a simple project which involves input files a little larger than typical --

[Haskell-cafe] Re: Where is Data.Atom?

2006-07-03 Thread Iain Alexander
Another suggestion: Put your strings in an ordered binary tree (other data structures might also work here). Make your Atom an encoding of the structure of the tree (resp. other structure). This is logically a sequence of bits, 0 for left (less than), 1 for right (greater than) - if you

Re: [Haskell-cafe] New Benchmark Under Review: Magic Squares

2006-07-03 Thread Donald Bruce Stewart
Perhaps you could post a new entry page on our shootout wiki? http://www.haskell.org/hawiki/ShootoutEntry This makes it easier for people to keep contributing. Cheers, Don daniel.is.fischer: Am Sonntag, 2. Juli 2006 01:58 schrieb Brent Fulgham: We recently began considering another

[Haskell-cafe] Re: EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Thiago Arrais
Bulat, Thank you for the detailed responses. I apologize for not answering before, I was waiting for a quieter time to be able to answer properly. On 7/3/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: now i'm using editor with just syntax highlighting and therefore i wrote about things those

Re: [Haskell-cafe] EclipseFP (Haskell IDE) 0.10.0 released

2006-07-03 Thread Keegan McAllister
I have managed to call Haskell from Java on Linux -- I had to manually invoke gcc for the linking step because ghc won't output a shared object. It was very ugly indeed, but I can show you what I did if it will help. jvm-bridge also seems more developed now than when I was doing this, so