lordkryss has quit [Quit: Connection closed for inactivity]
BitPuffin has joined #ocaml
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
antegallya has quit [Ping timeout: 255 seconds]
nicoo has joined #ocaml
bytbox has joined #ocaml
rgrinberg has joined #ocaml
thomasga has quit [Quit: Leaving.]
travisbrady has quit [Quit: travisbrady]
NoNNaN has joined #ocaml
AltGr has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
jonludlam has quit [Quit: Coyote finally caught me]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ocaml
Cyanure has quit [Remote host closed the connection]
NoNNaN has quit [Remote host closed the connection]
travisbrady has joined #ocaml
alkoma has quit [Ping timeout: 256 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
shinnya_ has quit [Ping timeout: 264 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
scythe- has joined #ocaml
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
travisbrady has quit [Quit: travisbrady]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
travisbrady has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
oscar_toro has joined #ocaml
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
q66 has quit [Quit: Leaving]
myyst has quit [Read error: Connection reset by peer]
BitPuffin has quit [Ping timeout: 244 seconds]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
alkoma has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
tnguyen has quit [Quit: tnguyen]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
oriba has quit [Quit: Verlassend]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
srcerer has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
badkins has quit []
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
Thooms has quit [Ping timeout: 265 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
marynate has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
skchrko_ has joined #ocaml
Yoric has joined #ocaml
skchrko has quit [Ping timeout: 240 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
travisbrady has quit [Quit: travisbrady]
Yoric has quit [Ping timeout: 265 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
darkf has joined #ocaml
travisbrady has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
samrat has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
tnguyen has joined #ocaml
myyst has joined #ocaml
enitiz has quit [Quit: Leaving]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
tnguyen has quit [Quit: tnguyen]
tnguyen has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
travisbrady has quit [Quit: travisbrady]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
kapil__ has joined #ocaml
tnguyen has quit [Quit: tnguyen]
samrat has quit [Ping timeout: 245 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
samrat has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
badon has joined #ocaml
myyst has joined #ocaml
vincom2 has quit [Ping timeout: 245 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
vincom2 has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
samrat has quit [Quit: Computer has gone to sleep.]
myyst has joined #ocaml
MrScout has quit [Ping timeout: 265 seconds]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
manizzle has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
NoNNaN has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
matason has joined #ocaml
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
nullcat_ has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
samrat has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
samrat has quit [Quit: Computer has gone to sleep.]
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
myyst has quit [Read error: Connection reset by peer]
myyst has joined #ocaml
samrat has joined #ocaml
myyst has quit [Ping timeout: 244 seconds]
myyst has joined #ocaml
ggole has joined #ocaml
ygrek has joined #ocaml
cdidd has quit [Ping timeout: 256 seconds]
flx has quit [Quit: leaving]
kdef has quit [Quit: peace]
rom1504 has quit [Ping timeout: 272 seconds]
govg has quit [Ping timeout: 245 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ocaml
govg has joined #ocaml
rom1504 has joined #ocaml
cdidd has joined #ocaml
kapil__ has joined #ocaml
axiles has joined #ocaml
natrium1970 has joined #ocaml
keen__________24 has joined #ocaml
<natrium1970>
Iām not sure how to introduce polymorphism in a certain situation. http://pastebin.com/Vp8z3Bsm Essentially, I want users of this module to be able to use whatever type they want in the place of ā???ā. Is there a simple way to do this, or is this something that requires functors?
keen__________23 has quit [Ping timeout: 256 seconds]
<dmbaturin>
natrium1970: "type 'a some_variant = A of (string -> 'a)" may work, or I'm missing something.
<natrium1970>
That works for the definition on the first two lines, but ātype t = { a : some_type )ā fails with āunbound constructor some_typeā
<natrium1970>
Oops. I changed something. Let me try again.
oscar_toro has quit [Ping timeout: 264 seconds]
mcc has joined #ocaml
<natrium1970>
That seems to work so far. There are several types that are based on the type āa some_variant, though, and from what I can tell, since some_variant has a type parameter āa, any types that include some_variant as a field will also need a type paramteter. So there will be lots of āa floating around the code. I was looking for a similar example, but I donāt see any that are quite like this.
ygrek has quit [Ping timeout: 244 seconds]
struktured has quit [Ping timeout: 244 seconds]
struktured has joined #ocaml
kakadu has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
mcc has quit [Quit: This computer has gone to sleep]
<ggole>
natrium1970: can't really have polymorphism without type constructor arguments
<natrium1970>
I know. Itās just that now all the data structures that are indirectly polymorphic need type parameters. I thought maybe I was doing something wrong. Maybe functors would be a better idea. This isnāt even the project I started on. I keep going off on tangents and not getting anything done (except learning OCaml more).
<natrium1970>
And itās nice to see you, ggole. You have been very helpful to me.
<ggole>
What do you mean, indirectly polymorphic?
<natrium1970>
Type t1 is polymorphic. Type t2 has a field of type t1. Type t3 has a field of type t2.
<ggole>
If you are just using a polymorphic type you can plug in whatever you like.
<natrium1970>
I donāt understand.
<ggole>
Hmm
<ggole>
I simply meant that you can use t1 with whatever argument type is necessary
<ggole>
eg, type t2 = int t1
Hannibal_Smith has quit [Remote host closed the connection]
<ggole>
If you have no concrete type with which to do that, then I suppose you introduce 'a everywhere
<natrium1970>
Yes, the introducing āa everywhere is what Iām doing. Itās a work in progress right now. The root of the polymorphism is that the user of the module will supply a function that converts a string into a user-defined type. Nothing else is currently polymorphic. If I keep getting bogged down in all this fun, who knows.
Intensity has quit [Remote host closed the connection]
samrat has quit [Quit: Computer has gone to sleep.]
contempt has quit [Disconnected by services]
contempt has joined #ocaml
mengu has joined #ocaml
mengu has joined #ocaml
mengu has quit [Changing host]
alkoma has quit [Ping timeout: 255 seconds]
samrat has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
chinglish has joined #ocaml
natrium1970 has quit [Quit: natrium1970]
funtik_ has quit [Ping timeout: 244 seconds]
funtik_ has joined #ocaml
thomasga has joined #ocaml
rossberg has joined #ocaml
tautologico has quit [Quit: Connection closed for inactivity]
samrat has quit [Quit: Computer has gone to sleep.]
struktured has quit [Ping timeout: 244 seconds]
samrat has joined #ocaml
alkoma has joined #ocaml
alkoma has quit [Ping timeout: 256 seconds]
mort___ has joined #ocaml
larhat has joined #ocaml
Simn has joined #ocaml
iZsh has quit [Ping timeout: 264 seconds]
hnrgrgr_ is now known as hnrgrgr
kakadu has quit [Ping timeout: 245 seconds]
kakadu_ has joined #ocaml
iZsh has joined #ocaml
fafounet has joined #ocaml
larhat has quit [Quit: Leaving.]
skchrko_ has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
fafounet has quit [Ping timeout: 245 seconds]
Simn has quit [Read error: Connection reset by peer]
bugabinga has quit [Remote host closed the connection]
bugabinga has joined #ocaml
Simn has joined #ocaml
jonludlam has joined #ocaml
antegallya has joined #ocaml
nojb has joined #ocaml
<nojb>
how do I link to a type definition in an ocamldoc comment ?
vanila has joined #ocaml
<vanila>
hello
<vanila>
im trying to learn ocaml from Real World Ocaml book