<areece>
does anyone know why $ opam list camlidl woudl work but not $ ocamlfind query camlidl
Yoric has joined #ocaml
<areece>
oh, because camlidl is a binary
myx has joined #ocaml
mye has quit [Quit: mye]
Yoric has quit [Ping timeout: 255 seconds]
mye has joined #ocaml
mye has quit [Client Quit]
mye has joined #ocaml
mye has quit [Client Quit]
sivoais is now known as msivoaisw
msivoaisw is now known as sivoais
Yoric has joined #ocaml
jewel has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
jewel has quit [Ping timeout: 248 seconds]
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 264 seconds]
Yoric has quit [Ping timeout: 246 seconds]
fusillia has joined #ocaml
Catnaroek has joined #ocaml
lolcathost has quit [Ping timeout: 255 seconds]
tane has joined #ocaml
Siphonblast has quit [Quit: quit()]
Icarot has joined #ocaml
<testcocoon>
I'm actually trying to load a lib as printer in ocamldebug. I'm using 'load_printer lld.cma'
<testcocoon>
lld.cma contains a small ocaml code and a c code.
<testcocoon>
when I try to load it I receive: The external function `lld_debug_value' is not available
<testcocoon>
lld_debug_value is define in the C code that should be packed into lld.cma.
<testcocoon>
Dos anybody know how to handle this?
pango__ has joined #ocaml
pango_ has quit [Ping timeout: 250 seconds]
AltGr has joined #ocaml
gour has joined #ocaml
Yoric has joined #ocaml
f[x] has joined #ocaml
Icarot has quit [Quit: quit()]
pango__ has quit [Remote host closed the connection]
pango has joined #ocaml
weie has joined #ocaml
suyu has joined #ocaml
_andre has joined #ocaml
<noj>
I'm using ocamlbuild to try and build a new top-level (ocamlbuild foo.top) with a foo.mltop file containing my module name 'Foo', but I can't use any of the definitions in my foo.ml file from the generated foo.top. What am I doing wrong?
weie has quit [Quit: Leaving...]
<noj>
ok, #directory "_build" / ./top -I _build was the missing piece
weie has joined #ocaml
<mk270>
any ocaml.org folks here?
q66 has joined #ocaml
mcclurmc has joined #ocaml
BiDOrD has joined #ocaml
BiDOrD_ has quit [Ping timeout: 260 seconds]
ontologiae has joined #ocaml
ikaros has joined #ocaml
Catnaroek has quit [Quit: leaving]
Catnaroek has joined #ocaml
oriba has joined #ocaml
Catnaroek has quit [Ping timeout: 255 seconds]
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
mcclurmc has quit [Ping timeout: 244 seconds]
mcclurmc has joined #ocaml
mcclurmc1 has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
beginner42 has joined #ocaml
<beginner42>
is it possible to pass more than one module to a functor?
<beginner42>
hcarty: is the syntax then functor(P : T1) (P2 : T2) ... -> struct end ?
<hcarty>
beginner42: You can use the syntax I wrote directly or expand it that way
<beginner42>
hcarty: ok, thank you
beginner42 has quit [Quit: irc2go]
<hcarty>
benja: The expansion would be: module Make = functor (M1 : S1) -> functor (M2 : S2) -> struct ... end
jewel has joined #ocaml
eni has joined #ocaml
fusillia has quit [Remote host closed the connection]
nimred has quit [Ping timeout: 255 seconds]
nimred has joined #ocaml
nimred has quit [Changing host]
nimred has joined #ocaml
lolcathost has joined #ocaml
<testcocoon>
does anybody know how I can create a opam package that can be configured (I want to have a package that can be build for release and debug mode)
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 265 seconds]
ulfdoz_ is now known as ulfdoz
lolcathost has quit [Quit: brb]
mye has joined #ocaml
suyu has quit [Quit: suyu]
milosn has quit [Read error: Connection reset by peer]
<hcarty>
testcocoon: You could set an environment variable and check it during the configuration of your package
<hcarty>
testcocoon: I'm not sure if opam provides something directly for that though.
leoncamel has joined #ocaml
gour has quit [Ping timeout: 245 seconds]
milosn has joined #ocaml
<testcocoon>
hcarty: how to you check a envisonment variable in the opam file. the build field seams to be only a static table of command lines
gour has joined #ocaml
<hcarty>
testcocoon: Not in opam - in the the configure/myocamlbuild.ml/OMakefile of the source
<hcarty>
testcocoon: Section 4 in that document makes it look like you can set per-package variables at the opam level. I'm not sure how to use the values, but the information you need may be there.
* testcocoon
was not aware of the manual
<testcocoon>
hcarty: OK, it seams that I can read the variable %{$NAME:$VAR}%, but how can I set it?
lolcathost has joined #ocaml
lolcathost has quit [Quit: leaving]
lolcathost has joined #ocaml
leoncamel has quit [Ping timeout: 252 seconds]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
lolcathost has quit [Quit: brb gaize!!1]
<testcocoon>
Is there a way to tell opam to keep the build directory? make uninstall does not work if configure and make is not executed....
lolcathost has joined #ocaml
lolcathost has quit [Client Quit]
lolcathost has joined #ocaml
AltGr has quit [Quit: Konversation terminated!]
cdidd has quit [Ping timeout: 250 seconds]
eni has quit [Quit: Leaving]
gnuvince has quit [Ping timeout: 255 seconds]
gnuvince has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc1 has quit [Ping timeout: 265 seconds]
mcclurmc1 has joined #ocaml
_andre has quit [Quit: leaving]
mcclurmc has quit [Ping timeout: 248 seconds]
oriba_ has joined #ocaml
oriba_ has left #ocaml []
oriba has quit [Ping timeout: 265 seconds]
<Leonidas>
hmm, when I install batteries from OPAM, shouldn't open BatArg;; work in the ocaml toplevel?
<asmanur>
did you load batteries inside the toplevel ?
<asmanur>
(#use "topfind" ;; and #require "batteries" ;;)
<Leonidas>
asmanur: well, I know batteries *used* to do this automatically
<Leonidas>
did this change in 1.5?
<thelema>
Leonidas: batteries includes a battop.ml file that should automatically be installed.
<thelema>
It also includes a .ocamlinit chunk that needs to be put in your ~/.ocamlinit to run the battop.ml when you start the toplevel
<thelema>
this has not changed in 1.5
<Leonidas>
thelema: odd. If I run .opam/4.00.1/lib/batteries/ocaml I get the toplevel with the batteries ascii art
<Leonidas>
thelema: I just took the ocamlinit from github and put it in ~/.ocamlinit but I get an error
<Leonidas>
okay, wait a second
<Leonidas>
okay, when I copy over .ocamlinit, it works
<Leonidas>
Error: I/O error: /usr/share/doc/ocaml-batteries/toplevel.help: No such file or directory
<Leonidas>
well, yeah, that path is does not exist
<Leonidas>
(#help;;)
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 244 seconds]
<thelema>
hmm, I am tempted to take a look at that, but I'm pretty sure we're dropping the builtin help in 2.0, as it's quite unmaintained
<thelema>
yes, the builtin docs need a DOCROOT environment variable to be set before building
jewel has quit [Ping timeout: 264 seconds]
<thelema>
this could be added to the OPAM script
<thelema>
(I think)
<wmeyer>
hi
* wmeyer
is starting another weekend
<thelema>
hi wmeyer
<adrien>
wmeyer: aren't you tired of weekends? you could do some more work like, for instance, something completely at random, cross-compilation support
<wmeyer>
i prefer disorganised, compulsive, and chaotic, distributed style of development, I am sure cross-compilation will fit in :-)
<adrien>
it definitely will so start right now!
<wmeyer>
will have a look now, thx, salted peanuts on the table.
<wmeyer>
adrien: so yypkg is all the time on your plate? :-)
<adrien>
I want to make a new release :P
<wmeyer>
definitely it's a good idea
weie has quit [Quit: Leaving...]
gour has quit [Quit: WeeChat 0.3.8]
<Leonidas>
thelema: does it respect the DOCROOT variable?
<thelema>
Leonidas: at compile time
<Leonidas>
but yeah, if it is going to be dropped, probably not worth the work
<thelema>
Unless someone is interested in making it work well... I don't use it
Anarchos has joined #ocaml
<Leonidas>
hmm, if only opam description files were documented... :)
<Leonidas>
oh, they are
eni has joined #ocaml
lolcathost has quit [Ping timeout: 260 seconds]
Yoric has quit [Ping timeout: 252 seconds]
<adrien>
wmeyer: thanks for looking; so far I've almost only touched the build system since it seems it's where most of the work is and the other things can only be properly done once the build system "works"
<adrien>
I'll comment more on tomorrow; I'm going to bed right now
<adrien>
good night
<wmeyer>
adrien: night
lolcathost has joined #ocaml
eni has quit [Quit: Leaving]
tani has joined #ocaml
tane has quit [Ping timeout: 244 seconds]
<troydm>
can i have the same function with the same name but different argument types and number of arguments
<troydm>
like in Haskell?
<Asmadeus>
the last declaration would overwrite earlier ones afaik
<troydm>
ic
<Asmadeus>
on the other hand you can use optional arguments
<Asmadeus>
if it's got the same name, it's probably the same thing with default values
<troydm>
ic, thx
tani has quit [Quit: Verlassend]
emmanuelux has joined #ocaml
myx has quit [Ping timeout: 255 seconds]
fab has joined #ocaml
<fab>
hi
wormphlegm has quit [Read error: Connection reset by peer]
<fab>
i don't understand a type declaration maybe you can help me
<fab>
type env = Env of (ide -> dval);;
<fab>
i don't understand what that means
<fab>
ide and dval are type already declared
<fab>
but i don't undertand "( x -> y)"
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
wormphlegm has joined #ocaml
<fab>
very helpful
<pippijn>
fab: ocaml 4?
nickmeharry has joined #ocaml
<pippijn>
actually I think this is just a function type
<pippijn>
x -> y means function taking x and returning y
<nickmeharry>
Hi, I'm new to OCaml, and I'm trying to figure out the module system. Given a class c, what do I need to do to access it like MyLib.Module.c? Coming from a Python background, I expected something like MyLib/module.ml containing the class, but that doesn't seem to be working.
<pippijn>
nickmeharry: the ocaml module namespace is mostly flat
<pippijn>
MyLib/module.ml will normally compile to a module named Module
<Qrntz>
troydm, OCaml doesn't support overloading yet, but you could have polytypic behavior using GADTs for runtime type representations
<nickmeharry>
Interesting. So how should I best avoid namespace clashes?
<pippijn>
you can make a MyLib module with the -for-pack compiler option
<Qrntz>
although it'd be probably easier to just write multiple functions
<troydm>
Qrntz: ic
<troydm>
thx
<nickmeharry>
Ok, I'll rethink my design then.
<fab>
Env is a type?
<pippijn>
Env is a type constructor
<pippijn>
env is the type
<fab>
ok Env is the custructor
<fab>
but it works as a function?
<pippijn>
similar, yes
<pippijn>
it is just like a function, except it cannot be curried