adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
<iitalics> Fardale: i have "S src" and "B src/_build"
infinity0 has joined #ocaml
<Fardale> Have you run ocamlbuild ?
<iitalics> yes
<iitalics> and it compiles fine
infinity0 has quit [Remote host closed the connection]
<iitalics> also "merlin-switch-to-ml" seems to know about the modules
infinity0 has joined #ocaml
<Fardale> is it possible to link me a example of project with your error, I will try it to see if I have the same error
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
<iitalics> Fardale: one sec
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
<iitalics> oops
infinity0 has joined #ocaml
<Fardale> iitalics: you need to change B _build/src
infinity0 has quit [Remote host closed the connection]
<Fardale> to change "B _build" in "B _build/src"
<iitalics> ?!!
<iitalics> why the heck does that fix it
<Fardale> it seems merlin don't look in subdirectory, and ocamlbuild put the compile file in _build/src
<Fardale> I don't know how merlin work but it need the .cm? file to work from my experience
<iitalics> i see
infinity0 has joined #ocaml
<Fardale> you can put B _build/* it seems to work
spew has quit [Ping timeout: 246 seconds]
<iitalics> thank you
jlam1 has quit [Ping timeout: 268 seconds]
iitalics has quit [Quit: /thread]
moei has quit [Quit: Leaving...]
<orbifx[m]> orbitz: just noticed the email about Snabela is from you, was about to respond to mailing list.
<orbifx[m]> I was considering the benefits of switching my project to that instead of Mustache. That would take time of course, so any good selling points? :P
mfp has quit [Ping timeout: 240 seconds]
jack5638 has quit [Ping timeout: 260 seconds]
jack5638 has joined #ocaml
jao has quit [Remote host closed the connection]
jao has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
machinegon has joined #ocaml
<machinegon> Hey I'm trying to setup ocaml on my debian machine and I get the error ocaml_version is not a valid variable when I install packages with opam. Is there a good soul online to help me out?
maarhart has joined #ocaml
<machinegon> well it looks like the debian archive has issue, I reinstalled opam from source and it worked out.
maarhart has quit [Remote host closed the connection]
pierpa has quit [Quit: Page closed]
machinegon has quit [Quit: leaving]
johnelse has quit [Ping timeout: 268 seconds]
johnelse has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
MercurialAlchemi has joined #ocaml
keep_learning has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
keep_learning has joined #ocaml
johnelse has quit [Read error: No route to host]
johnelse has joined #ocaml
nore has quit [Quit: WeeChat 1.8]
nore has joined #ocaml
cbot has quit [Quit: Leaving]
Mercuria1Alchemi has joined #ocaml
cool88 has joined #ocaml
<cool88> Hi, I need help installing the ocaml info file in my emacs (on macOS Sierra). I tried the "install-info" command, but I am getting the warning.
dmi3y has joined #ocaml
Simn has joined #ocaml
alfredo has joined #ocaml
dmi3y has quit [Quit: dmi3y]
cool88` has joined #ocaml
dmi3y has joined #ocaml
dmi3y has quit [Client Quit]
mks11 has joined #ocaml
<orbifx[m]> cool88 here?
<cool88> yes!!!
freusque has joined #ocaml
<cool88> I am using the following link to download the info file
<cool88> I tried this command "install-info --info-file=./ocaml-4.04-refman.info.tar.gz --info-dir=/usr/local/share/info/"
<cool88> But I get the following error "install-info: warning: no info dir entry in./ocaml-4.04-refman.info.tar.gz'"
<cool88> Please excuse me this is the first-time I am using an IRC.
<orbifx[m]> It's OK. What's this info file for? What are you trying to do?
<cool88> This is for the ocaml manual from here http://caml.inria.fr/pub/docs/manual-ocaml/
<cool88> I wanted to lookup things right from my emacs.. instead of opening Chrome and browse the docs.
<orbifx[m]> OK, I can check all this once I'm on my desktop in half an hour. We've also got a new forum now at discuss.ocaml.org
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
<mks11> great thanks!
<mks11> (still cool88) I'll post it there too if it would be more convenient to answer there.
zv has quit [Ping timeout: 240 seconds]
zv has joined #ocaml
<mks11> posted the question here (hope this is OK) : https://discuss.ocaml.org/t/emacs-texinfo-help/192
<orbifx[m]> Should be fine. With IRC you might get an instant answer if you are lucky, with the forum it might take longer but you are more likely to get an answer.
moei has joined #ocaml
ygrek_ has quit [Ping timeout: 246 seconds]
raphinou has joined #ocaml
<mks11> Got it!
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
jack5638 has quit [Ping timeout: 240 seconds]
jack5638 has joined #ocaml
<mks11> (might be a lazy question). When we declare a `type` in OCAML. eg. type tile = |None |Value of int . I am wondering if it is somehow possible to define a type that either takes `None` or an `int` value without a constructor.
<octachron> mks11, no a constructor is always needed; since you need to be able to differentiate between cases
<jlam> cool88: You need to extract the info pages from that .tar.gz file.
<cool88> Just want to make sure, because info-install manual says if it is .tar.gz ..that is fine. Also when I extract this tar, there are 10 other tar.gz inside that folder. Not sure how deep it goes.
<jlam> tar zxvf ocaml-4.04-refman.info.tar.gz && install-info --info-dir=/usr/local/share/info infoman/ocaml.info.gz
<cool88> Alright! I will try this.
mfp has joined #ocaml
<mks11> Thank you! the Menu entry appeared; however, when I click on it, it says "Info-file ocaml doesn't exists"
<mks11> I might be able to figure this out now unless it's on top of your head what's going on. Thank you so much!
<mks11> (still cool88) (have one open in emacs and another in browser,sorry)
<cool88> Thank you! the Menu entry appeared; however, when I click on it, it says "Info-file ocaml doesn't exists"
<cool88> I might be able to figure this out now unless it's on top of your head what's going on. Thank you so much!
<jlam> You may need to copy the ocaml info files into /usr/local/share/info. I don't remember anymore if the "dir" file allows referring to files outside of the same directory.
<cool88> My Info-directory-variable is set to ("/usr/local/Cellar/emacs/24.5/share/info/emacs/" "/usr/local/share/info/" "/us\ r/share/info/")
<cool88> This directory has a bunch of other info.gz "/usr/local/Cellar/emacs/24.5/share/info/emacs" .. I think I should have used your command with this directory
<cool88> It works thankss SO MUCH!
<cool88> I copied all the files in this directory : /usr/local/share/info, and it works.
johnelse has quit [Ping timeout: 246 seconds]
johnelse has joined #ocaml
AltGr has joined #ocaml
<mks11> exit
mks11 has left #ocaml ["Killed buffer"]
lambda_foo has quit [Quit: Connection closed for inactivity]
kakadu has joined #ocaml
<cool88> got it thanks a bunch!
thizanne has joined #ocaml
zv has quit [Quit: WeeChat 1.6]
ziyourenxiang has joined #ocaml
toolslive has joined #ocaml
dxtr has quit [Ping timeout: 240 seconds]
cool88` has quit [Remote host closed the connection]
shinnya has joined #ocaml
zpe has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
mengu has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
ziyourenxiang has joined #ocaml
sepp2k has joined #ocaml
mpenet has joined #ocaml
mpenet has left #ocaml [#ocaml]
_andre has joined #ocaml
<_andre> hi
ziyourenxiang has quit [Quit: Leaving]
<zozozo> Hi
ziyourenxiang has joined #ocaml
<Leonidas> http://jbuilder.readthedocs.io/en/latest/terminology.html jbuilder can't decide whether it is capital Jbuilder or lower case jbuilder.
<Leonidas> anyone knows whether ocaml-git supports workspace operations like diff or determining branch etc.?
<Leonidas> *workdir
mks` has joined #ocaml
<mks`> Hi, is it possible to iterate over all the values of a type?, for instance,
<mks`> type action = |Left|Right|Top|Bottom
<mks`> I want to apply all these actions on a state, and generate corressponding states.
jao has joined #ocaml
<mks`> I think I should be just able to manually create a List with these actions if no default options are available?
<octachron> mks`, iterating over all values of a type is possible for finite type but pointless, since it is equivalent to defining a single "unit -> unit" function
<mks`> I see. I'll have re-read this a couple of times to get it. Ideally, I wanted to filter some available actions based on the co-ordinates. Thanks so much though!
<octachron> mks`, if I understand what you are trying to say, you want a function state -> action -> state? If that is the case, what is wrong with pattern matching on your action ?
<mks`> Yeah, I have a function that does that exactly. state -> action -> state. I think I have to think more.
<mks`> The idea where I wanted to put them in a list is to be able to use filter on that list based on the co-ordinates. Thanks so much!
<mks`> octachron: I want to generate successors of these states (based on *available* actions on a particular tile)
<mks`> octachron: all of the successors
ousado_ is now known as ousado
ousado has quit [Changing host]
ousado has joined #ocaml
<ousado> is there a way (like a dependecies file) to install dependencies for a project taht doesn't use opam for building itself?
mengu has quit [Remote host closed the connection]
<Drup> opam never builds itself, it launches arbitrary commands
<ousado> yes, what I mean is a project that doesn't have an opam package itself, but uses opam to install dependencies
<Drup> that is kinda what opam packages are for, though
<Drup> `opam install --deps` in opam 2.0 will do what you want
mengu has joined #ocaml
mengu has quit [Remote host closed the connection]
<ousado> Drup: thanks
<octachron> mks`, why not list all possible actions and use List.map or equivalent to construct the successor states?
jack5638 has quit [Ping timeout: 240 seconds]
jack5638 has joined #ocaml
<mks`> octachron: sounds good! thank you!
cbot has joined #ocaml
FreeBirdLjj has joined #ocaml
AltGr has left #ocaml [#ocaml]
AltGr has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
yomimono has joined #ocaml
mengu has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
freyr has joined #ocaml
<freyr> How to deal with basic http auth in cohttp?
seangrove has joined #ocaml
<freyr> I'm trying something like this
<freyr> But it does not work
copy` has joined #ocaml
cool88 has quit [Quit: Page closed]
<seangrove> Hey all, I'd like to generate a json->bucklescript-compatible record (i.e. create a JS object via JSON.parse, then getting the value from the fields using the BS JSON api). I love atdgen on the server side of things - is it meant to be extensible for my usecase above, or does it always ship the json parser? If so, it's probably not appropriate for my client-side stuff (mobile, where size is critical)
<Drup> seangrove: just consider json as js objects, and use the FFI.
ygrek_ has joined #ocaml
<Drup> (at least that's how you would do in js_of_ocaml)
spew has joined #ocaml
olaf_ has joined #ocaml
<olaf_> What does "the following tags are available" mean in the Oasis section of https://github.com/mjambon/cppo/blob/master/README.md? Where are the supposed to be? In the _oasis file?
<olaf_> I think they will result in additional cmdline options for -pp "$cpp", but its more than unclear how to use cppo_D(x)
Mercuria1Alchemi has quit [Ping timeout: 240 seconds]
ciniglio has joined #ocaml
<seangrove> Drup: Dealing with responses to queries, that's incredibly tedious and error-prone
<seangrove> The rest of the code is dealing with ocaml records, so I need to translate at the boundaries
<Drup> I don't know bucklescript enough to help you, but it sounds like exactly the task of an FFI.
hashpuppy has joined #ocaml
mengu has quit [Remote host closed the connection]
* seangrove shrugs
<seangrove> So is atdgen suited for the codegen part, or should I write that myself?
mengu has joined #ocaml
mengu has quit [Ping timeout: 246 seconds]
jabroney has joined #ocaml
alfredo has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has quit [Ping timeout: 240 seconds]
<apache2_> is there a way to make the compiler issue a warning when compiling a function, for example through a magical docstring or something?
<Drup> when compiling a function ? That seems a bit extreme
johnelse has quit [Ping timeout: 258 seconds]
johnelse has joined #ocaml
<apache2_> I'd like to deprecate it
andreypopp has joined #ocaml
zpe has quit [Remote host closed the connection]
<andreypopp> Does opam have HTTP API I can query for a list of packages and their metadata?
jabroney has quit [Quit: Leaving.]
sz0 has joined #ocaml
<octachron> apache2_, the deprecate attribute will warn on function (or module) use
cbot has quit [Ping timeout: 246 seconds]
mengu has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
spew has quit [Ping timeout: 260 seconds]
<apache2_> thanks!
freyr has quit [Remote host closed the connection]
jabroney has joined #ocaml
Anarchos has joined #ocaml
ygrek_ has quit [Ping timeout: 272 seconds]
ziyourenxiang has quit [Quit: Leaving]
jnavila has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.1]: i've been blurred!]
Anarchos has joined #ocaml
al-damiri has joined #ocaml
kradnl has joined #ocaml
tane has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
yomimono has joined #ocaml
freusque has joined #ocaml
kradnl has quit [Read error: Connection reset by peer]
slash^ has joined #ocaml
kradnl has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
yomimono has quit [Ping timeout: 246 seconds]
dtornabene has joined #ocaml
freusque has quit [Quit: WeeChat 1.7]
ygrek_ has joined #ocaml
rpg has joined #ocaml
hashpuppy has quit [Quit: Connection closed for inactivity]
kradnl has quit [Read error: Connection reset by peer]
TheLemonMan has joined #ocaml
zv has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
Anarchos has quit [Quit: Vision[0.10.1]: i've been blurred!]
dmbaturin has quit [Ping timeout: 260 seconds]
dmbaturin has joined #ocaml
pierpa has joined #ocaml
mengu has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
ski has joined #ocaml
slash^ has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 246 seconds]
mengu has joined #ocaml
<orbifx[m]> Anyone seen orbitz ?
kakadu has joined #ocaml
mks` has quit [Ping timeout: 246 seconds]
cross has joined #ocaml
larhat has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
shinnya has joined #ocaml
jabroney1 has joined #ocaml
jabroney has quit [Ping timeout: 255 seconds]
good has joined #ocaml
_andre has quit [Quit: leaving]
good has quit [Quit: Page closed]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
olaf_ has quit [Quit: Leaving.]
cbot has joined #ocaml
Simn has quit [Ping timeout: 240 seconds]
aantron_ has joined #ocaml
SpiceGuid has joined #ocaml
ia0 has quit [Quit: reboot]
ia0 has joined #ocaml
diphuser has joined #ocaml
tane has quit [Quit: Leaving]
jnavila has quit [Remote host closed the connection]
cyraxjoe has quit [Ping timeout: 246 seconds]
jmiven has quit [Quit: WeeChat 1.7.1]
jmiven has joined #ocaml
Simn has joined #ocaml
diphuser has quit [Ping timeout: 268 seconds]
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
AltGr has left #ocaml [#ocaml]
Simn has quit [Read error: Connection reset by peer]
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.46/20161213183751]]
jabroney has joined #ocaml
jabroney1 has quit [Ping timeout: 272 seconds]
gnugnugnu has joined #ocaml
<gnugnugnu> Ocaml is a fantastic programming language.
<gnugnugnu> close
gnugnugnu has left #ocaml [#ocaml]
<lobo> is this a new propaganda bot?
larhat has quit [Quit: Leaving.]
cbot_ has quit [Ping timeout: 246 seconds]
cbot has joined #ocaml
<pierpa> a gnu fond of a caml...
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
larhat has joined #ocaml
vgrocha has joined #ocaml
aantron_ has quit [Quit: Page closed]
<orbifx[m]> lol
lambda_foo has joined #ocaml
jabroney has quit [Read error: Connection reset by peer]
cyraxjoe has joined #ocaml
jabroney has joined #ocaml
Ldch has joined #ocaml
Ldch has left #ocaml [#ocaml]
Ldch has joined #ocaml
Ldch has quit [Client Quit]
sepp2k has quit [Ping timeout: 246 seconds]
larhat has quit [Quit: Leaving.]
kakadu has quit [Remote host closed the connection]
aantron_ has joined #ocaml
<aantron_> anyone here attending compose?
cbot_ has quit [Ping timeout: 268 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
shinnya has quit [Ping timeout: 258 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 is now known as Guest12469
infinity0 has joined #ocaml
Guest12469 has quit [Killed (adams.freenode.net (Nickname regained by services))]
infinity0 has quit [Remote host closed the connection]