Re: [Haskell-cafe] ANN: Angel 0.4.4

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

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

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] 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" hutch-li...@recursive.ca:On 2012-12-31, at 4:26 PM, Rico Moorman rico.moor...@gmail.com wrote:Hello Bob and Mike, Reading a little within the suggested book

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" m...@mired.org:MigMit miguelim...@yandex.ru wrote:On Jan 1, 2013, at 10:23 PM, Никитин Лев leon.v.niki...@pravmail.ruwrote: Eiffel, for my op

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" jo...@newartisans.com: KC  kc1...@gmail.com 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? 

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,

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

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

[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 Никитин Лев
, Student B-TI) w.g.g.vanas...@student.utwente.nl: 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 Никитин Лев leon.v.niki...@pravmail.ru:  I absolutly

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 porduces

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

2011-12-29 Thread Никитин Лев
29.12.2011, 23:55, Gregg Reynolds d...@mobileink.com: 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

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 these

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 sh006d3...@blueyonder.co.uk: BTW - why use an IO action for random number generation? There's a perfectly good pure generator. It's probably handy to treat it

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

2010-10-19 Thread Никитин Лев
Пересылаемое сообщение 20.10.10, 00:22, Никитин Лев leon.v.niki...@pravmail.ru: 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

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

2010-10-18 Thread Никитин Лев
Пересылаемое сообщение 18.10.10, 23:58, Никитин Лев leon.v.niki...@pravmail.ru: Пересылаемое сообщение 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 integrated