caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] undefined global Re_posix - ?
@ 2015-07-20 20:00 Mr. Herr
  2015-07-20 20:09 ` Ivan Gotovchits
  2015-07-20 20:13 ` Jeremy Yallop
  0 siblings, 2 replies; 5+ messages in thread
From: Mr. Herr @ 2015-07-20 20:00 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Hi,

unexplainable behavior: module Re_posix causes an error "undefined global Re_posix",
but the module is known.

Even stranger: when misspelling Re_posix the toplevel proposes Re_posix.

What is wrong?

/Str.

----------------------------------------------------------------------------------
/opt/opam/4.02.2/lib/ocaml/unix.cma: loaded
# #require "re";;
/opt/opam/4.02.2/lib/bytes: added to search path
/opt/opam/4.02.2/lib/re: added to search path
/opt/opam/4.02.2/lib/re/re.cma: loaded
# let re_whitespace = Re_posix.compile_pat "[\t ]+" ;;
Error: Reference to undefined global `Re_posix'
# #show_module Re_posix;;
module Re_posix :
   sig
     exception Parse_error
     exception Not_supported
     type opt = [ `ICase | `Newline | `NoSub ]
     val re : ?opts:opt list -> string -> Re.t
     val compile : Re.t -> Re.re
     val compile_pat : ?opts:opt list -> string -> Re.re
   end
# let re_whitespace = Re_posixx.compile_pat "[\t ]+" ;;
Error: Unbound module Re_posixx
Hint: Did you mean Re_posix?


[-- Attachment #2: Type: text/html, Size: 1797 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-20 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 20:00 [Caml-list] undefined global Re_posix - ? Mr. Herr
2015-07-20 20:09 ` Ivan Gotovchits
2015-07-20 22:37   ` Mr. Herr
2015-07-20 23:09     ` Daniel Bünzli
2015-07-20 20:13 ` Jeremy Yallop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).