79271738

Date: 2024-12-11 12:41:51
Score: 1
Natty:
Report link

Ok I got it, do a signature with a monad is a bad idea
Even if i write

module Try : (TRY with type 'a t = Success of 'a | Failure of exn) = struct

the compilation fail because of the "of" which provokes a Syntax error

I just removed the signature TRY, then it works
Just OCaml things...

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jaja