jlouis has quit [Read error: 110 (Connection timed out)]
eradman has quit [Remote closed the connection]
jlouis has joined #ocaml
jlouis has quit [Client Quit]
jlouis_ has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
piggybox__ is now known as piggybox
db4n has joined #ocaml
yminsky has joined #ocaml
yminsky has quit []
<db4n>
What's the OCaml equivalent of "show" in Haskell?
<db4n>
How do you print an arbitrary complicated object?
_noteventime_ has quit ["Someone reprogrammed the connection in C++ :-O"]
<bluestorm_>
db4n: you cannot
<bluestorm_>
ocaml doesn't have ad-hoc polymorphism
<bluestorm_>
GCaml, an OCaml variant, does
Ober_ has joined #ocaml
Ober has quit [Remote closed the connection]
Ober_ is now known as Ober
slipstream has quit [Read error: 110 (Connection timed out)]
slipstream has joined #ocaml
<db4n>
bluestorm_: Thanks.
pantsd has quit [Read error: 110 (Connection timed out)]
seafoodX has joined #ocaml
yminsky has joined #ocaml
db4n has left #ocaml []
bluestorm_ has quit ["Konversation terminated!"]
slipstream has quit [Read error: 110 (Connection timed out)]
shawn has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
pantsd has joined #ocaml
yminsky has quit []
Smerdyakov has joined #ocaml
slipstream has joined #ocaml
many-legged has quit [Remote closed the connection]
shawn has quit [Connection timed out]
shawn has joined #ocaml
Smerdyakov has quit ["Leaving"]
qwwqe has quit ["Leaving"]
qwwqe has joined #ocaml
david_koontz has quit ["Leaving"]
thesoko has quit [Remote closed the connection]
thesoko has joined #ocaml
piggybox_ has joined #ocaml
ulfdoz has quit [anthony.freenode.net irc.freenode.net]
oracle1 has quit [anthony.freenode.net irc.freenode.net]
fean has quit [anthony.freenode.net irc.freenode.net]
Hadaka has quit [anthony.freenode.net irc.freenode.net]
rubenz has joined #ocaml
piggybox has quit [Read error: 110 (Connection timed out)]
<rubenz>
Is there a function composition operator in OCaml like (.) in Haskell?
joshcryer has quit [Read error: 104 (Connection reset by peer)]
joshcryer has joined #ocaml
seafoodX has quit [Remote closed the connection]
seafoodX has joined #ocaml
pants1 has joined #ocaml
pantsd has quit [Read error: 110 (Connection timed out)]
oracle1 has joined #ocaml
fean has joined #ocaml
ulfdoz has joined #ocaml
Hadaka has joined #ocaml
piggybox has joined #ocaml
ulfdoz has quit [anthony.freenode.net irc.freenode.net]
oracle1 has quit [anthony.freenode.net irc.freenode.net]
fean has quit [anthony.freenode.net irc.freenode.net]
Hadaka has quit [anthony.freenode.net irc.freenode.net]
oracle1 has joined #ocaml
fean has joined #ocaml
ulfdoz has joined #ocaml
Hadaka has joined #ocaml
screwt8 has quit [Remote closed the connection]
piggybox_ has quit [Connection timed out]
bluestorm has joined #ocaml
ulfdoz has quit [anthony.freenode.net irc.freenode.net]
oracle1 has quit [anthony.freenode.net irc.freenode.net]
fean has quit [anthony.freenode.net irc.freenode.net]
Hadaka has quit [anthony.freenode.net irc.freenode.net]
screwt8 has joined #ocaml
oracle1 has joined #ocaml
fean has joined #ocaml
ulfdoz has joined #ocaml
Hadaka has joined #ocaml
love-pingoo has joined #ocaml
<flux>
no, but you can do let (@.) a b c = a (b c)
robyonrails has joined #ocaml
krumms has joined #ocaml
<krumms>
hi all - is it possible to nest modules such that I have (for example) Foo.Bar and Foo.Baz in the files Foo/Bar.ml and Foo/Baz.ml?
shawn has quit ["This computer has gone to sleep"]
<flux>
no
<flux>
well, not without intermediate modules such as FooBaz and FooBar which would be brought into module Foo with a module Foo = FooBar -statement
<bluestorm>
hm
<bluestorm>
wouldn't ocaml bar.cmo baz.cmo -pack -o foo.cmo do the job ?
<bluestorm>
krumms: the directory structure won't get automatically replicated in modules
<bluestorm>
but you can nest them
<bluestorm>
i think -pack can be used to replicate the directory hierarchy
love-pingoo has quit ["Connection reset by pear"]
<flux>
hm, that's right, some packages do that, I've never used it
oplalo has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
rubenz has quit ["using sirc version 2.211+KSIRC/1.3.12"]
joshcryer has joined #ocaml
oplalo has left #ocaml []
oplalo has joined #ocaml
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
<krumms>
bluestorm: yeah, that's great. Thanks!
<bluestorm>
you're welcome
<krumms>
is ocaml still under active development?
pants1 has quit [Read error: 110 (Connection timed out)]
pants1 has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
shawn has joined #ocaml
<flux>
yes, not long ago ocaml 3.10.0 was released
kig has quit ["moving"]
Smerdyakov has joined #ocaml
slipstream-- has joined #ocaml
oplalo has left #ocaml []
slipstream has quit [Read error: 110 (Connection timed out)]
screwt8 has quit [Remote closed the connection]
screwt8 has joined #ocaml
Smerdyakov has quit ["Leaving"]
seafoodX_ has joined #ocaml
seafoodX has quit [Read error: 104 (Connection reset by peer)]
Gibbor_Sick has joined #ocaml
eradman has joined #ocaml
leo037 has joined #ocaml
Gibbor_Sick has left #ocaml []
shawn has quit ["This computer has gone to sleep"]
ygrek has joined #ocaml
TFK has joined #ocaml
<TFK>
Howdy folks. Is there a magic function that takes a value of an enumerated type, say "type months = January | ... | December ;;" and return an integer, and vice versa, like C's enum?
thesoko has quit [Remote closed the connection]
<flux>
infact, there IS a magic function that can do just that, but you better avoid it
thesoko has joined #ocaml
<flux>
I think some camlp4 extension that can generated such functions
<flux>
but I just do let int_of_month = function January -> 1 | February -> 2 .. etc
<TFK>
one-time generation or special syntax that gets compiled away?
<flux>
what?
<flux>
camlp4 is involved in the compilation process