digitalcold8 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
env__ has joined #ocaml
env__ has quit [Ping timeout: 244 seconds]
env__ has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
notnotdan has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 276 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 265 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
env__ has joined #ocaml
dhil has joined #ocaml
quipa has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
dhil has quit [Ping timeout: 268 seconds]
Jesin has joined #ocaml
Bronsa has quit [Ping timeout: 268 seconds]
vbmithr has joined #ocaml
dfgg18 has joined #ocaml
dfgg18 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
silver has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 256 seconds]
env__ has joined #ocaml
dhil has joined #ocaml
<reynir>
Can I get the transitive dependencies of a package somehow?
env__ has quit [Ping timeout: 248 seconds]
Bronsa has joined #ocaml
<theblatte>
reynir: not really, no
<reynir>
`opam list --recursive --required-by foo.x.y.z` seems to work -- if you don't specify version then it seems to list dependencies for all versions of foo :/
<reynir>
Is there syntax for saying 'latest version'?
jaar has quit [Ping timeout: 255 seconds]
env__ has joined #ocaml
<theblatte>
reynir: wow, my bad, I had looked before and didn't remember finding anything like this...
manas has joined #ocaml
<reynir>
theblatte: no worries, I sometimes can't find things in the opam help pages either :-)
manas has left #ocaml [#ocaml]
env__ has quit [Ping timeout: 268 seconds]
psacrifice has joined #ocaml
env__ has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
dhil has quit [Ping timeout: 264 seconds]
env__ has quit [Ping timeout: 260 seconds]
jaar has joined #ocaml
env__ has joined #ocaml
stux|RC-- has joined #ocaml
stux|RC has quit [Ping timeout: 245 seconds]
env__ has quit [Ping timeout: 245 seconds]
env__ has joined #ocaml
_andre has joined #ocaml
silver_ has joined #ocaml
silver has quit [Ping timeout: 240 seconds]
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
psacrifice has quit [Remote host closed the connection]
spew has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
cryptocat1094 has joined #ocaml
env__ has joined #ocaml
haved has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
ptx022 has joined #ocaml
ptx022 has quit [Remote host closed the connection]
Fare has joined #ocaml
haved has quit [Quit: Page closed]
haved has joined #ocaml
haved is now known as havedB
neatonk has quit [Ping timeout: 276 seconds]
env__ has joined #ocaml
havedB has quit [Quit: Page closed]
haved has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
dakk has quit [Remote host closed the connection]
env__ has joined #ocaml
<haved>
Hi, I was wondering if there is some nice way of aliasing a type in such a way that you get a new type with explicit conversions between them? I have two aliases for int*int that I want the type system to keep separate.
<mrvn>
make them private or abstract
env__ has quit [Ping timeout: 260 seconds]
haved has quit [Quit: Page closed]
<mrvn>
BRAND NEW * strawberry cented filament. For those sweet smells while you print.
<mrvn>
ups
<companion_cube>
c
<companion_cube>
c'mon mrvn, we don't take kindly on spammers around here
<mrvn>
companion_cube: hey, if you would buy that I can also sell you a bridge in Brooklyn.
env__ has joined #ocaml
<companion_cube>
no thanks :p
<reynir>
With our IRC ad service you can reach a global audience of OCaml programmers with extraordinary engagement rates!
<companion_cube>
heh
env__ has quit [Ping timeout: 260 seconds]
<companion_cube>
smallprint: engagement will be 100% hatred towards the advertised thing
<reynir>
:D
<mrvn>
Get our new core library for free. For only $19.99 + VAT we ship you the source completly free with all mli files (Batteries not included).
<benzrf>
does ocaml have something like rust's "if let"
<benzrf>
oh wait i guess you can just do a match and put () in the fail branch
<benzrf>
still a little less ergonomic tho :v
<reynir>
how does if let work
<benzrf>
well... it's basically a match with () in the fail branch :)
<benzrf>
in rust it looks like: if let Some foo = bar {do some shit with foo}
<reynir>
Ah, so if bar doesn't match Some foo then unit?
<benzrf>
yea
<reynir>
maybe you could make a ppx to add a final | _ -> () case :P
<benzrf>
i dont know anything about ppx yet
env__ has quit [Ping timeout: 265 seconds]
<reynir>
so, you could write »match%iflet bar with Some foo -> do some shit with foo« instead of »match bar with Some foo -> do some shit with foo | _ -> ()«
<thizanne>
yeah we don't have this, on the other hand we probably use the unit type a lot less than rust
<thizanne>
or if you're using this only on options, you can define your own combinator
<reynir>
or probably even »let%if Some foo = bar in do some shit with foo«
<Drup>
Doesnt "let if" also allows an "else" branch ?
ygrek has quit [Ping timeout: 248 seconds]
<benzrf>
oh yeah it does
<thizanne>
but then it's just a match ?
<benzrf>
yeah, i think ppl tend to use matches more than if lets with elses
<benzrf>
although - you can do else if let and match on a different thing from the original
<benzrf>
whereas a multi-clause match can only match on the same value in each branch
<thizanne>
that's a nested match ?
<benzrf>
yeah, but it doesnt require you to nest your indentation :)
<thizanne>
but yeah I get your point it nests more nicely
env__ has joined #ocaml
webshinra_ has joined #ocaml
webshinra has quit [Read error: Connection reset by peer]
<benzrf>
i tried writing some imperative code just now and i forgot several times that in ocaml we don't have () -> A ~ A
<benzrf>
>.>
webshinra_ has quit [Remote host closed the connection]
webshinra_ has joined #ocaml
<benzrf>
rust also has while let which is neat
dhil has quit [Ping timeout: 260 seconds]
<benzrf>
why doesnt List.fold_right take the list as its last argument? that seems suboptimal for partial application
<companion_cube>
yeah it's messy
env__ has quit [Ping timeout: 248 seconds]
env__ has joined #ocaml
<benzrf>
reading real world ocaml is reminding me how useless texts like this are without exercises
<reynir>
Hmm - when you have a match expression, it's not possible to disable warning 11 (unused match case) for a single match case but only the whole match expression?
<reynir>
benzrf: oh yea, that too
<reynir>
Sometimes you see »let _ = ..." at the toplevel
pierpa has joined #ocaml
Denommus has quit [Remote host closed the connection]
env__ has joined #ocaml
<sapristi>
or what build system do people use that easily integrates tests ?
rohan10 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<Drup>
benzrf: a maybe clearer way to say what thizanne was trying to explain is that the information has to be there anyway because it's necessary for the GC
<Drup>
(and other operations in the runtime)
<benzrf>
yeah
<Drup>
and polymorphic compare just happen to exploit those
<benzrf>
:)
<Drup>
But it's nowhere near what Typable gives you, in particular
env__ has joined #ocaml
FreeBirdLjj has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
<benzrf>
i'd imagine not
env__ has quit [Ping timeout: 268 seconds]
<reynir>
ah, I should have named it ppx_let-if, shouldn't I
env__ has joined #ocaml
env__ has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 248 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
pierpal has quit [Ping timeout: 268 seconds]
spew has quit [Quit: Connection closed for inactivity]
kakadu has quit [Remote host closed the connection]
env__ has joined #ocaml
coventry has joined #ocaml
<coventry>
Anyone have an example of using the cors module with ocsigen? If I put <cors/> inside the <server> stanza, I get `Fatal - Error in configuration file: tag <cors> unexpected inside <server>`. If I put it in the <ocsigen> stanza outside <server>, I get a syntax error.
env__ has quit [Ping timeout: 240 seconds]
tobiasBora has joined #ocaml
coventry has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 248 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 248 seconds]
tizoc has joined #ocaml
Haudegen has joined #ocaml
sapristi_ has joined #ocaml
sapristi has quit [Ping timeout: 276 seconds]
env__ has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
sapristi_ has quit [Quit: Leaving]
glass has left #ocaml [#ocaml]
theglass has joined #ocaml
Sousapro9 has joined #ocaml
Sousapro9 has quit [Killed (Sigyn (Spam is off topic on freenode.))]