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

2006-07-02 Thread Bulat Ziganshin
Hello Thiago, Monday, July 3, 2006, 5:52:06 AM, you wrote: >> can you please describe that "code assistance" means? > You may know it as code completion, completion assistance or code thanks > You could try with EclipseFP, just hit Ctrl-Space. i still downloading Eclipse in order to try your pl

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

2006-07-02 Thread Bulat Ziganshin
Hello Duncan, Monday, July 3, 2006, 12:50:14 AM, you wrote: >> > instance Ord Atom -- this is where things get difficult! > and also equal lengths. > The nice thing about the ByteString representation is that we can use > the length to short-cut inequality and use equality of the pointers

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

2006-07-02 Thread Thiago Arrais
Bulat, On 7/2/06, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: can you please describe that "code assistance" means? You may know it as code completion, completion assistance or code suggestion. It is a much used feature on IDEs: just type your code, hit a special key combination and the program

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

2006-07-02 Thread ajb
G'day all. Quoting Brian Hulley <[EMAIL PROTECTED]>: > So perhaps my original spec is impossible to implement, though it is an open > question whether some very clever encoding (with corresponding > implementation of <) could be found which would lead to a better average > performance (whatever t

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

2006-07-02 Thread ajb
G'day all. Quoting Brian Hulley <[EMAIL PROTECTED]>: > I can see that an "unsafe" global ref to a Trie of Char with Unique as the > "value" of a node would allow me to implement fromString, toString, and > instance Eq Atom, but I've got no idea how to implement instance Ord Atom so > that the ord

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

2006-07-02 Thread Chris Kuklewicz
Brian Hulley wrote: The comparison would then be: compare (Atom l) (Atom r) = unsafePerformIO $ do li <- readIORef l ri <- readIORef r return (compare li ri) which is safe as long as creation of atoms is not allowed inside unsafePerformIO (it would be nic

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

2006-07-02 Thread Brian Hulley
Brian Hulley wrote: So perhaps my original spec is impossible to implement, though it is an open question whether some very clever encoding (with corresponding implementation of <) could be found which would lead to a better average performance (whatever that means). An alternative design for an

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

2006-07-02 Thread Neil Mitchell
Hi module somewhere (hopefully with a BSD licence), but a search on Hoogle turned up no results so maybe I'm mistaken. Just so people know, not finding a result in Hoogle is not a good indicator for something not existing. Hoogle doesn't index things for various reasons: * Not in the standard

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

2006-07-02 Thread Brian Hulley
Bulat Ziganshin wrote: Hello Brian, Sunday, July 2, 2006, 10:58:29 PM, you wrote: fromString :: String -> Atom toString :: Atom -> String instance Eq Atom instance Ord Atom -- this is where things get difficult! i think that ByteString is a very strong candidate to

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

2006-07-02 Thread Duncan Coutts
On Sun, 2006-07-02 at 23:08 +0400, Bulat Ziganshin wrote: > Hello Brian, > > Sunday, July 2, 2006, 10:58:29 PM, you wrote: > > > fromString :: String -> Atom > > toString :: Atom -> String > > > instance Eq Atom > > instance Ord Atom -- this is where things get difficult!

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

2006-07-02 Thread Brian Hulley
David House wrote: On 02/07/06, Brian Hulley <[EMAIL PROTECTED]> wrote: I can see that an "unsafe" global ref to a Trie of Char with Unique as the "value" of a node would allow me to implement fromString, toString, and instance Eq Atom, but I've got no idea how to implement instance Ord Atom so

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

2006-07-02 Thread David House
On 02/07/06, Brian Hulley <[EMAIL PROTECTED]> wrote: I can see that an "unsafe" global ref to a Trie of Char with Unique as the "value" of a node would allow me to implement fromString, toString, and instance Eq Atom, but I've got no idea how to implement instance Ord Atom so that the order is in

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

2006-07-02 Thread Bulat Ziganshin
Hello Brian, Sunday, July 2, 2006, 10:58:29 PM, you wrote: > fromString :: String -> Atom > toString :: Atom -> String > instance Eq Atom > instance Ord Atom -- this is where things get difficult! i think that ByteString is a very strong candidate to Atom. `memicmp` is v

[Haskell-cafe] Where is Data.Atom ?

2006-07-02 Thread Brian Hulley
Hi - I seem to remember from some discussion long ago that there is a Data.Atom module somewhere (hopefully with a BSD licence), but a search on Hoogle turned up no results so maybe I'm mistaken. What I'm looking for is an Atom type and the following operations: fromString :: String -> At

Re: [Haskell-cafe] System.FilePath, Request for comments

2006-07-02 Thread David Roundy
On Sat, Jul 01, 2006 at 06:14:07PM +0400, Bulat Ziganshin wrote: > Hello David, > > Saturday, July 1, 2006, 5:17:07 PM, you wrote: > > >> >The other important point regarding ADT's is what is a FilePath and > >> >what is a String? If I set the extension of a FilePath, is that > > > My leaning (a

Re: [Haskell-cafe] Simple List Question

2006-07-02 Thread Neil Mitchell
Hi I have a list >main [(1,2,3),(4,5,6),(3,4,5)] and i want all Elements at the 1. Pos. in new List: >[1,4,3] You might want to take a look at list comprehensions, they fit very nicely for this sort of problem. Thanks Neil ___ Haskell-Cafe maili

Re: [Haskell-cafe] Simple List Question

2006-07-02 Thread Chris Kuklewicz
Jenny678 wrote: Hello Little Problem, hope that somebody can help me I have a list main [(1,2,3),(4,5,6),(3,4,5)] and i want all Elements at the 1. Pos. in new List: [1,4,3] Thanks for help Hello Jenny, and welcome to haskell-cafe. I will hazard a guess that this resembles a homewor

[Haskell-cafe] Simple List Question

2006-07-02 Thread Jenny678
Hello Little Problem, hope that somebody can help me I have a list >main [(1,2,3),(4,5,6),(3,4,5)] and i want all Elements at the 1. Pos. in new List: >[1,4,3] Thanks for help -- View this message in context: http://www.nabble.com/Simple-List-Question-tf1880239.html#a5139831 Sent from the

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

2006-07-02 Thread Bulat Ziganshin
Hello Thiago, Saturday, July 1, 2006, 7:56:48 PM, you wrote: > For this new release we have been working on code assistance support, > something that has been heavily requested, and a Cabal editor. can you please describe that "code assistance" means? -- Best regards, Bulat