mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
jlouis has quit [Read error: 110 (Connection timed out)]
smimram has quit ["bli"]
Mr_Awesome has joined #ocaml
Abo-Marwan has quit [Read error: 104 (Connection reset by peer)]
screwt8 has quit [Read error: 104 (Connection reset by peer)]
pants1 has quit [Read error: 110 (Connection timed out)]
buluca has quit [Read error: 113 (No route to host)]
pants1 has joined #ocaml
xavierbot has quit [Read error: 104 (Connection reset by peer)]
rwmjones has quit [Read error: 104 (Connection reset by peer)]
threeve has joined #ocaml
rwmjones has joined #ocaml
Abo-Marwan has joined #ocaml
piggybox_ has joined #ocaml
ita has quit [Remote closed the connection]
screwt8 has joined #ocaml
psnively has quit []
joshcryer has quit [Client Quit]
joshcryer has joined #ocaml
screwt8 has quit [Read error: 104 (Connection reset by peer)]
Abo-Marwan has quit [Read error: 104 (Connection reset by peer)]
mordaunt has joined #ocaml
seafoodX has joined #ocaml
screwt8 has joined #ocaml
Abo-Marwan has joined #ocaml
threeve has quit []
gim has quit [Read error: 110 (Connection timed out)]
aminorex has quit [Read error: 104 (Connection reset by peer)]
mordaunt has quit [Read error: 104 (Connection reset by peer)]
kelaouchi has joined #ocaml
olegfink has quit [Read error: 104 (Connection reset by peer)]
olegfink has joined #ocaml
gim has joined #ocaml
ygrek has joined #ocaml
G_ has quit [kornbluth.freenode.net irc.freenode.net]
TaXules has quit [kornbluth.freenode.net irc.freenode.net]
eck has quit [kornbluth.freenode.net irc.freenode.net]
bebui has quit [kornbluth.freenode.net irc.freenode.net]
eroyf has quit [kornbluth.freenode.net irc.freenode.net]
haelix has quit [kornbluth.freenode.net irc.freenode.net]
G_ has joined #ocaml
eck has joined #ocaml
haelix has joined #ocaml
bebui has joined #ocaml
eroyf has joined #ocaml
TaXules has joined #ocaml
leo037 has joined #ocaml
smimou has joined #ocaml
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
screwt8 has quit [Remote closed the connection]
Abo-Marwan has quit [Remote closed the connection]
buluca has joined #ocaml
ygrek has quit [Remote closed the connection]
seafoodX has quit []
skal has joined #ocaml
buluc1 has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
seafoodX has joined #ocaml
buluca has joined #ocaml
buluc1 has quit [Read error: 110 (Connection timed out)]
authentic has joined #ocaml
piggybox_ has quit [Read error: 110 (Connection timed out)]
olegfink has quit [Read error: 104 (Connection reset by peer)]
olegfink has joined #ocaml
pants1 has left #ocaml []
seafoodX has quit [Read error: 104 (Connection reset by peer)]
m3ga has joined #ocaml
m3ga has quit [Client Quit]
piggybox has joined #ocaml
skal has quit [Remote closed the connection]
screwt8 has joined #ocaml
jlouis has joined #ocaml
seafoodX has joined #ocaml
STenyaK has joined #ocaml
<STenyaK> hi all. i'm trying to compile ocaml-3.09 without X11 support. i tried a configure -tk-no-X11, also a -no-tk, but it still asks me for X11 libs in otherlibs/graph...
<flux> I don't know, but the script says: if test "$x11_include" = "not found" || test "$x11_link" = "not found"then echo "X11 not found, the \"graph\" library will not be supported." x11_include=""else
<flux> and in the else branch it says where it found your X11 etc
jlouis_ has quit [Read error: 110 (Connection timed out)]
Abo-Marwan has joined #ocaml
<STenyaK> uhm, then.. what should i do? how can i stop asking for X11 libs?
<STenyaK> *stop it from asking
<flux> modify the configure-script to go always to that branch
<STenyaK> oh ok. thx for the help!
<STenyaK> yay it worked, thanks!
Sparkles has joined #ocaml
STenyaK has left #ocaml []
Mr_Awesome has joined #ocaml
netx has quit ["Leaving"]
pants1 has joined #ocaml
pango has quit [Remote closed the connection]
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
pango has joined #ocaml
piggybox_ has joined #ocaml
piggybox has quit [Read error: 110 (Connection timed out)]
pants1 has quit ["Leaving."]
Tetsuo has joined #ocaml
<noss> can i define my own infix operators?
<rwmjones> noss, not unless you use camlp4
<rwmjones> noss, sorry ^^ is rubbish
<rwmjones> you can define your own infix operators like this:
<rwmjones> let (//) = Filename.concat
xavierbot has joined #ocaml
<rwmjones> let (//) = Filename.concat ;;
<xavierbot> val ( // ) : string -> string -> string = <fun>
<noss> i remembe seeing camlp4 demonstrated in some slides on how to create a dsl in 15 min :)
<rwmjones> "/home" // "rich" ;;
<xavierbot> - : string = "/home/rich"
<rwmjones> let (-) = (+) ;;
<xavierbot> val ( - ) : int -> int -> int = <fun>
<rwmjones> 2 - 3;;
<xavierbot> - : int = 5
<noss> That's tasty.
<noss> Is the repl not capable of loading modules? I'd like to make my own infix operator for adding Big_ints
<flux> yes it is, you load modules with #load and bring them to your name space with open.
<noss> oh, no autoloading mechanism. makes sense.
Tetsuo has quit [Remote closed the connection]
<mattam> Someone knows how to do packed libraries easily with OCamlMakefile ?
crathman has joined #ocaml
<mattam> ok, you just have to put the right options yourself, nevermind
buluca has quit [No route to host]
seafoodX has quit []
buluca has joined #ocaml
buluca has quit [Remote closed the connection]
Mr_Awesome has joined #ocaml
ita has joined #ocaml
mfurr has joined #ocaml
ygrek has joined #ocaml
buluca has joined #ocaml
Abo-Marwan has quit [Remote closed the connection]
screwt8 has quit [Remote closed the connection]
Tetsuo has joined #ocaml
Abo-Marwan has joined #ocaml
bluestorm has joined #ocaml
screwt8 has joined #ocaml
magius_pendragon has joined #ocaml
Tetsuo has quit [Remote closed the connection]
<magius_pendragon> ocalc seems to be complaining about unmatched parens, when my editor shows all the paren's are matched. I have a ternary constructor VarDecl, and a unary constructor Array that are abstract types. The expression being complained about is: match $1 with VarDecl (mods, type, exprs) -> VarDecl (mods, Array (type, 0), exprs);; (this is in an ocamlyacc production, which is where $1 is bound)
<magius_pendragon> +any suggestions?
<bluestorm> hm
<bluestorm> "abstract types" ? how can you match on an abstract type ?
<bluestorm> (is VarDecl the only constructor of your type ?)
skal has joined #ocaml
<magius_pendragon> bluestorm: sorry, i really should have said algebreic type, no VarDecl is not the only constructor, but that's the line ocamlc is complaining about (its also the first clause of the match, and i had _ -> failwith ""
<magius_pendragon> _
<bluestorm> hm
<bluestorm> ;; ends the expression
<magius_pendragon> yes
<bluestorm> if that is not your only cause, you shouldn't have a ;; here
<magius_pendragon> i knkow
<magius_pendragon> the ;; was added for indication only in here, its not in my file (that was hte only thing added, rest was a copy/paste)
<bluestorm> hm
<bluestorm> could you show the whole expression ?
<bluestorm> (if you don't want to paste it here, you can put it on http://pastebin.be for example)
<bluestorm> hm
<bluestorm> but anyway
<bluestorm> partial matches are usually obvious, so if you don't see one there, as you seems to know caml, it's likely to be somewhere else
<magius_pendragon> not sure what you mean by partial match ; what's causing the error is mismatched parens, which is why i'm confused because my paren's seem fine
<magius_pendragon> http://pastebin.com/d4b5ffd2b that's the production rule and the type defns for the 2 constructors used (there are obviously more type defs for the fields of the constructors and such)
<bluestorm> hmm
<bluestorm> haha
<magius_pendragon> good haha?
<bluestorm> hm
<bluestorm> bad
<bluestorm> i noticed i confused myself about your error
<magius_pendragon> ahh
<magius_pendragon> no worries, i may not have been as clear as i wanted
<bluestorm> i don't see anything wrong with your code
<magius_pendragon> yeah me neither, but ocaml seems to disagree
<bluestorm> if this is an ocamlyacc file
<bluestorm> you must be giving ocaml the .ml produced from the .mly
<magius_pendragon> yes
<bluestorm> have you checked in the .ml ?
<bluestorm> hm
<ita> building the .ml together is tricky
<magius_pendragon> hmm nope
<bluestorm> that could even give you the real content of the error line :-'
<magius_pendragon> i'll look, maybe i can find it
<flux> a real compilable, minimal piece of code will be useful if people want to take a look at the problem..
screwt8 has quit [Read error: 104 (Connection reset by peer)]
Abo-Marwan has quit [Read error: 104 (Connection reset by peer)]
<magius_pendragon> flux: i'll see what I can do, i'm just not sure what's minimal here; bluestorm: paren's seem to match in the .ml file as well
psnively has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
<magius_pendragon> for anyone who was curious, its because i was using the word type as a variable, and my syntax highlighting missed it
<flux> don't worry, we all missed it, even though it was in your pasted line :)
skal has quit [Read error: 104 (Connection reset by peer)]
<flux> I've learned that with ocaml a good approach to take is "compiler is right"..
G has joined #ocaml
<magius_pendragon> flux: i never did say the complier was wrong, i just couldn't figure out what i had missed
<flux> yes, I understand, sometimes one just can get a feeling of disbelief when staring at some obviously correct code :)
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
G_ has quit [Connection timed out]
screwt8 has joined #ocaml
buluca has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
Abo-Marwan has joined #ocaml
ygrek has quit [Remote closed the connection]
bluestorm has quit ["Konversation terminated!"]
piggybox_ has quit [Read error: 104 (Connection reset by peer)]
Demitar has joined #ocaml
tlockney has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
tlockney_ has joined #ocaml
G_ has joined #ocaml
pango has quit [Remote closed the connection]
tlockney has quit [Read error: 110 (Connection timed out)]
pango has joined #ocaml
G has quit [Connection timed out]
mfurr has quit ["Client exiting"]
tlockney_ is now known as tlockney
piggybox has joined #ocaml
crathman has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.7/2007091417]"]
psnively has quit [Read error: 104 (Connection reset by peer)]
psnively has joined #ocaml
skal has joined #ocaml