[Haskell] ANNOUNCE: yi 0.1.0
yi-0.1.0 Yi is a text editor written and extensible in Haskell. The goal of Yi is to provide a flexible, powerful and correct editor core dynamically scriptable in Haskell. Yi as it stands implements most of vi by default. Keybindings for vim and nano are also provided. Other editor interfaces can be written by the user to extend Yi, through lexer specifications. Yi uses hs-plugins for runtime configuration via Haskell source, and to allow components of the editor to be dynamically recompiled without needing to restart Yi. Yi is quite fast and lightweight, thanks to GHC's excellent profiling tools. Source and more information is available at: http://www.cse.unsw.edu.au/~dons/yi.html Yi would not exist without the support of the members of the #haskell irc channel - thanks guys :) Patches, comments, criticism welcome! -- Don Stewart ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] ANNOUNCE: HWSProxyGen version 0.1
We are glad to present version 0.1 of HWSProxyGen, a web services proxy generator for the Haskell functional language, implemented in Haskell and C#. The final purpose is to show that Haskell and functional languages in general can be used as a viable way to the implementation of distributed components and applications, interacting with services implemented in different languages and/or platforms. Plese note that this first version is guaranteed to work only for web services generated with Visual Studio .NET. Binaries, source code and more information can be found in: http://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 mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] Re: How to substract a list?
Bright Sun <[EMAIL PROTECTED]> writes: > In Haskell, ++ can spends second list argument onto > the end of first list argument. How to substract the > second list from the first list? > > For example, > [(5,1),(4,1),(3,1),(2,1),(1,1)] > substract > [(2,1),(1,1)] > I want to get result list: > [(5,1),(4,1),(3,1)] Look at e.g. http://haskell.org/ghc/docs/latest/html/libraries/base/Data.List.html#v%3A%5C%5C for inspiration Regards, Peter ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] How to substract a list?
On Mon, 28 Mar 2005 01:53:39 +0200, Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote: > ([1..10]++[1..10]) \\ [3..6] > [1,2,7,8,9,10,1,2,7,8,9,10] > > So _all_ the elements with values in [3..6] where removed !! > If that's what you want ! Perfect ... if not : what do you want exactly > ? List substraction is not uniq. This is what I would have expected as well; however, the definition of (\\) in the report uses delete, which only removes the first occurence of each element in the second list from the first. GHC 6.2.2 uses that behavior as well, so: Prelude Data.List> ([1..10] ++ [1..10]) \\ [3..6] [1,2,7,8,9,10,1,2,3,4,5,6,7,8,9,10] .trev -- As far as I can tell It doesn't matter who you are If you can believe there's something worth fighting for ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] How to substract a list?
Tks Arjun, This is what I want. Thanks very much. Bright --- Arjun Guha <[EMAIL PROTECTED]> wrote: > Try this: > > > remove theList toRemove = filter (\x -> not (elem > x toRemove)) theList > > -Arjun > > On Mar 27, 2005, at 18:28, Bright Sun wrote: > > > Hi, > > > > Tks, this is not what I wanted. > > > > I want remove pairs list, > > > > [(5,1),(4,1),(3,1),(2,1),(1,1)] remove > [(2,1),(1,1)] > > [(5,1),(4,1),(3,1)] > > > > so pairs [(2,1),(1,1)] removed. > > > > Tks. > > > > --- Pierre Barbier de Reuille > > <[EMAIL PROTECTED]> wrote: > > > One answer is the infix operator (\\) defined > in the > > > List module (or in > > > Data.List ...) > > > > > > But it's in ont of the "set" operations. For > example > > > try : > > > > > > [1..10] \\ [3..6] > > > [1,2,7,8,9,10] > > > > > > But also : > > > > > > ([1..10]++[1..10]) \\ [3..6] > > > [1,2,7,8,9,10,1,2,7,8,9,10] > > > > > > So _all_ the elements with values in [3..6] > where > > > removed !! > > > If that's what you want ! Perfect ... if not : > what > > > do you want exactly > > > ? List substraction is not uniq. > > > > > > Pierre > > > > > > Bright Sun a écrit : > > > > In Haskell, ++ can spends second list > argument > > > onto > > > > the end of first list argument. How to > substract > > > the > > > > second list from the first list? > > > > > > > > For example, > > > > [(5,1),(4,1),(3,1),(2,1),(1,1)] > > > > substract > > > > [(2,1),(1,1)] > > > > I want to get result list: > > > > [(5,1),(4,1),(3,1)] > > > > > > > > Tks. > > > > > > > > > > > > > > > > __ > > > > Do you Yahoo!? > > > > Make Yahoo! your home page > > > > http://www.yahoo.com/r/hs > > > > > ___ > > > > Haskell mailing list > > > > Haskell@haskell.org > > > > > http://www.haskell.org/mailman/listinfo/haskell > > > > > > > > > > -- > > > Pierre Barbier de Reuille > > > > > > INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII > AMAP > > > Botanique et Bio-informatique de l'Architecture > des > > > Plantes > > > TA40/PSII, Boulevard de la Lironde > > > 34398 MONTPELLIER CEDEX 5, France > > > > > > tel : (33) 4 67 61 65 77fax : (33) 4 67 > 61 > > > 56 68 > > > > > > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > ___ > > Haskell mailing list > > Haskell@haskell.org > > http://www.haskell.org/mailman/listinfo/haskell > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] How to substract a list?
Try this: > remove theList toRemove = filter (\x -> not (elem x toRemove)) theList -Arjun On Mar 27, 2005, at 18:28, Bright Sun wrote: Hi, Tks, this is not what I wanted. I want remove pairs list, [(5,1),(4,1),(3,1),(2,1),(1,1)] remove [(2,1),(1,1)] [(5,1),(4,1),(3,1)] so pairs [(2,1),(1,1)] removed. Tks. --- Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote: > One answer is the infix operator (\\) defined in the > List module (or in > Data.List ...) > > But it's in ont of the "set" operations. For example > try : > > [1..10] \\ [3..6] > [1,2,7,8,9,10] > > But also : > > ([1..10]++[1..10]) \\ [3..6] > [1,2,7,8,9,10,1,2,7,8,9,10] > > So _all_ the elements with values in [3..6] where > removed !! > If that's what you want ! Perfect ... if not : what > do you want exactly > ? List substraction is not uniq. > > Pierre > > Bright Sun a écrit : > > In Haskell, ++ can spends second list argument > onto > > the end of first list argument. How to substract > the > > second list from the first list? > > > > For example, > > [(5,1),(4,1),(3,1),(2,1),(1,1)] > > substract > > [(2,1),(1,1)] > > I want to get result list: > > [(5,1),(4,1),(3,1)] > > > > Tks. > > > > > > > > __ > > Do you Yahoo!? > > Make Yahoo! your home page > > http://www.yahoo.com/r/hs > > ___ > > Haskell mailing list > > Haskell@haskell.org > > http://www.haskell.org/mailman/listinfo/haskell > > > > -- > Pierre Barbier de Reuille > > INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP > Botanique et Bio-informatique de l'Architecture des > Plantes > TA40/PSII, Boulevard de la Lironde > 34398 MONTPELLIER CEDEX 5, France > > tel : (33) 4 67 61 65 77 fax : (33) 4 67 61 > 56 68 > __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] How to substract a list?
Hi, Tks, this is not what I wanted. I want remove pairs list, [(5,1),(4,1),(3,1),(2,1),(1,1)] remove [(2,1),(1,1)] [(5,1),(4,1),(3,1)] so pairs [(2,1),(1,1)] removed. Tks. --- Pierre Barbier de Reuille <[EMAIL PROTECTED]> wrote: > One answer is the infix operator (\\) defined in the > List module (or in > Data.List ...) > > But it's in ont of the "set" operations. For example > try : > > [1..10] \\ [3..6] > [1,2,7,8,9,10] > > But also : > > ([1..10]++[1..10]) \\ [3..6] > [1,2,7,8,9,10,1,2,7,8,9,10] > > So _all_ the elements with values in [3..6] where > removed !! > If that's what you want ! Perfect ... if not : what > do you want exactly > ? List substraction is not uniq. > > Pierre > > Bright Sun a écrit : > > In Haskell, ++ can spends second list argument > onto > > the end of first list argument. How to substract > the > > second list from the first list? > > > > For example, > > [(5,1),(4,1),(3,1),(2,1),(1,1)] > > substract > > [(2,1),(1,1)] > > I want to get result list: > > [(5,1),(4,1),(3,1)] > > > > Tks. > > > > > > > > __ > > Do you Yahoo!? > > Make Yahoo! your home page > > http://www.yahoo.com/r/hs > > ___ > > Haskell mailing list > > Haskell@haskell.org > > http://www.haskell.org/mailman/listinfo/haskell > > > > -- > Pierre Barbier de Reuille > > INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP > Botanique et Bio-informatique de l'Architecture des > Plantes > TA40/PSII, Boulevard de la Lironde > 34398 MONTPELLIER CEDEX 5, France > > tel : (33) 4 67 61 65 77fax : (33) 4 67 61 > 56 68 > __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] How to substract a list?
One answer is the infix operator (\\) defined in the List module (or in Data.List ...) But it's in ont of the "set" operations. For example try : [1..10] \\ [3..6] [1,2,7,8,9,10] But also : ([1..10]++[1..10]) \\ [3..6] [1,2,7,8,9,10,1,2,7,8,9,10] So _all_ the elements with values in [3..6] where removed !! If that's what you want ! Perfect ... if not : what do you want exactly ? List substraction is not uniq. Pierre Bright Sun a écrit : In Haskell, ++ can spends second list argument onto the end of first list argument. How to substract the second list from the first list? For example, [(5,1),(4,1),(3,1),(2,1),(1,1)] substract [(2,1),(1,1)] I want to get result list: [(5,1),(4,1),(3,1)] Tks. __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell -- Pierre Barbier de Reuille INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP Botanique et Bio-informatique de l'Architecture des Plantes TA40/PSII, Boulevard de la Lironde 34398 MONTPELLIER CEDEX 5, France tel : (33) 4 67 61 65 77fax : (33) 4 67 61 56 68 ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] How to substract a list?
In Haskell, ++ can spends second list argument onto the end of first list argument. How to substract the second list from the first list? For example, [(5,1),(4,1),(3,1),(2,1),(1,1)] substract [(2,1),(1,1)] I want to get result list: [(5,1),(4,1),(3,1)] Tks. __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell