<jdrake>
www.ocaml.org has some tutorials linked on the top left as well, but don't take it as an official site, it is only useful for historical links right now
<Smerdyakov>
zylyn, look at the topic.
GrassHoper has quit ["using sirc version 2.211+KSIRC/1.2.1"]
cjohnson has quit ["Leaving"]
cjohnson has joined #ocaml
debona|r has joined #ocaml
tautologico has joined #ocaml
smimou has quit ["?"]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
tautologico has quit ["Leaving"]
Xolution has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
cjohnson has joined #ocaml
Xolution has quit [Read error: 60 (Operation timed out)]
vezenchio has joined #ocaml
jdrake has quit ["Leaving"]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Xolution has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
Herrchen has joined #ocaml
Herrchen_ has quit [Read error: 110 (Connection timed out)]
Iter has quit [Read error: 110 (Connection timed out)]
Iter has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
cjohnson has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
<debona|r>
plonk
Xolution has joined #ocaml
GreyLensman has quit ["Leaving"]
<debona|r>
what does this mean?
<debona|r>
string -> (string -> 'a) -> int = <fun>
<debona|r>
what's the second argument really?
<debona|r>
a function which takes a string and returns 'a?
<debona|r>
yes, yes, good
cjohnson has quit [Read error: 110 (Connection timed out)]
Xolution has quit [Connection timed out]
Xolution has joined #ocaml
<debona|r>
does anyone actually talk?
cjohnson has joined #ocaml
Xolution has quit [Connection timed out]
debona|r has left #ocaml []
<Maddas>
Usually, yes
<Maddas>
Oh, he left
Xolution has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
cjohnson has joined #ocaml
leolio has joined #ocaml
vezenchio has quit ["all that is necessary for the triumph of evil is for good men to do nothing"]
vezenchio has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
Xolution has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
smimou has joined #ocaml
Xolution has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Xolution has quit [Read error: 60 (Operation timed out)]
bk_ has joined #ocaml
kinners has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Xolution has joined #ocaml
cjohnson has quit [Connection timed out]
kinners has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
mflux has joined #ocaml
fluxx has quit [Remote closed the connection]
Xolution has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
Xolution has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
cjohnson has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
<Maddas>
argh.
<Maddas>
Xolution: Can you please fix your connection? Your joining/timing out is flooding the channel :-)
Xolution has quit [Connection timed out]
<Maddas>
I guess he didn't hear that.
Xolution has joined #ocaml
cjohnson has joined #ocaml
Xolution has quit [Read error: 110 (Connection timed out)]
Xolution has joined #ocaml
Xolution has quit ["Leaving"]
cjohnson has quit [Read error: 110 (Connection timed out)]
_fab has joined #ocaml
Iter has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
debona|r has joined #ocaml
not_me2_ has joined #ocaml
not_me2 has quit [Read error: 104 (Connection reset by peer)]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
Xolution has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
cjohnson has joined #ocaml
Xolution has quit [Read error: 60 (Operation timed out)]
pac_away has joined #ocaml
Xolution has joined #ocaml
pac_away has left #ocaml []
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
Xolution has quit [Connection timed out]
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
GreyLensman has joined #ocaml
<oracle1>
when having netstrings installed in usr/local/lib/ocaml via ocamlfind..why can't i use it in the toplevel?
<oracle1>
#load does work, but i cant access the functions
<Riastradh>
You probably need to use the #load command.
<oracle1>
yes of course
<oracle1>
i loaded str,unix what it depends on and then the .cma itself
_fab has quit [Remote closed the connection]
<Riastradh>
And are you either using qualified names or opening the Netstrings structure?
<debona|r>
there should be a direct link to that in the manual, but I don't see one
<debona|r>
that's the most useful page I've seen so far
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
<debona|r>
I have dir A which includes file.ml which contains a module M. File B needs to use module M. How do I open it from file A?
leolio has quit [Read error: 110 (Connection timed out)]
<Smerdyakov>
Are you using the toplevel or compiling?
<debona|r>
compiling, but I'd like to know for both
<debona|r>
because the tutorials I've read so far havne't really covered loading modules
<Smerdyakov>
If you're compiling, just use open File.M
<Smerdyakov>
Every file is its own module when compiling.
<Smerdyakov>
At the toplevel, the #use directives loads files.
<debona|r>
but where does file.ml need to be in B?
<Smerdyakov>
I don't understand.
<Smerdyakov>
File is the name for the module defined by a file called file.ml.
<debona|r>
ok, so, I'm compiling ocaml-rss
<debona|r>
ocaml-rss needs xml-light to work
<debona|r>
when I compile ocaml-rss, I get unbound module Xml
smkl has joined #ocaml
<debona|r>
so I'm wondering where to put xml.ml and the other files
<Smerdyakov>
You aren't passing xml.ml on the command line.
<Smerdyakov>
It doesn't matter where it is; it just needs to be in the command line.
<debona|r>
now I don't understand...
<Smerdyakov>
(Where "in the command line" could include a library that defines that module, or it could include some xml.ml if you want to do it that way.)
<debona|r>
oho
Iter has joined #ocaml
<debona|r>
ok, let me ask this question two
<debona|r>
I'm in my home directory, $HOME
<debona|r>
xml is in $HOME/xml/xml.ml
<debona|r>
if I run ocaml while in my home directory, what must I write to open Xml?
<debona|r>
open $HOME/xml/Xml ?
<debona|r>
s/two/too
<debona|r>
does the module file need a certain capitalization too?
<Smerdyakov>
#load "$HOME/xml/xml/ml";;
<debona|r>
oh
<Smerdyakov>
Filenames are meaningless in the toplevel.
<Smerdyakov>
Filenames are very important when compiling.
<debona|r>
what do you mean by 'toplevel' ?
<debona|r>
doesn't ocaml have a search path or soemthing where to find libraries?
<Smerdyakov>
The interactive environment, the repl, etc.
<debona|r>
i'll let you answer that before my next question :P
<debona|r>
since your answer may answer both
<Smerdyakov>
Maybe. I never deal with it.
<Smerdyakov>
(That was an answer to "is there a search path?")
<Smerdyakov>
I had already answered "what is toplevel" above.