I trying to compile a code and it gives me a non-sense error, I'm very new to oCaml so I'm missing something for sure
Here is the code
let foo () =
if '\n' = '\n' then begin
print_endline "foo";
end
Here is the error when I run dune build
File "gkoeditor.ml", line 46, characters 7-11:
46 | if '\n' = '\n' then begin
^^^^
Error: This expression has type char but an expression was expected of type
int
The whole source code can be found here https://github.com/dhilst/gkoeditor
I'm using Curses and Core libraries, for sure something is messing up with my environment,
Regards