Ched has quit [Read error: 60 (Operation timed out)]
travisbrady has quit []
jamii has joined #ocaml
alexyk has joined #ocaml
Ched has joined #ocaml
AxleLonghorn has joined #ocaml
alexyk has quit []
Komar_ has quit [Read error: 60 (Operation timed out)]
sgnb has quit [Remote closed the connection]
sgnb has joined #ocaml
travisbrady has joined #ocaml
AxleLonghorn has left #ocaml []
<travisbrady>
I'm trying to install ocaml-bitstring but it dies with "checking for camlp4of.opt... no configure: error: You must have camlp4 installed" despite the fact that i have camlp4 installed
<travisbrady>
$ which camlp4 /usr/bin/camlp4
thelema has quit [Read error: 60 (Operation timed out)]
sporkmonger has quit ["Poof!"]
willb has joined #ocaml
alexyk has joined #ocaml
jm has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
<travisbrady>
i needed camlp4-extras which i was able to install via apt-get if anyone cares
alexyk has quit []
ikaros has joined #ocaml
thelema has joined #ocaml
Yoric[DT] has joined #ocaml
jmou has joined #ocaml
Camarade_Tux has joined #ocaml
jm has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has quit [Read error: 60 (Operation timed out)]
jeanbon has joined #ocaml
jeanbon has quit [Client Quit]
willb has quit [Read error: 110 (Connection timed out)]
ikaros_ has joined #ocaml
ikaros has quit [Read error: 104 (Connection reset by peer)]
m3ga has quit ["disappearing into the sunset"]
ikaros_ has quit [Read error: 104 (Connection reset by peer)]
ikaros_ has joined #ocaml
jeremiah has quit [Read error: 110 (Connection timed out)]
seafood has quit []
rAphael has joined #ocaml
schme has joined #ocaml
hkBst has joined #ocaml
smimou has joined #ocaml
ikaros_ has quit ["Leave the magic to Houdini"]
angerman has joined #ocaml
jamii has quit [Remote closed the connection]
jamii has joined #ocaml
rwmjones has quit [Remote closed the connection]
rwmjones_afk is now known as rwmjones
jeanbon has joined #ocaml
Asmadeus has quit ["poof"]
Asmadeus has joined #ocaml
komar_ has joined #ocaml
rjack has joined #ocaml
jamii_ has joined #ocaml
jamii has quit [Read error: 113 (No route to host)]
rjack has quit ["leaving"]
noj has quit [hubbard.freenode.net irc.freenode.net]
rumbleca has quit [hubbard.freenode.net irc.freenode.net]
haelix has quit [hubbard.freenode.net irc.freenode.net]
mattam has quit [hubbard.freenode.net irc.freenode.net]
Demitar has quit [hubbard.freenode.net irc.freenode.net]
yziquel has quit [Remote closed the connection]
mattam has joined #ocaml
noj has joined #ocaml
rumbleca has joined #ocaml
Demitar has joined #ocaml
smimou has quit ["bli"]
komar__ has joined #ocaml
komar_ has quit [Read error: 110 (Connection timed out)]
jmou has quit [Remote closed the connection]
jmou has joined #ocaml
jmou is now known as julm
itewsh has joined #ocaml
Associat0r has joined #ocaml
blAckEn3d has joined #ocaml
<blAckEn3d>
hi, is an operator defined in a module visible outside that module (it's added to the module interface)?
<rAphael>
yes
<rAphael>
but is it's an infix operator it's syntactically weird...
<blAckEn3d>
MoudleName.op_name
<blAckEn3d>
something like this?
<rAphael>
I'm not sure you can use it in an infix way...
<blAckEn3d>
oh
<rAphael>
Module_name.(op_name) arg1 arg2
<blAckEn3d>
okay
<blAckEn3d>
that sucks :)
<blAckEn3d>
thanks
<rAphael>
you can do :
<rAphael>
let ( op_name ) = M.( op_name )
<tsuyoshi>
hmm.. I can't get that to work
<tsuyoshi>
module Foo = struct let (+) = print_endline "foo" end
<tsuyoshi>
Foo.(+) ();;
<tsuyoshi>
This expression is not a function, it cannot be applied
<rAphael>
an infix op with only one argument ???
<tsuyoshi>
oh I'm doing it wrong
<tsuyoshi>
ha
<rAphael>
# module M = struct let (!!) = ( + ) end ;;
<rAphael>
# M.(!!) 3 4 ;;
<tsuyoshi>
I actually set the infix op to zero arguments
<tsuyoshi>
i.e. not a function at all
<rAphael>
yes...
<rAphael>
I think the "good" way is "let ( op_name ) = Module_name.( op_name ) "
<blAckEn3d>
okay, thanks :)
<tsuyoshi>
the good way would be not to write modules like that
<blAckEn3d>
@tsuyoshi, modules that define operators?
<tsuyoshi>
yeah.. unless you're going to just open them
<blAckEn3d>
if I have some operator that's used a lot e.g. like the ($) in haskell I should define it in every single module that I use it in?
<blAckEn3d>
that's not right
<tsuyoshi>
no I mean you should open the module then
<blAckEn3d>
but I open it
<rAphael>
if you open it, you can use infix operators
<tsuyoshi>
well then you don't need the Module.() syntax at all
schme has quit [Read error: 113 (No route to host)]