I was having a problem in ocamlyacc where the type of my start point didn't match the return type of all my rules (I was returning a string at one point and a string list -> string lift at another point), so I made a new type:
type S =
| StringFun of (string list -> string list)
| String of string;;
So I could set the type of the entry point to that to stop the error I was getting (I don't know if there's a better way to do it?), but this means now that when I want to concatenate 2 strings that are type S I can't just use ^. Is there any way to do this?
Thanks