I asked this question long ago at can you use perl6 from haskell?

and am asking again now because pugs is now available with cabal install and I am wondering if this changes anything.

I don't even see the option for "make ghci" target anymore (as educated_foo suggested).

Specifically, I would like to be able to do

ghci Main.hs (in pugs distro) or perhaps ghci Pugs.hs and just poke around and see how pugs works.

Currently, this fails with

thartman@ubuntu:~/haskellInstalls/Pugs-6.2.13.14/src>ghci Main.hs

Pugs/Prim/Match.hs:12:7: Could not find module `Paths_Pugs': Use -v to see a list of the files searched for. Failed, modules loaded: none. Prelude> :q
when I attempt to run the ghci command in the unzipped Pugs-6 distro directory copied from where cabal installed it.

UPDATE: Checked out the svn head from http://www.perlfoundation.org/perl6/index.cgi?download_pugs

and this has a lot more files than the contents of the cabal tar, including an INSTALL file in the top dir that says there should be a make ghci target for hacking in ghci.

However,

thartman@ubuntu:~/haskellInstalls/pugs>make ghci make: *** No rule to make target `ghci'. Stop.

Also, crossposted this question to perl6-compiler mailing list. (google "Is there a reasonable way to access perl 6 regexen and grammars in haskell, via the pugs modules? (where's the make ghci target?)")


In reply to how to hack on pugs in ghci? how to use perl6 regexen and grammars in haskell? by tphyahoo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.