smimou changed the topic of #ocaml to: OCaml 3.08.3 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
bk_ has joined #ocaml
mlh_ has joined #ocaml
joeytwiddle has quit ["Leaving"]
Smerdyakov has joined #ocaml
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
joeytwiddle has joined #ocaml
joeytwiddle has left #ocaml []
<Smerdyakov> joeytwiddle is a demonic hatter.
joeytwiddle has joined #ocaml
joeytwiddle has quit [Read error: 104 (Connection reset by peer)]
joeytwiddle has joined #ocaml
<Smerdyakov> joeytwiddle, you are CAUSING TROUBLE!
joeytwiddle has left #ocaml []
ulfdoz has joined #ocaml
ulfdoz_ has quit [Read error: 145 (Connection timed out)]
joeytwiddle has joined #ocaml
araujo has joined #ocaml
Herrchen_ has joined #ocaml
Herrchen has quit [Read error: 145 (Connection timed out)]
<ulfdoz> re
Smerdyakov has quit ["bye"]
monochrom has quit ["good morning, sweet dream"]
sieni has left #ocaml []
__DL__ has joined #ocaml
Sonarman has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Submarine has quit ["Leaving"]
mrvn_ has joined #ocaml
pango_ has quit [Remote closed the connection]
mrvn has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
<Snark> salut
Skal has joined #ocaml
mlh_ has quit [Client Quit]
Saulzar has joined #ocaml
Saulzar_ has joined #ocaml
Saulzar has quit [Read error: 60 (Operation timed out)]
Submarine has joined #ocaml
Submarine has quit ["Leaving"]
Naked is now known as Hadaka
cmeme has quit [Read error: 104 (Connection reset by peer)]
cmeme has joined #ocaml
vezenchio has joined #ocaml
pango has joined #ocaml
Msandin has joined #ocaml
Saulzar_ is now known as Saulzar
<Saulzar> Hello - I've been trying to follow some haskell examples for parser combinators, and in attempting to translate one functions I've run into an issue with a recursion error...
<Saulzar> "This kind of expression is not allowed as right-hand side of `let rec'"
<Saulzar> Which is baffling me somewhat - but if I tack on an extra surpurfluous argument to the function it seems to work fine
<Saulzar> I've posted my function here http://www.noidea128.org/sourcefiles/14924
<Saulzar> I'm not quite sure what this is about - but from googling about it seems like it's some kind of safety check for infinite recursion?
<Saulzar> Er - actually this one is better http://www.noidea128.org/sourcefiles/14924~, the previous one is formatted in a wierd way
<Snark> how can you define a recursive value!?
<Snark> of course it has to be a function
<Snark> did you try to remove the first "rec"
<Snark> ?
<Saulzar> Well, it is recursive
<Saulzar> Otherwise the function isn't "bound" within itself..
<Snark> hmmmm... but if you write "let rec foo =" then foo isn't a function
<Snark> while "let rec foo () =" is
<Saulzar> Ahh, that again
<Snark> use () instead of n if you don't use the value ; it's cleaner
<Saulzar> Reading haskell code in the article and I forgot all about it
<Saulzar> Sorry about that, I should have known - but thanks.
<Hadaka> Saulzar: if you are doing monads and ocaml, you should check out the core foundation library in OcamlNAE
Tachyon76 has joined #ocaml
<Saulzar> Cool - I'll take a look. Just trying to work my way through this article, it is quite enlightening :)
<Hadaka> (btw, ocaml does support recursive values as well in a limited sense - like let rec a = 1 :: a;;)
<__DL__> Saulzar: note also that haskell is a lazy language, when ocaml is not, but you can use explicit lazy value.
Saulzar_ has joined #ocaml
Msandin has quit [Read error: 110 (Connection timed out)]
Saulzar has quit [Read error: 60 (Operation timed out)]
Saulzar_ is now known as Saulzar
stef__ has joined #ocaml
vincenz has quit [Remote closed the connection]
vincenz has joined #ocaml
demitar_ is now known as Demitar
<Saulzar> Hmm, it certainly looks an interesting way to do things...
stef__ has quit [Remote closed the connection]
Tachyon76 has quit ["Leaving"]
Msandin has joined #ocaml
Msandin has quit [Read error: 110 (Connection timed out)]
_fab has joined #ocaml
bk_ has quit ["Lost terminal"]
skylan has quit [Connection timed out]
monochrom has joined #ocaml
maml has joined #ocaml
<maml> hello
<maml> In lablgtk2 all values of Glist module are marked "Deprecated".
<maml> So, what's the good way to create à Glist ?
<TeXitoi> maml: maybe using native list?
<maml> No, it's a widget. It's a graphical element like in a form.
<Snark> a liststore?
<maml> Yes !
Submarine has joined #ocaml
<Snark> maml: then use that ; it works fairly well
<maml> Ok.
dan2 is now known as dan2__
dan2__ is now known as dan2
joeytwiddle has quit [Read error: 104 (Connection reset by peer)]
Submarine has quit ["Leaving"]
mrsolo_ has joined #ocaml
Msandin has joined #ocaml
pango has quit ["Leaving"]
TeXitoi_ has joined #ocaml
TeXitoi has quit [Read error: 110 (Connection timed out)]
MisterC has joined #ocaml
pango has joined #ocaml
Skal has quit [Read error: 145 (Connection timed out)]
vodka-goo has joined #ocaml
vodka-goo has quit [Client Quit]
mrsolo_ has quit [Read error: 104 (Connection reset by peer)]
mrsolo__ has joined #ocaml
Msandin has quit [Read error: 110 (Connection timed out)]
TeXitoi_ is now known as TeXitoi
Sonarman has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
<ulfdoz> Probably I'm only blind over three lines.
<ulfdoz> module type Probability =
<ulfdoz> sig
<ulfdoz> val partition_range: float -> int -> float List
<ulfdoz> end
<ulfdoz> I Have this in Probability.mli, according to O'Reilly it is correct, but ocamlc yells: File "Probability.mli", line 4, characters 2-5:
<ulfdoz> Syntax error: 'end' expected
<ulfdoz> File "Probability.mli", line 2, characters 2-5:
<ulfdoz> This 'sig' might be unmatched
<monochrom> I am concerned that List is capitalized.
<monochrom> It is reading "float List end" and thinking that's one single thing.
<ulfdoz> thx, that was it.
<ulfdoz> I'm spoiled by haskell.
Demitar has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]
vodka-goo has joined #ocaml
<ulfdoz> bye
MisterC has quit ["Client exiting"]
Enveigler has joined #ocaml
vodka-goo has quit []
mfurr has joined #ocaml
totaln00b has joined #ocaml
totaln00b has quit ["Leaving"]
Enveigler1 has joined #ocaml
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
Enveigler1 has left #ocaml []
Enveigler has quit [Operation timed out]