companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.05.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.05/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
sam___ has joined #ocaml
yegods has joined #ocaml
yegods_ has joined #ocaml
yegods_ has quit [Remote host closed the connection]
mengu has joined #ocaml
yegods has quit [Ping timeout: 255 seconds]
mengu has quit [Ping timeout: 255 seconds]
Ragora is now known as Ragora|Away
dakk has quit [Ping timeout: 260 seconds]
ziyourenxiang has joined #ocaml
cbot has joined #ocaml
KeyJoo has quit [Read error: Connection reset by peer]
<rgrinberg> how do i mark a warning as non fatal in OCaml?
sam___ has quit [Ping timeout: 268 seconds]
Ragora|Away is now known as Ragora
pierpa has quit [Quit: Page closed]
sh0t has joined #ocaml
snowcrshd has joined #ocaml
malina has quit [Remote host closed the connection]
<octachron> rgrinberg, hm, if the warning was made fatal with "@number", you need can disable it with "-number" but it is not possible to make it active and non-fatal
malina has joined #ocaml
zlsyx has quit [Quit: Leaving...]
zlsyx has joined #ocaml
sam___ has joined #ocaml
zlsyx has quit [Client Quit]
sam___ has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
snowcrshd has quit [Remote host closed the connection]
copy_ has quit [Quit: Connection closed for inactivity]
SomeDamnBody has joined #ocaml
<SomeDamnBody> Does anybody know if oasis and ocamlbuild are kind of incompatible with one another?
<Drup> SomeDamnBody: oasis uses ocamlbuild by default
<Drup> why would you think they are incompatible ? :D
<SomeDamnBody> Drup: Ok. Well, I thought that, but I'm having issues where if I have a _tags file at all, then the system doesn't see the dependencies that I've specified in my oasis.
<SomeDamnBody> So, for building, I do: "oasis setup -setup-update dynamic; touch setup.data ; ocaml setup.ml -build -cflag -annot -cflag -bin-annot"
snowcrshd has joined #ocaml
<Drup> did you kept the oasis section in the _tags file ?
<SomeDamnBody> and if I do not have a _tags file, that succeeds just fine. But if I do have a _tags file (and I need one in order to set the tag for profiling), then it doesn't...
<SomeDamnBody> no. There's supposed to be an oasis section?
ygrek has quit [Ping timeout: 240 seconds]
<SomeDamnBody> All I have is ---
<SomeDamnBody> true: profile
<SomeDamnBody> true: debug
<SomeDamnBody> --- And that's it
jimmyrcom_ has joined #ocaml
<Drup> Since you are using the dynamic setup, oasis will generate ocamlbuild fines dynamically
<Drup> If you put a _tags file, oasis will not generate it and nothing will work
<Drup> you need to keep a section for oasis
<Drup> here's an example
<SomeDamnBody> Oh I didn't know that.
<Drup> the two first line are the important ones
<SomeDamnBody> Think that that fixed it...
<SomeDamnBody> Cool. It did fix it.
<SomeDamnBody> Now I need to figure out how to get rid of that annoying "Interface topdirs.cmi occurs in several directories error"
_whitelogger has joined #ocaml
mfp__ has quit [Ping timeout: 260 seconds]
cbot has quit [Ping timeout: 240 seconds]
cbot has joined #ocaml
malina has quit [Remote host closed the connection]
mali has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
Soni has quit [Ping timeout: 240 seconds]
ristos has quit [Quit: Connection closed for inactivity]
ziyourenxiang has quit [Ping timeout: 240 seconds]
cbot has quit [Ping timeout: 255 seconds]
MercurialAlchemi has joined #ocaml
snowcrshd has quit [Remote host closed the connection]
sh0t has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
Soni has joined #ocaml
Soni has quit [Changing host]
Soni has joined #ocaml
Soni has quit [Remote host closed the connection]
Soni has joined #ocaml
Soni has quit [Remote host closed the connection]
Soni has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jry25 has joined #ocaml
sam___ has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
sam___ has quit [Ping timeout: 255 seconds]
govg has joined #ocaml
mbuf has joined #ocaml
xyh has joined #ocaml
<xyh> how to uninstall ocaml ? :: https://github.com/ocaml/ocaml/blob/trunk/Makefile
<xyh> no make uninstall
<sgnb> you should not trust "make uninstall" in general
<sgnb> I always use either use a package manager or a custom prefix, so that uninstalling becomes trivial
jry25 has quit [Quit: jry25]
MercurialAlchemi has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
mengu has joined #ocaml
cbot has joined #ocaml
aggelos_ has quit [Ping timeout: 255 seconds]
sam___ has joined #ocaml
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 240 seconds]
aggelos_ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
SomeDamnBody has quit [Ping timeout: 268 seconds]
KeyJoo has joined #ocaml
aggelos_ has quit [Ping timeout: 240 seconds]
mengu has joined #ocaml
JSharp is now known as jaesharp
jaesharp is now known as JSharp
mengu has quit [Ping timeout: 260 seconds]
mali has quit [Remote host closed the connection]
cbot has quit [Quit: Leaving]
xyh has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170722172122]]
mali has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
kassens has joined #ocaml
KeyJoo has quit [Ping timeout: 268 seconds]
kassens has quit [Ping timeout: 276 seconds]
ziyourenxiang has joined #ocaml
SomeDamn_ has joined #ocaml
mali has quit [Remote host closed the connection]
sam___ has joined #ocaml
KeyJoo has joined #ocaml
<Leonidas> opam remove your-switch works :-)
sam___ has quit [Ping timeout: 240 seconds]
fre has joined #ocaml
kassens has joined #ocaml
kassens has quit [Client Quit]
peterpp_ has joined #ocaml
aggelos_ has joined #ocaml
sam___ has joined #ocaml
KeyJoo has quit [Ping timeout: 240 seconds]
sam___ has quit [Ping timeout: 240 seconds]
fre has quit [Ping timeout: 255 seconds]
mengu has joined #ocaml
mengu has quit [Ping timeout: 255 seconds]
dakk has joined #ocaml
fre has joined #ocaml
vramana has joined #ocaml
peterpp_ has quit [Ping timeout: 240 seconds]
mali has joined #ocaml
fre has quit [Ping timeout: 240 seconds]
fre has joined #ocaml
aegray has quit [*.net *.split]
Nazral has quit [*.net *.split]
jerith has quit [*.net *.split]
mattg has quit [*.net *.split]
tizoc has quit [*.net *.split]
octachron has quit [*.net *.split]
spion has quit [*.net *.split]
Geekingfrog has quit [*.net *.split]
MasseR has quit [*.net *.split]
fre has quit [Ping timeout: 258 seconds]
Drup has quit [Ping timeout: 260 seconds]
Drup has joined #ocaml
<orbifx[m]> Hello all
sam___ has joined #ocaml
freusque has joined #ocaml
SomeDamn_ has quit [Remote host closed the connection]
sam___ has quit [Ping timeout: 255 seconds]
cymen has joined #ocaml
<cymen> hi!
<cymen> how do I fix this: E: Cannot find findlib package cstruct.lwt
<def`> opam install cstruct lwt ?
<cymen> hm...maybe :)
<cymen> let me try
<def`> opam install cstruct-lwt
<def`> sorry :)
<cymen> hm...so apparently when I installed opam with ubuntu it installed ocamlbuild as well
<cymen> but now opam is complaining that ocamlbuild is already installed
<cymen> what's the correct way forward here?
<def`> Are you using the system switch (try `opam switch`)?
<cymen> hm..apparently I am but something is not in sync..just a sec
<cymen> hm..okay no clue what that is or how to fix it but it seems I can just remove the ocamlbuild version from the ubuntu packages
<def`> I suggest not using the system switch
<def`> Try `opam switch 4.04.2` or `4.05.0` (which version is up to you).
<cymen> tell me which one to use because I am utterly clueless ;)
<def`> Go with 4.04.2 is stable
<def`> it is*
<cymen> thanks ;)
<def`> This will cause opam to manage the packages independently of apt.
<def`> Otherwise you risk having conflicts when apt update something that opam doesn't expect to be updated, etc.
<cymen> okay, thanks
freyr has joined #ocaml
<freyr> Is there any decent and reliable OCaml library for handling config files?
mengu has joined #ocaml
<cymen> def`: so now I have the same problem again with E: Cannot find findlib package cstruct.syntax but there is apparently no cstruct-syntax package...how do I search for the right one?
tizoc has joined #ocaml
octachron has joined #ocaml
aegray has joined #ocaml
Nazral has joined #ocaml
Geekingfrog has joined #ocaml
jerith has joined #ocaml
mattg has joined #ocaml
MasseR has joined #ocaml
mengu has quit [Ping timeout: 255 seconds]
freusque has quit [Quit: WeeChat 1.9]
spion has joined #ocaml
mfp__ has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 255 seconds]
<def`> the one you are looking for is "ppx_cstruct"
<def`> there is a worrying name duplication because the OCaml ecosystem is transitioning between different ways to manage packages.
<def`> As long as this is going, I am afraid there is no generic answer to your question, you have to look at each package documentation.
<theblatte> it'd be cool to be able to search by "module provided" in opam
<theblatte> but that doesn't sound easy to implement
<theblatte> cymen: does the project you're building provide an "opam" file?
jimmyrcom_ has quit [Ping timeout: 240 seconds]
sam___ has joined #ocaml
maarhart has joined #ocaml
sam___ has quit [Ping timeout: 255 seconds]
snowcrshd has joined #ocaml
argent_smith has joined #ocaml
argent_smith has quit [Quit: Leaving.]
mbuf has quit [Ping timeout: 260 seconds]
maarhart has quit [Quit: Mutter: www.mutterirc.com]
peterpp_ has joined #ocaml
maarhart has joined #ocaml
mbuf has joined #ocaml
maarhart has quit [Remote host closed the connection]
dhil has joined #ocaml
mali has quit [Ping timeout: 260 seconds]
mbuf has quit [Ping timeout: 255 seconds]
freusque has joined #ocaml
silver has joined #ocaml
mbuf has joined #ocaml
<cymen> theblatte: seems so, yeah
<theblatte> cymen: then you can let opam install all the dependencies, eg `opam pin add --no-action <project_name> . && opam install --deps-only <project_name>`
al-damiri has joined #ocaml
<cymen> theblatte: how exactly does this work
<cymen> do I make up a new project name?
<cymen> or do I use the one I find in the opam file in that directory?
<theblatte> you can use the one in opam
<theblatte> in fact it's not needed in the first command if you do that (I think)
sepp2k has joined #ocaml
sam___ has joined #ocaml
copy_ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
freusque has quit [Ping timeout: 276 seconds]
kakadu has joined #ocaml
Algebr has joined #ocaml
fre has joined #ocaml
malc_ has joined #ocaml
<cymen> how do I run the build command from an opam file?
_andre has joined #ocaml
<theblatte> cymen: once pinned you can install the package like any other
<theblatte> cymen: otherwise look at the build directives in the opam file and run them yourself? not sure I understand your question
BitPuffin|osx has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 248 seconds]
<reynir> freyr: there's toml, and I found config-file and ocplib-config in opam. I haven't used any of them though
<companion_cube> toml is fine, although the API is not perfect
dhil has quit [Ping timeout: 240 seconds]
<cymen> theblatte: but I don't want to install the package I only want to build it ;)
sam____ has joined #ocaml
<orbifx[m]> freyr, I have used toml successfully. I found the interface a bit laborious, but that's a detail really.
<orbifx[m]> I wrote some wrappers to make it work how I preferred it to:
<orbifx[m]> considering if there is room to create a library with some other high level functionality.
dhil has joined #ocaml
<cymen> theblatte: how do I display what's pinned and remove it?
<cymen> or anybody else ;)
<cymen> opam pin list
<cymen> that wasn't too hard
<orbifx[m]> `opam pin list`, `opam pin remove _`
<cymen> alrighty
<cymen> now, how do I figure out which files a package contained?
sh0t has joined #ocaml
m4farrel_ has quit [Ping timeout: 255 seconds]
<flux> cymen, I don't know what the opam way is (if any), but ls $(ocamlfind query foo) has served me fine
FreeBirdLjj has joined #ocaml
vicfred has joined #ocaml
mbuf has quit [Ping timeout: 248 seconds]
<dxtr> Is it okay to use, say, Option.get if I am expecting a "Some X" (Say I'm getting a value that is specified as NOT NULL in my sql database) and can't possibly recover if I don't get that?
<dxtr> Because I can't come up with something more reasonable to do
<lyxia> That sounds reasonable. You can also pattern match and throw a custom error so it is easier to trace it back when it happens.
<dxtr> Yeah
FreeBirdLjj has quit [Remote host closed the connection]
<dxtr> Hehe, sometimes I like the type inference. I have a function 'a -> 'b list -> 'c
<dxtr> :D
<dxtr> I guess it's not that uncommon but it didn't help me the slightest right now :D
<flux> it should tell you that the function doesn't return :) (though it might thrown an exception)
MercurialAlchemi has quit [Ping timeout: 276 seconds]
FreeBirdLjj has joined #ocaml
<rgrinberg> Is there a version of int_of_string that works on a substring without copying?
snowcrshd has quit []
jlam_ has joined #ocaml
dhil has quit [Ping timeout: 255 seconds]
jlam__ has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
KV has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
fre has quit [Ping timeout: 248 seconds]
kassens has joined #ocaml
dhil has joined #ocaml
kassens has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
sam____ has quit [Ping timeout: 260 seconds]
maarhart has joined #ocaml
FreeBird_ has joined #ocaml
maarhart has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 255 seconds]
freyr has quit [Remote host closed the connection]
<cymen> I'm trying to build ocamltls
<cymen> and the opam build file contains variables
<cymen> does anybody know how these are set?
<cymen> I just want to execute the commands manually
jry25 has joined #ocaml
jlam_ has joined #ocaml
KV has quit [Quit: leaving]
jlam__ has quit [Ping timeout: 248 seconds]
TheLemonMan has joined #ocaml
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
attt_ has joined #ocaml
peterpp_ has quit [Ping timeout: 240 seconds]
andreas__ has quit [Quit: Connection closed for inactivity]
jry25 has quit [Quit: jry25]
attt_ has quit [Remote host closed the connection]
tokomak has joined #ocaml
sam___ has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
mbuf has joined #ocaml
sam___ has quit [Ping timeout: 248 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 255 seconds]
slash^ has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 248 seconds]
dakk has quit [Read error: Connection reset by peer]
jry25 has joined #ocaml
mbuf has quit [Quit: Leaving]
dhil has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
<shepi> exit
<shepi> oops sry ^^
shepi has quit [Quit: Lost terminal]
mfp__ has quit [Ping timeout: 240 seconds]
FreeBird_ has quit [Remote host closed the connection]
jry25 has quit [Quit: jry25]
vicfred has quit [Quit: Leaving]
dakk has joined #ocaml
mfp__ has joined #ocaml
FreeBirdLjj has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
sam___ has joined #ocaml
jnavila has joined #ocaml
sam___ has quit [Ping timeout: 276 seconds]
djellemah_ has quit [Remote host closed the connection]
demonimin has quit [Remote host closed the connection]
BitPuffin|osx has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
jnavila has quit [Ping timeout: 255 seconds]
jlam_ has quit [Ping timeout: 255 seconds]
demonimin has joined #ocaml
BitPuffin|osx has joined #ocaml
malina has joined #ocaml
tane has joined #ocaml
sam___ has joined #ocaml
jlam_ has joined #ocaml
jnavila has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
sam___ has quit [Ping timeout: 246 seconds]
Fistine has quit [Remote host closed the connection]
aubian has joined #ocaml
Algebr has quit [Remote host closed the connection]
aubian is now known as Fistine
trevorriles_ is now known as trevorriles
kakadu has quit [Quit: Konversation terminated!]
jlam_ has quit [Ping timeout: 258 seconds]
jlam__ has joined #ocaml
rostero has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jnavila has quit [Quit: Konversation terminated!]
jnavila has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
jnavila has quit [Ping timeout: 248 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 248 seconds]
kakadu has joined #ocaml
malina has quit [Ping timeout: 255 seconds]
aciniglio has joined #ocaml
jry25 has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 260 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
MercurialAlchemi has quit [Ping timeout: 255 seconds]
aciniglio has quit [Ping timeout: 260 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
jry25 has quit [Quit: jry25]
sepp2k has quit [Quit: Leaving.]
_andre has quit [Quit: leaving]
kyod has quit [Quit: WeeChat 1.6]
jun has quit [Quit: WeeChat 1.6]
noplamodo_ has quit [Remote host closed the connection]
rbocquet has quit [Quit: WeeChat 1.0.1]
swistak35_ has quit [Quit: ZNC - http://znc.in]
KeyJoo has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has joined #ocaml
infinity0 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
noplamodo has joined #ocaml
rostero has quit [Quit: Connection closed for inactivity]
tane has quit [Quit: Leaving]
jun has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
k1000_ has quit [Remote host closed the connection]
sh0t has quit [Remote host closed the connection]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 276 seconds]
sam____ has joined #ocaml
jimmyrcom_ has joined #ocaml
malina has joined #ocaml
cbot has joined #ocaml
sh0t has joined #ocaml
tokomak has quit [Remote host closed the connection]
copy_ has quit [Quit: Connection closed for inactivity]
peterpp has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
<peterpp> somehow when I call Yojson.Basic.from_string, then my lwt thread gets stuck
keep_learning has quit [Remote host closed the connection]
keep_learning has joined #ocaml
mengu has joined #ocaml
peterpp has quit [Ping timeout: 260 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
jimmyrcom_ has quit [Remote host closed the connection]