Re: [Haskell-cafe] delete http://www.haskell.org/haskellwiki/Haskell_IDE

2012-11-29 Thread Roman Beslik
Good point. Done. On 29.11.12 06:16, Conrad Parker wrote: #REDIRECT [[IDEs]] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] delete http://www.haskell.org/haskellwiki/Haskell_IDE

2012-11-28 Thread Roman Beslik
A humble link "What links here" to the right will help you find those pages. On 28.11.12 21:53, Brent Yorgey wrote: is probably not a good idea anyway -- what if there are other pages that link to it? On Wed, Nov 28, 2012 at 07:08:16PM +0200, Roman Beslik wrote: Hi. There is mo

[Haskell-cafe] delete http://www.haskell.org/haskellwiki/Haskell_IDE

2012-11-28 Thread Roman Beslik
Hi. There is more verbose page http://www.haskell.org/haskellwiki/IDEs . I registered on http://www.haskell.org/haskellwiki/ , but have not found the "Delete Page" command, wiki software help pages, or feedback channel, so I'm writing here. ___ Haske

Re: [Haskell-cafe] Best bit LIST data structure

2011-10-09 Thread Roman Beslik
Yes, if you do not use high-level concepts and optimize everything by hand, it requires a lot of testing. :) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Best bit LIST data structure

2011-10-09 Thread Roman Beslik
I am not aware of such a library, but IMHO this code will be very simple. > data Bits b => BitList b = BitList Int {- number of used bits in the next component -} b [b] Write an isomorphism between @BitList b@ and @ListStep (BitList b)@ where > data ListStep e rc = Nil | Cons e rc On 07.10.11 1

[Haskell-cafe] categories in Haskell and module names

2011-10-05 Thread Roman Beslik
Hello. IMHO there are 2 ways to define categories in Haskell: W0) the category of types and functions ("base.Data.Functor" and company belongs to it); W1) the class "base.Control.Category.Category". (Defining a category where the class of objects is a type seems impossible in Haskell.) But t

[Haskell-cafe] module -> package

2011-09-30 Thread Roman Beslik
Hello. How can I find which installed package a specified module belongs to? ghci or cabal or ghc-pkg? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Roman Beslik
open a Haskell forum based on phpBB, but I need some collaborators for organize its content, and moderate its use. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] a patch for base.Foreign.C.String, the current locale

2010-07-23 Thread Roman Beslik
ed version of the "base" library. http://www.beroal.in.ua/prg/haskell/locale.patch -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Handling absent maintainers

2010-07-23 Thread Roman Beslik
I patch broken packages in my local repository. I increment a version so the local repository get a precedence over the Hackage. On 16.07.10 03:54, Mark Wotton wrote: 2. run my own hackage server and tell my users to use that instead. -- Best regards, Roman Beslik

Re: [Haskell-cafe] Equivalence of two expressions

2010-07-10 Thread Roman Beslik
normal forms are equal (up to associativity and commutativity of ring), expressions are equivalent. I am not aware whether Haskell has a library. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] whine and solution about programmers not respecting documentations

2010-06-29 Thread Roman Beslik
; [a] but there are further limitations on the arguments, and worse, the function doesn't check this and produce an error if the arguments don't conform, but just silently produces a meaningless result. How can 'deleteBy' check that an argument is an equivalence relation?

Re: [Haskell-cafe] whine and solution about programmers not respecting documentations

2010-06-28 Thread Roman Beslik
s are in a miserable state of not respecting docs when the docs are complete. Why should anyone expect deleteBy (>=) 5 [0..10] -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mai

Re: [Haskell-cafe] Core packages and locale support

2010-06-27 Thread Roman Beslik
t, by default, is determined by the *current locale*." "The Haskell 98 Foreign Function Interface." -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Core packages and locale support

2010-06-27 Thread Roman Beslik
it since they use it as String Hello, do you read me? I said: "do not change FilePath". -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Core packages and locale support

