Re: [Haskell-cafe] ANN: Angel 0.4.4

2013-07-31 Thread Никитин Лев
  31.07.2013, 05:03, "Michael Xavier" :angel is a daemon  "angel is a background process" sounds better. Sorry for offtopic  ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Happstack, RqData: (How) can I extract multiple data from form?

2010-10-18 Thread Никитин Лев
Hello. (How) can I query multiple data from form? Foor form ala /form> I can use 'looks "foo"' to get array of values. Ok. But Is there any way to extract values from such form: http://www.haskell.org/mailman/listinfo/haskell-cafe

Fwd: [Haskell-cafe] Happstack, RqData: (How) can I extract multiple data from form?

2010-10-18 Thread Никитин Лев
Пересылаемое сообщение 18.10.10, 23:58, "Никитин Лев" : Пересылаемое сообщение 18.10.10, 23:57, "Никитин Лев" : Well. Thanks. I've just have a look at formlets. I think is what i need. But I'm using now HSP. Are formlets in

[Haskell-cafe] Happstack, RqData: (How) can I extract multiple data from form?

2010-10-19 Thread Никитин Лев
Пересылаемое сообщение 20.10.10, 00:22, "Никитин Лев" : >>Are formlets integrated with HSP? > hsp support is in a separate package: > http://hackage.haskell.org/package/formlets-hsp > There is a demo of using HSP+Formlets+Happstack here: > http:

[Haskell-cafe] HXT: how to get sibling element

2012-03-15 Thread Никитин Лев
Hello, haskellers. Suppose we have this xml doc (maybe, little stupid): Some story Description: This story about... Author: Tom Smith In the end I whant to get list: [("Title", "Some story"), ("Description","This story about..."), ("Author", "Tom Smith")], or, maybe this: Book "Some st

[Haskell-cafe] HXT: how to get sibling element

2012-03-15 Thread Никитин Лев
I absolutly agree with you but unfortunetly, it is not my xml file.It is extraction from html page of public web server. I cannot to change format of this html page.Sorry. I had to explain it  in first letter. But than what about to get sibling text (geting sibling is an separate interesting tasks

Re: [Haskell-cafe] HXT: how to get sibling element

2012-03-15 Thread Никитин Лев
(Wilfried, Student B-TI)" : > You might want to check out the xml-conduit package. It has preceding > and following sibling Axis. I am not sure how the package works > exactly, but it seems to be a good starting point. > > 2012/3/15 Никитин Лев : > >>  I absolutly agree with

Re: [Haskell-cafe] puzzling polymorphism behavior (7.0.3 windows)

2012-03-15 Thread Никитин Лев
Maybe everytime you use 'cell' you tell haskell to create NEW cell. Try this: push' i cell = modifyIORef cell (++ [i]) main = do cell <- newIORef [] push' "x" cell {- push' 3 cell will be incorrect in this case -} push' "o" cell readIORef cell >>= return Why the original code pordu

Re: [Haskell-cafe] HXT: how to get sibling element

2012-03-16 Thread Никитин Лев
Thanx to all. I've done it! === import Text.XML.HXT.Core import Text.XML.HXT.Curl import Text.XML.HXT.HTTP import Control.Arrow.ArrowNavigatableTree pageURL = "http://localhost/test.xml"; main = do r <- runX (configSysVars [withCanonicalize no, withValidate no, withTrace 0, wit

Re: [Haskell-cafe] Instead of Haskell running on the JVM is there a way for Haskell to call a JVM language ...

2012-11-19 Thread Никитин Лев
And I'd be very interested.Let me know too, please. 20.11.2012, 13:32, "John Wiegley" : KC   writes: Instead of Haskell running on the JVM is there a way for Haskell to call a JVM language (or generate bytecode) to access the Java class libraries when needed? Or Is there a way for

Re: [Haskell-cafe] Object Oriented programming for Functional Programmers

2013-01-01 Thread Никитин Лев
Eiffel, for my opinion, is a best OOP language. Meyer use a theoretical approach as it is possible in OOP. 01.01.2013, 23:56, "Bob Hutchison" :On 2012-12-31, at 4:26 PM, Rico Moorman wrote:Hello Bob and Mike, Reading a little within the suggested book I came across the foll

Re: [Haskell-cafe] Object Oriented programming for Functional Programmers

2013-01-01 Thread Никитин Лев
ll need DbC?For example, class invariants may be expressed in DbC construction (fmap id = id for Functior, for example). 02.01.2013, 02:41, "Mike Meyer" :MigMit <miguelim...@yandex.ru> wrote:On Jan 1, 2013, at 10:23 PM, Никитин Лев <leon.v.niki...@pravmail.ru>wrote: Eiffe

Re: [Haskell-cafe] Object Oriented programming for Functional Programmers

2013-01-02 Thread Никитин Лев
 Well, we can say "concepts" in place of "theory".  And I'm comparing Eiffel with other OOP lang, not with some langs based on a solid math theory (lambda calcules for FP langs, for example). ok? DbC is not the same as "assert macros". First, it has a lang semantic. There is an interesting graduate

Re: [Haskell-cafe] Object Oriented programming for Functional Programmers

2013-01-02 Thread Никитин Лев
Opps... I forgot about Eiffel agents! PS. After participationing in this discussion I'm  tempting to reread Meyer's book after 10 years interval, to have a detailed look at the eiffel from the FP position. When I read this book first I know nothing about FP.   _

Re: [Haskell-cafe] On the purity of Haskell

2011-12-29 Thread Никитин Лев
29.12.2011, 23:55, "Gregg Reynolds" : > Haskell does not and cannot know what the result of an IO action is, because > it's outside the scope of the language (and computation).  (The "Int" part of > "IO Int" refers to the input, not the output; it's just a sort of type > annotation.)  It's n

Re: [Haskell-cafe] On the purity of Haskell

2011-12-29 Thread Никитин Лев
Of course we take in matter what computation "getStr :: IO [Char]" means. Of course we take in matter what computation "putStr :: String -> IO () means (I know, putStr is not computation, puStr x is computation, but it's not important) And If I want to write "echo" program, I have to combine

Re: [Haskell-cafe] On the purity of Haskell

2011-12-29 Thread Никитин Лев
If seed depends of psudo random event, for example of current systime, we must use IO action. 30.12.2011, 02:47, "Steve Horne" : > > BTW - why use an IO action for random number generation? There's a > perfectly good pure generator. It's probably handy to treat it > monadically to sequence the ge