I am trying to port some older codebase from Core to Base and I can’t seem to figure out how to properly use integer types.
The code I’m starting from is here: https://github.com/loxs/ocaml-parsing/blob/master/src/LexBuffer.ml
If I include this in the beginning of file:
open Base open Base.Int
I get this error for line 65 in the original file: https://github.com/loxs/ocaml-parsing/blob/master/src/LexBuffer.ml#L65
This expression has type Base.int Base.option = Base.int option but an expression was expected of type Base.Int.t = int
I tried playing with various things like using the Base.Int63 module, but whatever I do, I can’t seem to make it work.