caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Mr. Herr" <misterherr@freenet.de>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] undefined global Re_posix - ?
Date: Tue, 21 Jul 2015 00:37:20 +0200	[thread overview]
Message-ID: <55AD7820.8080608@freenet.de> (raw)
In-Reply-To: <CALdWJ+x0MuYQB74HttBFsVYzCjpRp0HHOOspXQvYRAWp47zfXA@mail.gmail.com>

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



On 20.07.2015 22:09, Ivan Gotovchits wrote:
> You need to load posix sublibrary:
>
>     #require "re.posix";;
>
> On Mon, Jul 20, 2015 at 4:00 PM, Mr. Herr <misterherr@freenet.de 
> <mailto:misterherr@freenet.de>> wrote:
>
>     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?
>
>
Okay, thank you all - five answers in the mailbox.

So there is not much to "/opt/opam/4.02.2/lib/re: added to search path"

/Str.


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

  reply	other threads:[~2015-07-20 22:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 20:00 Mr. Herr
2015-07-20 20:09 ` Ivan Gotovchits
2015-07-20 22:37   ` Mr. Herr [this message]
2015-07-20 23:09     ` Daniel Bünzli
2015-07-20 20:13 ` Jeremy Yallop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55AD7820.8080608@freenet.de \
    --to=misterherr@freenet.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).