<aantron>
Drup: thanks, appended to massive to-do list :p
<Drup>
^^
<dmbaturin>
aantron: SML uses actual o for composition, but its approach to infix operators when any symbols are allowed and infixness and associativity is defined in the module is problematic when it comes to using modules without opening them. :)
<aantron>
yes, though i never ran into this problem personally, i avoided defining infix operators in SML always :)
<dmbaturin>
Drup: Looks interesting indeed.
<dmbaturin>
Actually, I wonder why composition was not added to pervasives along with @@ and |>...
<Drup>
because the composition function in ocaml doesn't work well
<Drup>
it craps out on labels and cause issues with polymorphism (because of value restriction)
d0nn1e has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ocaml
<cheater>
ok so both @ and % are actually used elsewhere
<cheater>
@ is list concat and % is well... modulo i guess?
<cheater>
so we decided to name it <-<
<Drup>
% is not modulo
<cheater>
it's something, right?
<Drup>
No in the stdlib
<cheater>
oh really hmm hmm
snhmib has quit [Ping timeout: 250 seconds]
xorpse has quit [Ping timeout: 260 seconds]
xorpse has joined #ocaml
AlexDenisov has quit [Remote host closed the connection]
snhmib has joined #ocaml
AlexDenisov has joined #ocaml
Simn has quit [Quit: Leaving]
fraggle_ has quit [Ping timeout: 260 seconds]
xorpse has quit [Ping timeout: 264 seconds]
fraggle_ has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
hunteriam has joined #ocaml
wu_ng has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
zirman has quit [Remote host closed the connection]
yaewa has joined #ocaml
moei has quit [Ping timeout: 256 seconds]
jlongster has joined #ocaml
sh0t has quit [Remote host closed the connection]
xorpse has joined #ocaml
snhmib has quit [Ping timeout: 256 seconds]
smondet has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
NJBS has quit [Quit: Catastrophic failure.]
snhmib has joined #ocaml
wtetzner has quit [Remote host closed the connection]
Algebr has quit [Ping timeout: 264 seconds]
mfp has quit [Ping timeout: 268 seconds]
snhmib has quit [Ping timeout: 268 seconds]
ziyourenxiang has joined #ocaml
snhmib has joined #ocaml
jlongster has joined #ocaml
scitesy has joined #ocaml
infinity0 has joined #ocaml
noddy has quit [Ping timeout: 258 seconds]
yaewa has quit [Quit: Leaving...]
moei has joined #ocaml
smondet has quit [Ping timeout: 240 seconds]
wtetzner has joined #ocaml
wtetzner has quit [Ping timeout: 256 seconds]
snhmib has quit [Ping timeout: 256 seconds]
scitesy has quit [Remote host closed the connection]
nomicflux has quit [Quit: nomicflux]
zirman has quit [Remote host closed the connection]
snhmib has joined #ocaml
noddy has joined #ocaml
ygrek_ has quit [Ping timeout: 252 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
jave has quit [Ping timeout: 256 seconds]
newbie07 has joined #ocaml
snhmib has quit [Read error: Connection reset by peer]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
noddy has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
frug72 has joined #ocaml
hunteriam has quit [Quit: Connection closed for inactivity]
xorpse has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 268 seconds]
snhmib has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flux>
here's my contribution: #!/bin/sh sed 's/^PKG \([^.]*\)$/\1/; t; d' .merlin
<flux>
used like: opam install $(merlin-packages)
<flux>
works with one of my projeect at least :-)
<flux>
leonidas, nosetup works like a charm!
wu_ng has quit [Ping timeout: 264 seconds]
<Leonidas>
flux: cool, I'll add the remaining topkg cruft and will submit to OPAM
<Leonidas>
I could've parsed it with regexes, but then again I'd like to parse _tags as well, so Angstrom might be useful
<flux>
could have maybe copied parser from merlin?
reynir has quit [Read error: Connection reset by peer]
reynir has joined #ocaml
<Leonidas>
flux: I wanted to use it, but Merlin has no lib and considering it is so simple I didn't want to copy it (with all the "keeping it in sync with upstream" nightmare)
<Leonidas>
Maybe I can convince def` to expose that API :-)
ocaml330 has joined #ocaml
<ocaml330>
how would I add a show function to a Node_set module made using module Node_set = Set.Make(Node) ?
noddy has quit [Ping timeout: 260 seconds]
<thizanne>
ocaml330: you wouldnt add it to the module
<thizanne>
you cannot modify the module, you should define the function outside
<ocaml330>
oh no, but why? isn't it like part of the module
<thizanne>
(e.g. using Node_set.iter)
<ocaml330>
I thought it would be Node_set.show node_set
<ocaml330>
i sett
<ocaml330>
i see
<ocaml330>
ok
<ocaml330>
No better way to do that?
<thizanne>
no other way :)
<thizanne>
but you can do something like :
<thizanne>
module SetWithShow = struct include Node_set let show = ... end
<thizanne>
that defines another module which supersedes Node_set
<thizanne>
(but note that show it still defined outside node_set, in particular you can't access the representation of sets if it's not exported)
AlexDenisov has joined #ocaml
wu_ng has joined #ocaml
ocaml330 has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 256 seconds]
Flerex has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
fraggle_ has quit [Quit: -ENOBRAIN]
fraggle_ has joined #ocaml
smondet has joined #ocaml
Flerex has joined #ocaml
jlongster has joined #ocaml
pierpa has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d0nn1e has quit [Ping timeout: 260 seconds]
Simn has joined #ocaml
d0nn1e has joined #ocaml
jlongster has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larhat has quit [Quit: Leaving.]
marsam has joined #ocaml
larhat has joined #ocaml
jlongster has joined #ocaml
nomicflux has joined #ocaml
al-damiri has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nomicflux has quit [Quit: nomicflux]
MightyJoe has quit [Remote host closed the connection]
cyraxjoe has joined #ocaml
sh0t has quit [Ping timeout: 258 seconds]
sh0t has joined #ocaml
mfp has joined #ocaml
cyraxjoe has quit [Remote host closed the connection]
cyraxjoe has joined #ocaml
Flerex has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srcerer has joined #ocaml
srcerer has quit [Client Quit]
srcerer has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
jlongster has joined #ocaml
AlexDenisov has joined #ocaml
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Read error: Connection reset by peer]
wu_ng has quit [Ping timeout: 256 seconds]
wu_ng has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
infinity0 has quit [Ping timeout: 264 seconds]
ygrek_ has joined #ocaml
infinity0 has joined #ocaml
hcarty has joined #ocaml
igt0 has quit [Quit: Connection closed for inactivity]
trepta has joined #ocaml
<hcarty>
Is it possible to use a first-class module with multiple type substitutions? The local module equivalent to: module M : S with type a = t1 with type b = t2
<hcarty>
A direct conversion gives an error
<average>
sounds like a digression
Sorella has joined #ocaml
<Drup>
hcarty: with type .. and type ...
<hcarty>
Drup: Aaaaaah
<hcarty>
Drup: Thank you! I knew there was some syntax difference I was missing
marsam has quit [Read error: Connection reset by peer]
awal has joined #ocaml
wu_ng has quit [Read error: Connection reset by peer]
Flerex has quit [Read error: Connection reset by peer]
<awal>
Hi. I am using cohttp to make a simple GET request. The server replies with gzip encoded body. How do I decode that to a utf8 encoded string?
wu_ng has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
hcarty has quit [Quit: WeeChat 1.5]
<seliopou>
Leonidas: thanks for lookin' out
kakadu has joined #ocaml
_2can has joined #ocaml
Anarchos has joined #ocaml
FreeBirdLjj has joined #ocaml
nomicflux has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
<Anarchos>
i am looking for the book 'modern compiler in ml' from appel
<Anarchos>
Leonidas well i would prefer a pdf version ....
<Leonidas>
its not a good book though
<Leonidas>
I used the java version, was not overly great either
<Anarchos>
Leonidas i am looking for the ml version
<awal>
Is there some simple way to access documentation for any package? I kind of feel like I am missing something really basic about documentation story in ocaml