Thank you Brent and Daniel!
I am happy to report preliminary success. I was able to typeset a
document with a few simple diagrams, including text subsequently typeset
by LaTeX in math mode.
A couple quick comments regarding the instructions at
https://github.com/diagrams/diagrams-doc/blob/master/doc/latex.rst
In order to avoid:
LaTeX Error: Environment pgfpicture undefined.
I had to add to the LaTeX preamble:
\usepackage{pgf}
which is pretty obvious, but not mentioned. And when I tried to build
the circles example, GHC complained:
Illegal equational constraint V t ~ V2
(Use GADTs or TypeFamilies to permit this)
When checking that ‘foo’ has the inferred type
which was solved by following the compiler's recommendation.
Thanks again,
-Ed
> <mailto:
edward.m...@gmail.com>> wrote:
> > Hi Brent,
> >
> > Sorry, but I'm super naive about Cabal. Can I do cabal install with a
> > package that's not in Hackage or do I need to do runhaskell Setup
> > instead? I searched around for a bit trying to figure it out but am
> > still confused. If it's not too much trouble, could you please give
> > either more explicit instructions or else a pointer to where I
> can learn
> > the right way to install Cabal packages from sources other than
> Hackage.
>
> It's easy to cabal install a package not in Hackage. There are two
> ways: You can run `cabal install` with no package name, from the
> directory with the .cabal file. Or you can run `cabal install
> <package-directory>/` where <package-directory> is a path to the code.
> Cabal recognizes the trailing slash, and looks for a local project
> rather than a package name on Hackage.
>
> Daniel
>
> --
> You received this message because you are subscribed to the Google
> Groups "diagrams-discuss" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
diagrams-discu...@googlegroups.com
> <mailto:
diagrams-discuss%2Bunsu...@googlegroups.com>.