<vsiles>
however when I `opam show ppxlib.0.15.0` I see "ocaml-migrate-parsetree" {>= "1.5.0" & < "2.0.0"}
<vsiles>
in the depends list...
<vsiles>
I'm confused
<oni-on-ion>
hmmm
<oni-on-ion>
i just opam'd 4.11.1 yesterday, then js_of_ocaml, no problems
<vsiles>
we're stuck to 4.07.1 atm, so I'm carefull in the update. The plan is to migrate slowly to a more recent version
<vsiles>
and I'm trying to update all the libs I can, then update the compiler (to 4.09.1 first, most probably)
<vsiles>
I'll try to add explicit ppxlib.0.15.0 in our list of required packages, see if that leads to a better error
<vsiles>
ok, the info was quite wrong, but there was an dependency issue. Fixing this
<oni-on-ion>
ah, hmm
<vsiles>
it should have reported ppx_hash rather than ocaml-migrate-parsetree
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
borne has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
vicfred has quit [Quit: Leaving]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
steenuil has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
reynir has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
reynir has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
ggole has joined #ocaml
hannes_ is now known as hanne
hanne is now known as hannes
mfp has joined #ocaml
reynir has quit [Remote host closed the connection]
reynir has joined #ocaml
waleee-cl has joined #ocaml
<d_bot>
<Criss> lets say i have a list of lists of numbers, basically like a matrix.
<d_bot>
<Criss> how do i write a function to check whether all the inner lists are of the same length.
<d_bot>
<Criss> I am confused 😦
<Fardale>
What are you confused about?
shawnw has quit [Quit: Leaving]
shawnw has joined #ocaml
<vsiles>
@Criss one way would be to first compute the length of all inner lists, and then check they are all equal (to the first one for example). What is blocking you ?
<vsiles>
(obviously you can do both in one pass, just unsure what you're problem is)
jbrown has quit [Ping timeout: 272 seconds]
<gahr>
how I would do it
<gahr>
let all_same = function | [] -> true | x :: xs -> List.(for_all (fun e -> length x = length e) xs)
<gahr>
hopefully the compiler will evaluate length x once only?
<Armael>
I think you need to let-bind `length x` outside of the List.for_all for that
<gahr>
shame :(
<gahr>
let all_same = function | [] -> true | x :: xs -> List.(let l1 = length x in for_all (fun e -> l1 = length e) xs)
<gahr>
good enough
jbrown has joined #ocaml
FreeBirdLjj has joined #ocaml
<octachron>
you can also use List.compare_length_with for maximal premature optimization.
<Armael>
TIL about this function
<gahr>
nice wasn't aware of it
Haudegen has quit [Quit: Bin weg.]
<d_bot>
<Kate> vsilies: are you using opam 2.1 by any chance?
<d_bot>
<Kate> vsiles*
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
<vsiles>
let me check that
<vsiles>
2.0.1
Anarchos has joined #ocaml
ygrek has joined #ocaml
DanC has quit [Remote host closed the connection]
DanC has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
<reynir>
Does Sys (or Unix) not offer unsetenv?
tvn948 has joined #ocaml
borne has quit [Ping timeout: 260 seconds]
tvn948 has quit [Client Quit]
tvn948 has joined #ocaml
tvn948 has quit [Client Quit]
Tuplanolla has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
shawnw has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Ping timeout: 265 seconds]
Haudegen has quit [Quit: Bin weg.]
narimiran has joined #ocaml
hnOsmium0001 has joined #ocaml
ggole has quit [Quit: Leaving]
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
amiloradovsky has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
motherfsck has quit [Remote host closed the connection]
motherfsck has joined #ocaml
vicfred has joined #ocaml
decentpenguin has quit [Ping timeout: 260 seconds]
decentpenguin has joined #ocaml
tane has joined #ocaml
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 260 seconds]
<ygrek>
@reynir, extunix offers
Anarchos has joined #ocaml
borne has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
<d_bot>
<craigfe> inkbottle: this is typically achieved by adding a `pin-depends` field for some high (and unreleased) version – normally `dev` – then constraining to use that version
<d_bot>
<craigfe> A package can't be released to opam in that state though