<Algebr>
is that a merlin error or a compiler error
<seangrove>
merlin
<Algebr>
kill merlin, try restart
<Enjolras_>
looks like the syntax error is cascadind from another part of the code
<Enjolras_>
are you sure you converted all the file to ppx
<Enjolras_>
like, don't you have a lwt foo = blah in earlier ?
<seangrove>
Enjolras_: Not 100%, no. But refmt works now, whereas it was breaking earlier, so I assume there's no camlp4 left
<seangrove>
Nah, I put that at the top of the file
<seangrove>
Algebr: Running M-x merlin-restart-process doesn't have any effect
<seangrove>
merlin-kill-instance + merlin-restart-process ends up with the same errors
<Enjolras_>
where does this message come from ? i've never seen precise syntax error like this
<Enjolras_>
maybe you are usin reason merlin with ocaml code ?
<Algebr>
ah yea, merlin_extend or something
<seangrove>
Enjolras_: Yeah, I wonder if there's some camlp4 reference somewhere around
<Enjolras_>
something like that since you are talking about refmt
<seangrove>
Enjolras_: Nah, not using reason now, just noticed that it didn't work before, is working now
<Enjolras_>
(i don't know reason very well)
ggole__ has joined #ocaml
darkf_ has joined #ocaml
<seangrove>
Ok, `make tests` fails with a "Syntax error" as well
<adrien>
mfp, def` : hmmm, true, that wouldn't be serializable; thanks for pointing that up! proves I'll need to spend a bit more time on the question :)
<Enjolras_>
that doesn' look like the usual ocaml error in any case. It would have been "syntax error"
<Enjolras_>
Drup: didn't get how to use that to iterate on the structure, or inspect the precense of members. It looks ore like marshal, with a string -> 'a, but when you expect 'a to have a schema
<Drup>
yes, it's exactly like marshal
<Enjolras_>
I was more refering to something like yosjon where you can visit the json hierarchy
<Enjolras_>
but actually, yojson is fine
<Drup>
well
<Drup>
json objects are javascript objects in javascript
<Drup>
so, you can access things as javascript properties, with ##.
<Enjolras_>
ah. Makes sense.
seangrove has quit [Ping timeout: 260 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
walter|r has joined #ocaml
ztennix has quit [Ping timeout: 276 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Ping timeout: 276 seconds]
amnn_ has joined #ocaml
seangrove has joined #ocaml
amnn has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
ril has joined #ocaml
seangrove has quit [Remote host closed the connection]
seangrove has joined #ocaml
ygrek has joined #ocaml
FreeBird_ has quit [Remote host closed the connection]
frefity has joined #ocaml
<frefity>
Hi, I have a quick question. If I create a custom type, "type age = int", how can I create a value of that type?
amnn_ has quit [Read error: Connection reset by peer]
<frefity>
I know I could say "let my_age:age = 21"
amnn has joined #ocaml
amnn has quit [Read error: Connection reset by peer]
<Drup>
let my_age = 21
<Drup>
your type is not really a custom type, it's just an alias
amnn has joined #ocaml
<frefity>
Ok, I think I see the problem. In my actual code I have "type nanoseconds = int64", but as far as I can tell there isn't a literal way to create an int64, is that right?
<Drup>
sure, 4L
<frefity>
ah, great, thanks :)
<frefity>
It's these little things when learning a new language :)
<Drup>
(you don't need literals though, Int64.of_int works just fine
<frefity>
Sure, but I was hoping there was a shorter way
<frefity>
Thanks. I'm working on my first ocaml project now and I'm really enjoying it
<adrien>
Int64.of_int has one less bit available however :P
<adrien>
that said, for nanoseconds...
Simn has joined #ocaml
<frefity>
In this case it's used to specify network timeouts.. It's nanoseconds since that's the granularity used by Go (which the server is written in)
mistermetaphor has quit [Remote host closed the connection]
<Enjolras_>
frefity: very nice. Is it opensource ?
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermetaphor has joined #ocaml
seangrove has quit [Ping timeout: 246 seconds]
<Enjolras_>
strongly related there is already okafka btw
<frefity>
Enjolras_, it will be
<dsheets>
I like 4_L so you can see the type clearly and not mistake L for a digit
<Algebr>
Okay super confused, using Lwt_unix.fork and when child exits there's another fork!
sh0t has joined #ocaml
unbalancedparen has joined #ocaml
rgrinberg has joined #ocaml
slash^ has quit [Remote host closed the connection]
AlexRussia has joined #ocaml
slash^ has joined #ocaml
<pierpa>
why is NSQ better than xmpp?
rgrinberg has quit [Ping timeout: 260 seconds]
walter|r has quit [Remote host closed the connection]
shinnya has joined #ocaml
rand__ has joined #ocaml
ewanas has joined #ocaml
troydm has quit [Ping timeout: 244 seconds]
zpe has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 260 seconds]
cat5e has quit [Ping timeout: 240 seconds]
troydm has joined #ocaml
ril has joined #ocaml
troydm has quit [Ping timeout: 244 seconds]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewanas has quit [Read error: Connection reset by peer]
octachron has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 276 seconds]
ewanas has joined #ocaml
troydm has joined #ocaml
rgrinberg has joined #ocaml
octachron has joined #ocaml
<reynir>
I think it's different
toomuchtvrotsurb has quit [Remote host closed the connection]
troydm has quit [Ping timeout: 244 seconds]
TheLemonMan has joined #ocaml
ewanas has quit [Read error: Connection reset by peer]
ewanas has joined #ocaml
yunxing has joined #ocaml
yunxing has quit [Ping timeout: 276 seconds]
sh0t has quit [Ping timeout: 276 seconds]
Soni has joined #ocaml
Soni is now known as cat5e
ewanas has quit [Read error: Connection reset by peer]
troydm has joined #ocaml
ygrek has joined #ocaml
malc_ has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Algebr has quit [Ping timeout: 260 seconds]
Algebr has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
amnn has joined #ocaml
Algebr has quit [Ping timeout: 272 seconds]
rgrinberg has quit [Ping timeout: 244 seconds]
dsheets has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
dsheets has joined #ocaml
troydm has quit [Ping timeout: 244 seconds]
sh0t has joined #ocaml
toomuchtvrotsurb has joined #ocaml
troydm has joined #ocaml
toomuchtvrotsurb has quit [Ping timeout: 250 seconds]
darkf_ has joined #ocaml
ewanas has joined #ocaml
darkf has quit [Ping timeout: 276 seconds]
troydm has quit [Ping timeout: 244 seconds]
rand__ has quit [Quit: leaving]
AlexRussia has joined #ocaml
ygrek has joined #ocaml
Simn has quit [Ping timeout: 260 seconds]
rand__ has joined #ocaml
Simn has joined #ocaml
tmtwd has joined #ocaml
dsheets has quit [Remote host closed the connection]
tmtwd has quit [Quit: Leaving]
rgrinberg has quit [Ping timeout: 244 seconds]
darkf_ is now known as darkf
bba has joined #ocaml
octachron has quit [Quit: Leaving]
jeroud_ has joined #ocaml
<def`>
Enjolras_: error message was from merlin master, pre 4.03 support (and this is 4.03 construct)
jeroud has quit [Ping timeout: 244 seconds]
jeroud_ is now known as jeroud
toomuchtvrotsurb has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
troydm has joined #ocaml
frefity has quit [Quit: Ex-Chat]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hcarty has joined #ocaml
tmtwd has joined #ocaml
doecnt has joined #ocaml
A1977494 has quit [Quit: Leaving.]
walter|r has joined #ocaml
walter|r has quit [Remote host closed the connection]
manud has joined #ocaml
manud has quit [Client Quit]
amnn has joined #ocaml
hcarty has quit [Ping timeout: 272 seconds]
manud has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
toomuchtvrotsurb has joined #ocaml
rand__ has quit [Quit: leaving]
bba has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troydm has quit [Ping timeout: 244 seconds]
troydm has joined #ocaml
troydm has quit [Ping timeout: 244 seconds]
tane has quit [Quit: Verlassend]
malc_ has quit [Remote host closed the connection]
Simn has quit [Ping timeout: 260 seconds]
tmtwd has left #ocaml ["Leaving"]
ril has joined #ocaml
ewanas has quit [Read error: Connection reset by peer]
ewanas has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
ewanas has quit [Read error: Connection reset by peer]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bba has joined #ocaml
walter|r has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
walter|r has quit [Ping timeout: 260 seconds]
walter|r has joined #ocaml
sh0t has quit [Ping timeout: 272 seconds]
Algebr has joined #ocaml
dexterph has joined #ocaml
doecnt has quit [Ping timeout: 250 seconds]
bba has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Algebr>
Lwt.on_any is like a superset of Lwt.catch, right
amnn has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
Algebr` has joined #ocaml
toomuchtvrotsurb has joined #ocaml
Algebr has quit [Ping timeout: 276 seconds]
troydm has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
troydm has quit [Ping timeout: 244 seconds]
troydm has joined #ocaml
yunxing has joined #ocaml
rgrinberg has joined #ocaml
yunxing has quit [Ping timeout: 250 seconds]
troydm has quit [Ping timeout: 244 seconds]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
Algebr` has quit [Ping timeout: 272 seconds]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]