00:20
Tuplanolla has quit [Ping timeout: 240 seconds]
00:50
Haudegen has quit [Ping timeout: 240 seconds]
00:59
zebrag has quit [Quit: Konversation terminated!]
00:59
zebrag has joined #ocaml
01:35
zebrag has quit [Remote host closed the connection]
03:20
White_Flame has quit [Ping timeout: 252 seconds]
03:20
White_Flame has joined #ocaml
03:34
mfp has quit [Ping timeout: 252 seconds]
04:28
shmibs has quit [Quit: leaving =o]
04:29
shmibs has joined #ocaml
04:54
nicoo has quit [Ping timeout: 240 seconds]
05:01
nicoo has joined #ocaml
05:14
Sanduni has joined #ocaml
05:14
Sanduni has quit [Client Quit]
05:45
shmibs has quit [Quit: leaving =o]
05:46
shmibs has joined #ocaml
06:02
vicfred has quit [Ping timeout: 240 seconds]
06:19
waleee-cl has quit [Quit: Connection closed for inactivity]
06:50
mbuf has joined #ocaml
07:16
olle has joined #ocaml
07:36
delysin has quit [Quit: WeeChat 3.1]
07:52
wonko7 has joined #ocaml
08:15
Serpent7776 has joined #ocaml
08:46
Tuplanolla has joined #ocaml
08:52
wonko7 has quit [Ping timeout: 265 seconds]
09:08
<
olle >
Hm, what's the purpose of a parser.y file? oO
09:15
<
d_bot >
<Cyclomatic Complexity> hey
09:15
<
d_bot >
<Cyclomatic Complexity> After building my code, I want to run a few checks / benchmarks / tests, but that are qualitative
09:16
<
d_bot >
<Cyclomatic Complexity> As in, it doesn't yield a list of yes/no checks, just various numbers
09:16
<
d_bot >
<Cyclomatic Complexity> Is there a library that lets me automate building a report out of these?
09:21
Haudegen has joined #ocaml
09:39
bartholin has joined #ocaml
09:41
st8less has quit [Quit: WeeChat 2.9]
10:03
<
d_bot >
<bikal> or is this not possible?
10:05
mro_name has joined #ocaml
10:17
<
olle >
Is it possible to dump the linebuf created by Menhir lexer?
10:23
<
d_bot >
<bikal> Updated gist with `Obj.magic` to make it compile and use it. Value `f` has the correct value `Some 123` so the `Eq.Eq` is valid but it seems compiler can't infer/calculate that. Is there a way to nudge the compiler to correctly infer that type without use of `Obj.magic`?
10:23
bartholin has quit [Ping timeout: 265 seconds]
10:31
mro_name has quit [Remote host closed the connection]
10:34
MangaD has joined #ocaml
10:36
bartholin has joined #ocaml
10:44
<
MangaD >
Hello, I am trying to write a function in OCaml that gets the nth unicode character in a string. Is there any library that does this or must I write such a function myself?
10:55
<
d_bot >
<octachron> @bikal : your issue is that the equality function that you have written is useless. You want to get a `(a,b) Eq.t`, not a `(a,a) Eq.t`.
10:57
<
d_bot >
<octachron> The reason is that string equality between names is not strong enough to prove equality of the types.
10:58
<
d_bot >
<octachron> You need to use extensible sum types since they have an identity that is guaranteed by the type system.
11:02
<
d_bot >
<bikal> ok. let me try that
11:02
mfp has joined #ocaml
11:04
<
d_bot >
<bikal> Dang ... gadt really does exercise ocaml type fu muscle .. 🙂 getting frustrated at times but enjoying somewhat 😀
11:12
mro_name has joined #ocaml
11:24
mro_name has quit [Remote host closed the connection]
11:24
mro_name has joined #ocaml
11:36
mro_name has quit [Remote host closed the connection]
11:36
mro_name has joined #ocaml
11:40
mro_name has quit [Remote host closed the connection]
11:45
neiluj has joined #ocaml
11:45
neiluj has quit [Changing host]
11:45
neiluj has joined #ocaml
12:23
bartholin has quit [Ping timeout: 252 seconds]
12:30
mro_name has joined #ocaml
12:35
bartholin has joined #ocaml
13:18
mbuf has quit [Quit: Leaving]
13:22
mro_name has quit [Remote host closed the connection]
13:33
tinga is now known as pflanze
14:07
mro_name has joined #ocaml
14:23
bartholin has quit [Ping timeout: 240 seconds]
14:35
bartholin has joined #ocaml
15:08
<
d_bot >
<MisterGraf> hello, i need help
15:08
<
d_bot >
<MisterGraf> i have an Exam for soon
15:08
<
d_bot >
<MisterGraf> & honestly i am lost with ocaml
15:08
<
d_bot >
<MisterGraf> i know on paper the systeme for having the fonction
15:08
<
d_bot >
<MisterGraf> but idk how to write it
15:09
<
d_bot >
<MisterGraf> can some1 can help me
15:15
mro_name has quit [Remote host closed the connection]
15:16
gareppa has joined #ocaml
15:18
gareppa has quit [Remote host closed the connection]
15:19
<
d_bot >
<Recruiter6061> same here lol
15:36
White_Flame has quit [Ping timeout: 240 seconds]
15:41
<
d_bot >
<Butanium> someone sent it above and it seems quite good
15:42
White_Flame has joined #ocaml
15:42
bartholin has quit [Ping timeout: 252 seconds]
15:54
mro_name has joined #ocaml
15:56
bartholin has joined #ocaml
16:01
Jesin has joined #ocaml
16:03
zebrag has joined #ocaml
16:10
delysin has joined #ocaml
16:21
wonko7 has joined #ocaml
16:25
mro_name has quit [Quit: Leaving...]
17:00
<
d_bot >
<MisterGraf> @Butanium u think ppl can correct me?
17:01
<
d_bot >
<MisterGraf> ```ocaml
17:01
<
d_bot >
<MisterGraf> let rec fusion comp l1 l2 =
17:01
<
d_bot >
<MisterGraf> match l1 with
17:01
<
d_bot >
<MisterGraf> [] -> []
17:01
<
d_bot >
<MisterGraf> |x1::reste ->
17:01
<
d_bot >
<MisterGraf> match l2 with
17:01
<
d_bot >
<MisterGraf> [] -> [l1]
17:01
<
d_bot >
<MisterGraf> |x2::reste2 -> if comp x1 x2
17:01
<
d_bot >
<MisterGraf> then ((x1::l1)::l2)
17:01
<
d_bot >
<MisterGraf> else l1::fusion comp l1 reste2;;
17:01
<
d_bot >
<MisterGraf> ```
17:02
bartholin has quit [Ping timeout: 246 seconds]
17:05
landonf has quit [Excess Flood]
17:07
landonf has joined #ocaml
17:11
<
d_bot >
<Butanium> I won't try to understand what you are trying to code neither why it doesn't work
17:11
<
d_bot >
<Butanium> so consider giving more detail
17:12
<
d_bot >
<Butanium> we are not at your disposal so make an effort and ask
**specific** question
17:13
<
d_bot >
<MisterGraf> is writted on french i gonna put google trad
17:13
<
d_bot >
<MisterGraf> don t moove
17:14
<
d_bot >
<MisterGraf> fusion (<) [1; 4; 7; 8] [2; 7];;
17:14
<
d_bot >
<MisterGraf> - : int list = [1; 2; 4; 7; 7; 8]
17:14
<
d_bot >
<MisterGraf> i need to have that
17:14
MangaD has left #ocaml ["Leaving"]
17:16
bartholin has joined #ocaml
17:18
<
d_bot >
<bikal> although I wonder if I were to extend `tid` to `type _ tid += Int32 : int32 tid` in client code, the `eq` wouldn't work, hmmm
17:18
<
d_bot >
<Butanium> nice 👍
17:20
<
d_bot >
<Butanium> ^
17:27
<
d_bot >
<bikal> I am guessing it's because `tid ()` function mints a new type every time it's called, right.
17:35
olle has quit [Ping timeout: 260 seconds]
17:56
White_Flame has quit [Remote host closed the connection]
17:58
White_Flame has joined #ocaml
18:09
White_Flame has quit [Ping timeout: 252 seconds]
18:12
mro_name has joined #ocaml
18:18
mro_name has quit [Quit: Leaving...]
18:21
White_Flame has joined #ocaml
18:45
mosterdt__ is now known as mosterdt
18:50
<
d_bot >
<Christophe> Can you be specific on what is not working, what is the error?
18:51
<
d_bot >
<Christophe> Did you get a type error, or not the expected result maybe?
18:55
<
d_bot >
<MisterGraf> Error: This expression has type 'a list but an expression was expected of type
18:55
<
d_bot >
<MisterGraf> 'b -> 'b list -> bool
18:56
waleee-cl has joined #ocaml
19:02
bartholin has quit [Ping timeout: 246 seconds]
19:16
bartholin has joined #ocaml
19:35
olle has joined #ocaml
19:45
arecaceae has quit [Remote host closed the connection]
19:47
arecaceae has joined #ocaml
20:27
wonko7 has quit [Ping timeout: 252 seconds]
20:52
neiluj has quit [Quit: leaving]
21:02
bartholin has quit [Ping timeout: 252 seconds]
21:15
bartholin has joined #ocaml
21:31
vicfred has joined #ocaml
21:38
olle has quit [Ping timeout: 240 seconds]
22:01
bartholin has quit [Quit: Leaving]
22:25
sagax has quit [Remote host closed the connection]
22:45
<
d_bot >
<Samir> Do you have the line ?
22:50
Haudegen has quit [Ping timeout: 252 seconds]
22:53
Serpent7776 has quit [Quit: leaving]
23:39
Tuplanolla has quit [Quit: Leaving.]