2010-06-27 Thread Roman Beslik
manual recoding it allows to use filesystems with any encoding O'kay, but IMHO few people want to have a headache with recoding. You knew that the implementation was incorrect, why you relied on it? -- Best regards, Roman Beslik. ___ Haskell-Cafe ma

Re: [Haskell-cafe] Core packages and locale support

2010-06-27 Thread Roman Beslik
On 27.06.10 03:58, Felipe Lessa wrote: On Sun, Jun 27, 2010 at 02:55:33AM +0300, Roman Beslik wrote: On 26.06.10 15:44, Felipe Lessa wrote: However, suppose your program needs to create a file with a name based on a database information. Your database is UTF-8. How do you translate that

Re: [Haskell-cafe] Core packages and locale support

2010-06-27 Thread Roman Beslik
On 27.06.10 04:07, Brandon S Allbery KF8NH wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/26/10 19:52 , Roman Beslik wrote: I fail to see how it will brake programs. Current programs do not use Unicode because it is implemented incorrectly. Currently, FilePath is an alias for

Re: [Haskell-cafe] Core packages and locale support

2010-06-26 Thread Roman Beslik
On 26.06.10 15:44, Felipe Lessa wrote: On Sat, Jun 26, 2010 at 09:29:29AM +0300, Roman Beslik wrote: Incorrect encoding of filepaths is common in e.g. Cyrillic Linux (because of multiple possible encodings --- CP1251, KOI8-R, UTF-8) and is solved by fiddling with the current locale and media

Re: [Haskell-cafe] Core packages and locale support

2010-06-26 Thread Roman Beslik
brake programs. Current programs do not use Unicode because it is implemented incorrectly. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Core packages and locale support

2010-06-25 Thread Roman Beslik
t is not a programming language issue. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHCi and State

2010-06-25 Thread Roman Beslik
can submit it in GHCi with something like: *Nomic> submitRule You can store a set of rules in IORef or another IO-mutable type. I think "you are in the IO monad" is pretty vague. Obviously, GHCi runs pure computations also. -- Best regards,

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-21 Thread Roman Beslik
On 17.06.10 23:44, Ketil Malde wrote: Roman Beslik writes: I do not agree. They are not confused by other languages, they treat all languages as born equal. Are you saying this is a good thing? Yes. There is more than Haskell. E.g the article on generic programming mainly

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-18 Thread Roman Beslik
On 18.06.10 07:41, Jason Dagit wrote: On Thu, Jun 17, 2010 at 6:36 AM, Roman Beslik <mailto:ber...@ukr.net>> wrote: I mean that a link [[X]] leads to HaskellWiki if X exists in HaskellWiki and to Wikipedia otherwise. I think this is probably a bad idea. Imagine trying to cre

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Beslik
On 17.06.10 19:12, Roman Beslik wrote: On 17.06.10 12:40, Roman Cheplyaka wrote: > From reading core I got the impression that everything is strict& unboxed. Perhaps this is related to creating some closures? How to get rid of those allocations? Yes, "distance" creates a closur

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Roman Beslik
alue(s) first. But what if I want to fix its second and third argument and not its first argument? Can flip help -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Beslik
0.0 = x | otherwise = negateDouble x }}} http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/GHC-Float.html -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Roman Beslik
terms to mean different things. So I think it is better to build on the HaskellWiki where the words can mean what we want them to. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Roman Beslik
Help:Links#Interwiki_links -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] HaskellWiki and Wikipedia

2010-06-16 Thread Roman Beslik
rch in Wikipedia" on the search results page. -- Best regards, Roman Beslik. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Fuse functions given to map and filter without RULES pragma

2004-04-05 Thread Roman Beslik
I've found a funny way to fuse functions given to map and filter without RULES pragma: toSelect = (,) Just fromSelect = uncurry mapMaybe transformFirst f (x, y) = (f x, y) maybe f = transformFirst (\g x -> g x >>= f) map f = maybe (Just . f) filter f = maybe (\x -> if f x then Just x else Nothing)