<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]
<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
<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]
<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>
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)