public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: sprock <rmason-by2PdLBuqAc@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Can'f find pandoc-types
Date: Mon, 13 Dec 2021 09:36:49 -0800	[thread overview]
Message-ID: <m2fsqw9zke.fsf@Johns-Air.hsd1.ca.comcast.net> (raw)
In-Reply-To: <d969a04d-796e-4633-9fb0-4f863cb2d053n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


'stack install' just installs executables, I think.

Are you trying to compile the filters?  If so, then what you want
is

    stack ghc -- --make myfilter.hs

If you do this in the directory in which you've installed pandoc,
then (if I recall correctly) stack will be able to find the libraries.

Alternatively, you could set up a separate stack project for
the filter, with the dependencies listed.

Or, you could use a "stack script"
https://www.fpcomplete.com/haskell/tutorial/stack-script/

Hope that helps.

sprock <rmason-by2PdLBuqAc@public.gmane.org> writes:

> Hello,
>
> I installed pandoc from source on FreeBSD 13.0 using stack, which also 
> installed ghc in my home directory.  I do not have a system-wide ghc 
> installation, nor do I have cabal.
>
> I also need pandoc-types, which I have also built from source using stack, 
> but stack install does not seem to install anything.  At least when I try 
> examples from the filters page I get
>
> Could not find module ‘Text.Pandoc.JSON’
>
> If anyone can spare a few minutes to help it would be much appreciated.
>
> Thanks,
> sprock
>
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d969a04d-796e-4633-9fb0-4f863cb2d053n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2fsqw9zke.fsf%40Johns-Air.hsd1.ca.comcast.net.


  parent reply	other threads:[~2021-12-13 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13 15:15 sprock
     [not found] ` <d969a04d-796e-4633-9fb0-4f863cb2d053n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-12-13 17:36   ` John MacFarlane [this message]
     [not found]     ` <m2fsqw9zke.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
2021-12-13 18:48       ` Roger Mason

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=m2fsqw9zke.fsf@Johns-Air.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=rmason-by2PdLBuqAc@public.gmane.org \
    /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).