adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Upcoming OCaml MOOC: https://huit.re/ocamlmooc | OCaml 4.03.0 release notes: http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
bruce_r has quit [Ping timeout: 240 seconds]
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 264 seconds]
bruce_r has joined #ocaml
Algebr` has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
silver has quit [Quit: rakede]
breitenj has joined #ocaml
Algebr` has joined #ocaml
bruce_r has quit [Ping timeout: 258 seconds]
breitenj has quit [Ping timeout: 264 seconds]
jtmcf has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Ping timeout: 244 seconds]
pierpa has quit [Ping timeout: 255 seconds]
bruce_r has joined #ocaml
jtmcf has joined #ocaml
Sorella has joined #ocaml
gyro has joined #ocaml
<gyro> Is there any way to have an exception of polymorphic type? As in: type exn += AlreadyInMap of 'k val add_but_dont_override: ('k, 'v) map -> 'k -> 'v -> unit
f[x] has quit [Ping timeout: 258 seconds]
<Algebr`> I think there was a stackoverflow answer that indirectly did this
<Algebr`> probably will use a local module
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 276 seconds]
breitenj has joined #ocaml
<Algebr`> anyone used hopper with ocaml code? useful?
breitenj has quit [Ping timeout: 260 seconds]
gyro has quit [Quit: Leaving]
breitenj has joined #ocaml
Denommus has joined #ocaml
<Denommus> anyone there?
breitenj has quit [Ping timeout: 258 seconds]
breitenj has joined #ocaml
Reshi has joined #ocaml
breitenj has quit [Ping timeout: 265 seconds]
M-jimt has quit [Ping timeout: 250 seconds]
evhan` has joined #ocaml
M-jimt has joined #ocaml
vinoski_ has joined #ocaml
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cantstanya has quit [Ping timeout: 250 seconds]
smondet_ has joined #ocaml
Leonidas_ has joined #ocaml
atsampso1 has joined #ocaml
pippijn has quit [Ping timeout: 250 seconds]
mehdib has joined #ocaml
al-maisan_ has joined #ocaml
pippijn has joined #ocaml
alpen- has joined #ocaml
evhan has quit [Ping timeout: 258 seconds]
vinoski has quit [Ping timeout: 258 seconds]
Sorella has quit [Ping timeout: 258 seconds]
al-maisan has quit [Ping timeout: 258 seconds]
mankyKitty has quit [Ping timeout: 258 seconds]
osheeta has quit [Ping timeout: 258 seconds]
rfv has quit [Ping timeout: 258 seconds]
msch has quit [Ping timeout: 258 seconds]
Kakadu2[m] has quit [Ping timeout: 258 seconds]
smondet has quit [Ping timeout: 258 seconds]
adi___ has quit [Ping timeout: 258 seconds]
maker has quit [Ping timeout: 258 seconds]
atsampson has quit [Ping timeout: 258 seconds]
Leonidas has quit [Ping timeout: 258 seconds]
cnu- has quit [Ping timeout: 258 seconds]
chelfi has quit [Ping timeout: 258 seconds]
mehdib_ has quit [Ping timeout: 258 seconds]
alpen has quit [Ping timeout: 258 seconds]
vinoski_ is now known as vinoski
Kakadu2[m] has joined #ocaml
maker1 has joined #ocaml
osheeta has joined #ocaml
cnu- has joined #ocaml
chelfi has joined #ocaml
Sorella has joined #ocaml
adi___ has joined #ocaml
cantstanya has joined #ocaml
<bruce_r> Hey guys can someone tell me how to do this please:
<bruce_r> let f () = (`A : [`A])
mankyKitty has joined #ocaml
<bruce_r> let g () = (f () :> [> `A])
<bruce_r> I want g to return [> `A] and not [`A], but this doesn't work
rfv has joined #ocaml
msch has joined #ocaml
infinity0 has quit [Remote host closed the connection]
reynir has quit [Ping timeout: 250 seconds]
reynir has joined #ocaml
infinity0 has joined #ocaml
breitenj has joined #ocaml
<Drup> replace the second one by
<Drup> let g () = (f () : [` A] :> [> `A])
breitenj has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
<bruce_r> Thanks Drup, that indeed works.
<bruce_r> I wonder why the type is needed here
Heasummn has quit [Quit: Leaving]
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 255 seconds]
ohama has quit [Ping timeout: 264 seconds]
bruce_r has quit [Ping timeout: 250 seconds]
ohama has joined #ocaml
bruce_r has joined #ocaml
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 264 seconds]
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 252 seconds]
MercurialAlchemi has joined #ocaml
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 264 seconds]
tane has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
Reshi has quit [Quit: WeeChat 1.5]
d0nn1e has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
parsnip has joined #ocaml
ggole has joined #ocaml
breitenj has joined #ocaml
Algebr` has joined #ocaml
<Denommus> uh
tmtwd has quit [Ping timeout: 252 seconds]
breitenj has quit [Ping timeout: 258 seconds]
<Denommus> I can't install ocsigen-start
<Denommus> it requires ocsigen-toolkit, which seems to have broken dependencies
tmtwd has joined #ocaml
<Denommus> ah, I had to pin A LOT of other things
soupault has quit [Remote host closed the connection]
Leonidas_ is now known as Leonidas
<Leonidas> Algebr: what is hopper?
<Algebr`> Leonidas: the most amazing disassembler
<Algebr`> Made by a Frenchmen too
bruce_r has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
tmtwd has joined #ocaml
breitenj has joined #ocaml
antranigv has quit [Ping timeout: 244 seconds]
antranigv has joined #ocaml
Simn has joined #ocaml
<Algebr`> its an awesome debugger too
Denommus has quit [Quit: sleeping]
tane has quit [Quit: Leaving]
Algebr` has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
yegods has joined #ocaml
tmtwd has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
tmtwd has quit [Ping timeout: 244 seconds]
yegods has quit [Remote host closed the connection]
tmtwd has joined #ocaml
LiamGoodacre has joined #ocaml
f[x] has joined #ocaml
octachron has joined #ocaml
tmtwd has quit [Ping timeout: 260 seconds]
Algebr` has joined #ocaml
kolko has quit [Quit: ZNC - http://znc.in]
kolko has joined #ocaml
f[x] has quit [Ping timeout: 276 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
silver has joined #ocaml
octachron has quit [Ping timeout: 244 seconds]
zpe has joined #ocaml
soupault has joined #ocaml
tane has joined #ocaml
rand__ has joined #ocaml
sdothum has joined #ocaml
pierpa has joined #ocaml
Algebr`` has joined #ocaml
Algebr` has quit [Ping timeout: 260 seconds]
breitenj has quit [Ping timeout: 260 seconds]
breitenj has joined #ocaml
jbrown has quit [Ping timeout: 265 seconds]
breitenj has quit [Ping timeout: 255 seconds]
breitenj has joined #ocaml
octachron has joined #ocaml
breitenj has quit [Ping timeout: 260 seconds]
breitenj has joined #ocaml
octachron has quit [Quit: Leaving]
breitenj has quit [Ping timeout: 258 seconds]
breitenj has joined #ocaml
martinkl_ has joined #ocaml
jbrown has joined #ocaml
tane has quit [Quit: Leaving]
breitenj has quit [Quit: ZNC - 1.6.0 - http://znc.in]
breitenj has joined #ocaml
Algebr`` has quit [Ping timeout: 244 seconds]
rgrinberg has joined #ocaml
Algebr`` has joined #ocaml
<Leonidas> Algebr: nice, I'll take a look
<Algebr``> ya, its awesome
martinkl_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agarwal1975 has joined #ocaml
_whitelogger has joined #ocaml
bruce_r has joined #ocaml
<tormen> Hmm. I have 2 problems with my Functor where I don't really know how to continue :(
<tormen> Sorry!
<tormen> Now with M1 as well :)
<tormen> My 2 problems (described in the pastebin as well): (a) Signature match "t not included in 'a" .... whaaaaat ? ;) (b) How do I deal with a functor function that can get 2 different inputs (depending on the type of functor involved) ?
jbrown has quit [Ping timeout: 276 seconds]
copy` has joined #ocaml
<Algebr``> what happened with that jabber client, is it still working
<tormen> ... jabber client ?
soupault has quit [Remote host closed the connection]
soupault has joined #ocaml
<Algebr``> hannes made one I thought
<tormen> ah :)
jbrown has joined #ocaml
martinkl_ has joined #ocaml
<Algebr``> wasn't there a way to recreate everything on a switch quickly? like `opam list | opam switch new -R -A 4.02.3 ` would be nice
<Algebr``> or apparenly there was a switch import
soupault has quit [Remote host closed the connection]
soupault has joined #ocaml
seliopou has quit [Quit: whaaaat]
yegods has joined #ocaml
<rgrinberg> Algebr``: i have this little hack i made - https://github.com/rgrinberg/opam-lock
<rgrinberg> ymmv
seliopou has joined #ocaml
tmtwd has joined #ocaml
Algebr`` is now known as Algebr`
tane has joined #ocaml
<Algebr`> now using this pidgin app for jabber, would prefer the OCaml one, what was it called, termline?
<tormen> My first problem now a bit more concise: https://paste.debian.net/hidden/bb4ee178/
<zozozo> tormen: in "val lst : (int32 * 'a) list", you probably don't want 'a
<zozozo> you'd probably need to have a "type m", and then "val lst : (int32 * m) list"
<def`> Algebr`: jackline maybe
<Algebr`> ah right, jackline
<Algebr`> nothing on opam info jackline
shinnya has quit [Ping timeout: 240 seconds]
yegods has quit [Remote host closed the connection]
<Armael> Algebr`: you need to add hannes' xmpp opam repository iirc; cf the jackline github page
<tormen> zozozo: yes! .... re-thinking about it I came to the same conclusion :) Trying it now :))
<tormen> zozozo: thanks :)))
<tormen> zozozo: (I realized: I have this value lst which signature changes between M1 and M2 ... and this I need to encapsulate)
jake__ has joined #ocaml
jake__ has quit [Client Quit]
mekaj has joined #ocaml
mekaj has quit [Client Quit]
govg has quit [Ping timeout: 276 seconds]
<tormen> zozozo: How can I deal with the need to have the need for an optional second type in my Functor ?
<tormen> (like for M1 I only need 1 type, but for M2 I need 2 types)
<tormen> type p_t I only need in the case of the nested version (enum = Nested x)...
f[x] has joined #ocaml
<tormen> (I always need my "t" and in case of nested, I have a parent and I also need /his/ t)
govg has joined #ocaml
jackweirdy has joined #ocaml
<tormen> ... I guess I could set type p_t = t (in case where I don't need the parent type ?) ... but this seems somewhat brute force / ugly ;)
<tormen> Can a Functor take 2 modules as input parameter ? -- something like : module Make_ENUM (M:ENUM_type,P:ENUM_type)
thizanne has joined #ocaml
<zozozo> from what I see, you need the p_t, and afterward, you can always constrain it in the type signature of the module
jbrown has quit [Ping timeout: 255 seconds]
<tormen> zozozo: hmm what would I constrin p_t to in case I don't actually need a parent_type (p_t) ?
<zozozo> then you just don't constain it
tane_ has joined #ocaml
tane is now known as Guest41182
Guest41182 has quit [Killed (weber.freenode.net (Nickname regained by services))]
tane_ is now known as tane
soupault has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 255 seconds]
martinkl_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martinkl_ has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
<Algebr`> tormen: yea, you can give more than one Make_Enum (M: A) (P: B)
zpe has quit [Ping timeout: 276 seconds]
snowshovel has joined #ocaml
chris2 has quit [Quit: trotz alledem!]
picolino has joined #ocaml
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris2 has joined #ocaml
demonimin has quit [Remote host closed the connection]
jbrown has joined #ocaml
unbalanced has joined #ocaml
unbalanced has quit [Client Quit]
tane has quit [Quit: Leaving]
tane has joined #ocaml
zpe has joined #ocaml
cschneid has quit [Ping timeout: 250 seconds]
<tormen> Algebr`: Hah. Nice :) Thanks !!!
<tormen> Is there a way to make printf print an integer in the nice "1_000" format ?
<Algebr`> I think so?
<tormen> printf "%ld" 1l does NOT do the trick ;)
<tormen> How is this syntax called (the 1_000 ? ... I don't know what to search for ;))
<tormen> s/the 1_000 ?/the 1_000/
cschneid has joined #ocaml
<tormen> s/1l/1_000l/ ;)
soupault has joined #ocaml
<Algebr`> hmm, europeans using _ instead of , or . ?
kakadu has joined #ocaml
<flux> I've never seen _ outside programming languages. ' ' has been used. never '.', though.
<chris2> 100.000,99 is german
<Algebr`> I just moved to a country where the , and . are flipped, still getting used to it
martinkl_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martinkl_ has joined #ocaml
kakadu has quit []
kakadu has joined #ocaml
<pierpa> who uses _ uses it just to be neutral wrt , vs .
kakadu has quit []
martinkl_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ocaml
<flux> well, I guess _ makes sense in a programing languages as it results the number being a single token, compared to if ' ' was used
ggole has quit []
MercurialAlchemi has quit [Ping timeout: 260 seconds]
d0nn1e has quit [Ping timeout: 244 seconds]
d0nn1e has joined #ocaml
soupault has quit [Remote host closed the connection]
struktured has joined #ocaml
parsnip has left #ocaml [#ocaml]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
evhan` is now known as evhan
Nahra has quit [Remote host closed the connection]
nicoo has quit [Remote host closed the connection]
tmtwd has joined #ocaml
struktured has quit [Ping timeout: 264 seconds]
jackweirdy has joined #ocaml
f[x] has quit [Ping timeout: 264 seconds]
jackweirdy has quit [Client Quit]
martinkl_ has joined #ocaml
yegods has joined #ocaml
nicoo has joined #ocaml
martinkl_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rand__ has quit [Quit: leaving]
nicoo has quit [K-Lined]
nicoo has joined #ocaml
struktured has joined #ocaml
tane has quit [Quit: Leaving]
Heasummn has joined #ocaml
struktured has quit [Ping timeout: 250 seconds]
struktured has joined #ocaml
yegods has quit [Remote host closed the connection]
struktured has quit [Ping timeout: 276 seconds]
yegods has joined #ocaml
yegods_ has joined #ocaml
yegods has quit [Read error: Connection reset by peer]
NhanH has quit [Ping timeout: 264 seconds]
Sorella has quit [Ping timeout: 264 seconds]
Kakadu2[m] has quit [Ping timeout: 264 seconds]
M-martinklepsch has quit [Ping timeout: 264 seconds]
mbrock has quit [Ping timeout: 264 seconds]
gasche` has joined #ocaml
maufred has quit [Ping timeout: 264 seconds]
gasche has quit [Ping timeout: 264 seconds]
Madars has quit [Ping timeout: 264 seconds]
tobiasBora has quit [Ping timeout: 264 seconds]
_y has quit [Ping timeout: 264 seconds]
mfp has quit [Ping timeout: 264 seconds]
Sorella has joined #ocaml
_y has joined #ocaml
mbrock has joined #ocaml
Kakadu2[m] has joined #ocaml
M-martinklepsch has joined #ocaml
NhanH has joined #ocaml
mfp has joined #ocaml
tobiasBora has joined #ocaml
maufred has joined #ocaml
Madars has joined #ocaml
Simn has quit [Quit: Leaving]
silver has quit [Quit: rakede]
tristero has quit [Ping timeout: 276 seconds]
mrallen1 has quit [Read error: Connection reset by peer]
NhanH has quit [Ping timeout: 260 seconds]
jkni has quit [Ping timeout: 276 seconds]
yunxing has quit [Ping timeout: 265 seconds]
mbrock has quit [Ping timeout: 255 seconds]
jmct has quit [Ping timeout: 244 seconds]
msch has quit [Ping timeout: 255 seconds]
Sorella has quit [Ping timeout: 258 seconds]
oldmanistan_ has quit [Ping timeout: 276 seconds]
rfv has quit [Ping timeout: 255 seconds]
thizanne has quit [Ping timeout: 265 seconds]
NhanH has joined #ocaml
tmtwd has quit [Ping timeout: 265 seconds]
yunxing has joined #ocaml
jkni has joined #ocaml
oldmanistan_ has joined #ocaml
Sorella has joined #ocaml
rfv has joined #ocaml
jmct has joined #ocaml
mrallen1 has joined #ocaml
tristero has joined #ocaml
smondet_ has quit [Ping timeout: 276 seconds]
mbrock has joined #ocaml
msch has joined #ocaml
yegods_ has quit [Remote host closed the connection]
smondet has joined #ocaml
smondet has quit [Ping timeout: 255 seconds]
smondet has joined #ocaml