ANNOUNCE: lhs2tex-1.14
lhs2TeX version 1.14 ==================== We are pleased to announce a new release of lhs2TeX, a preprocessor to generate LaTeX code from literate Haskell sources. lhs2TeX includes the following features: * Highly customized output. * Liberal parser -- no restriction to Haskell 98. * Generate multiple versions of a program or document from a single source. * Active documents: call Haskell to generate parts of the document (useful for papers on Haskell). * A manual explaining all the important aspects of lhs2TeX. Changes (w.r.t. lhs2TeX 1.13) ----------------------------- * Compatible with cabal-1.6; traditional configure/make installation should still work. * Unicode support. * Support for Agda's lexing rules (via --agda flag). * Minor bugfixes. Requirements and Download ------------------------- A source distribution is available from http://people.cs.uu.nl/andres/lhs2tex/ and, of course, via Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/lhs2tex Should work on all major platforms, but has mainly been tested on Linux. Binaries will be made available on request. You need a recent version of GHC (6.8.{2,3} are tested, older versions might work) to build lhs2TeX, and, of course, you need a TeX distribution to make use of lhs2TeX's output. The program includes a configuration that is suitable for use with LaTeX. In theory, there should be no problem to generate code for other TeX flavors, such as plainTeX or ConTeXt. Happy lhs2TeXing, Andres Loeh and Ralf Hinze -- Andres Loeh, Universiteit Utrecht mailto:andres@cs.uu.nl mailto:mail@andres-loeh.de http://www.andres-loeh.de
Hi Andres, I just downloaded and compiled lhs2tex-1.14 on ghc 6.10.1, and I'm getting an error: ... [16 of 19] Compiling Math ( Math.lhs, Math.o ) [17 of 19] Compiling FileNameUtils ( FileNameUtils.lhs, FileNameUtils.o ) FileNameUtils.lhs:81:35: Ambiguous type variable `b' in the constraint: `GHC.Exception.Exception b' arising from a use of `catch' at FileNameUtils.lhs:(81,35)-(89,60) Probable fix: add a type signature that fixes these type variable(s) FileNameUtils.lhs:98:44: Ambiguous type variable `e2' in the constraint: `GHC.Exception.Exception e2' arising from a use of `try' at FileNameUtils.lhs:98:44-57 Probable fix: add a type signature that fixes these type variable(s) FileNameUtils.lhs:118:35: Ambiguous type variable `e1' in the constraint: `GHC.Exception.Exception e1' arising from a use of `catch' at FileNameUtils.lhs:(118,35)-(119,104) Probable fix: add a type signature that fixes these type variable(s) FileNameUtils.lhs:122:35: Ambiguous type variable `e' in the constraint: `GHC.Exception.Exception e' arising from a use of `catch' at FileNameUtils.lhs:122:35-54 Probable fix: add a type signature that fixes these type variable(s) make: *** [lhs2TeX] Error 1 conal@compy-doble:~/cabal/lhs2tex-1.14$ Any advice? Thanks, - Conal
On Thu, 2008-11-06 at 16:36 -0800, Conal Elliott wrote:
Hi Andres,
I just downloaded and compiled lhs2tex-1.14 on ghc 6.10.1, and I'm getting an error:
... [16 of 19] Compiling Math ( Math.lhs, Math.o ) [17 of 19] Compiling FileNameUtils ( FileNameUtils.lhs, FileNameUtils.o )
FileNameUtils.lhs:81:35: Ambiguous type variable `b' in the constraint: `GHC.Exception.Exception b' arising from a use of `catch' at FileNameUtils.lhs:(81,35)-(89,60) Probable fix: add a type signature that fixes these type variable(s)
Any advice?
Constrain the version of base to be < 4. You can do that in the .cabal file or if you use cabal-install-0.6 or later then it does that by default for packages which do not specify any constraint (on the basis that most existing packages build with base 3 and new ones that need base 4 will say so). Duncan
participants (3)
-
Andres Loeh -
Conal Elliott -
Duncan Coutts