Im trying to use the Ocaml Str library in Ocaml v5.0 (for regexp) by importing using "open Str" but I keep getting this error
"Module `Str' is unavailable"
followed by this alert
" OCaml's lib directory layout changed in 5.0. The str subdirectory has been automatically added to the search path, but you should add -I +str to the command-line to silence this alert (e.g. by adding str to the list of libraries in your dune file, or adding use_str to your _tags file for ocamlbuild, or using -package str for ocamlfind). "
I'm new to OCaml, any help would be greatly appreciated.
I've tried putting "add -I +str" into the command line however I got another error. I'm not sure how to add a library to my dune file so I haven't attempted this yet.