companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
jbrown has quit [Ping timeout: 260 seconds]
jbrown has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
zebrag has quit [Quit: Konversation terminated!]
dieggsy has quit [Ping timeout: 250 seconds]
dieggsy has joined #ocaml
delysin has quit [Ping timeout: 246 seconds]
delysin has joined #ocaml
narimiran has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
rpcope has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 260 seconds]
arecaceae has quit [Remote host closed the connection]
arecaceae has joined #ocaml
rpcope has joined #ocaml
wonko7 has joined #ocaml
jbrown has joined #ocaml
Haudegen has joined #ocaml
grimler32 has quit [Ping timeout: 265 seconds]
olle has joined #ocaml
jbrown has quit [Ping timeout: 260 seconds]
jbrown has joined #ocaml
wonko7 has quit [Quit: See You Space Cowboy..]
wonko7 has joined #ocaml
sz0 has joined #ocaml
White_Flame has quit [Quit: No Ping reply in 180 seconds.]
White_Flame has joined #ocaml
<d_bot> <Cyclomatic Complexity> hey
<d_bot> <Cyclomatic Complexity> is there a standard way to have a functor across files in 2021?
dhil has joined #ocaml
Jesin has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
<d_bot> <Drup> no
mfp has joined #ocaml
TheLemonMan has joined #ocaml
bartholin has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
hackinghorn has quit [Ping timeout: 260 seconds]
kakadu has joined #ocaml
Jesin has joined #ocaml
shawnw has quit [Remote host closed the connection]
shawnw has joined #ocaml
<d_bot> <Cyclomatic Complexity> :(
sagax has joined #ocaml
richbridger has joined #ocaml
<olle> Well
<olle> Depends on what you mean
zebrag has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
zebrag has quit [Quit: Konversation terminated!]
Tuplanolla has joined #ocaml
aecepoglu[m] has left #ocaml ["User left"]
nullcone has joined #ocaml
Haudegen has joined #ocaml
waleee-cl has joined #ocaml
TheLemonMan has joined #ocaml
grimler32 has joined #ocaml
<grimler32> Evil People Messed with my LIFE! Are there any universe editors here with access to the 4 bit 3 dimensional god code at the multiverse level??
grimler32 was banned on #ocaml by companion_cube [*!*@pool-108-49-215-20.bstnma.fios.verizon.net]
grimler32 was kicked from #ocaml by companion_cube [grimler32]
<d_bot> <Butanium> The last one who tried this was eaten by a black hole
<d_bot> <Butanium> be careful
<Drup> companion_cube: that was fast x)
<companion_cube> he had tried that yesterday too, I think?
<d_bot> <undu> yeah
<d_bot> <Ulugbek> Hi. Is it possible with Formatter to make sure `a`, `b`, and `c` align vertically in `"a\nb\nc"`?
<d_bot> <Ulugbek> It may not align in, for example, `"Error: a\nb\nc"`
<d_bot> <octachron> `"\n"` should never be used with `Format`. You want `@[<v>a@,b@,c@]`.
<companion_cube> @Ulugbek: https://paste.isomorphis.me/r4P
<companion_cube> I've used this snippet in thepast
<companion_cube> (also in containers as `CCFormat.string_lines`)
olle has quit [Ping timeout: 240 seconds]
Haudegen has quit [Quit: Bin weg.]
tane has joined #ocaml
landonf has quit [Excess Flood]
landonf has joined #ocaml
<d_bot> <Ulugbek> thank you! 🙂
<companion_cube> octachron: not helpful when the string comes from somewhere else
<octachron> True
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
<dmbaturin> companion_cube: Would you mind extending CCOpt.get_exn with an optional argument for an explanatory message? If yes, I'll make a PR.
<dmbaturin> I.e. CCOpt.get_exn ~msg:"Value should not be none" will raise (Invalid_argument "Value should not be none")
<companion_cube> maybe in a different function, but yes please
<companion_cube> I can't bear this exception anymore
<companion_cube> (different function + deprecate this one, it's really bad)
<dmbaturin> What name would you prefer?
<dmbaturin> For the record, this is where I fell victim of that function's design: https://github.com/daypack-dev/timere/pull/23
narimiran has quit [Ping timeout: 252 seconds]
<companion_cube> yeah… it's a dangerous function
<companion_cube> not sure about the best name?
<dmbaturin> You mean a new function should _require_ a message?
<companion_cube> `get_exn_or : string -> 'a t -> 'a`
<companion_cube> probably, yes, anyway
<companion_cube> like rust's `expect`
<dmbaturin> Ok, let me make something up then.
<companion_cube> (and please put a deprecated on the previous one :p)
Haudegen has joined #ocaml
bartholin has quit [Quit: Leaving]
<dmbaturin> companion_cube: https://github.com/c-cube/ocaml-containers/pull/367 Here we go.
<companion_cube> awesome.
<dmbaturin> Maybe get_or_exn would be a better name actually.
narimiran has joined #ocaml
<dmbaturin> Or maybe not, since get_of has a rather different behaviour (and I always wanted it to be CCOpt.default :)
Sanduni has joined #ocaml
Sanduni has quit [Client Quit]
Sanduni has joined #ocaml
Sanduni has quit [Client Quit]
olle has joined #ocaml
vicfred has joined #ocaml
mro_name has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
sspi___ has joined #ocaml
towel_ has joined #ocaml
jbrown has joined #ocaml
vsiles_ has joined #ocaml
sspi__ has quit [Ping timeout: 276 seconds]
sspi___ is now known as sspi__
anton_5[m] has quit [Ping timeout: 276 seconds]
Tardigreat[m] has quit [Ping timeout: 276 seconds]
towel has quit [Ping timeout: 276 seconds]
jun has quit [Ping timeout: 276 seconds]
vsiles has quit [Ping timeout: 276 seconds]
jun has joined #ocaml
rpcope has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
rpcope has joined #ocaml
anton_5[m] has joined #ocaml
Tardigreat[m] has joined #ocaml
<d_bot> <v0idpwn> Hey, I've got a ocaml project (esy, dune), and I need to generate a opam lockfile so I can use https://github.com/roddyyaga/heroku-buildpack-ocaml
<d_bot> <v0idpwn>
<d_bot> <v0idpwn> But when I run `esy opam lock` I get:
<d_bot> <v0idpwn>
<d_bot> <v0idpwn> ```
<d_bot> <v0idpwn> [ERROR] No package definition files found at /Users/REDACTED/personal/chatwheel
<d_bot> <v0idpwn> ```
<d_bot> <v0idpwn>
<d_bot> <v0idpwn> As I understand, I should generate this file with dune. How can I do it? I'm still a bit confused with the tooling.
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<d_bot> <hcarty> Details are here: <https://dune.readthedocs.io/en/stable/opam.html?highlight=opam#generating-opam-files> - requires a flag to be set and one or more packages to be defined
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<d_bot> <v0idpwn> Okay, so I should write this dune-project file by hand? can't esy generate it for me based on my `package.json`?
zebrag has quit [Remote host closed the connection]
<d_bot> <mnxn> why don't you just have heroku use esy?
<d_bot> <mnxn> esy already has it own lockfiles
mro_name has quit [Remote host closed the connection]
zebrag has joined #ocaml
<d_bot> <v0idpwn> Managed to get my opam lockfile after writing a dune-project.
<d_bot> <v0idpwn>
<d_bot> <v0idpwn> @mnxn I don't know a lot about ocaml or heroku buildpacks so using stuff that's already built is easier for me atm
mro_name has joined #ocaml
wonko7 has quit [Ping timeout: 252 seconds]
neiluj has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Changing host]
olle has quit [Ping timeout: 252 seconds]
jbrown has quit [Ping timeout: 260 seconds]
doelie has quit [Ping timeout: 252 seconds]
tane has quit [Quit: Leaving]
jbrown has joined #ocaml
narimiran has quit [Ping timeout: 260 seconds]
SquidDev has quit [Ping timeout: 268 seconds]
SquidDev has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
dhil has quit [Quit: Leaving]
zebrag has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
neiluj has quit [Quit: leaving]
mro_name has quit [Quit: Leaving...]
doelie has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 260 seconds]
jbrown has joined #ocaml