kosmikus / lhs2tex

Preprocessor for typesetting Haskell sources with LaTeX
Other
99 stars 28 forks source link

Fix ambiguous regex dep. #39

Closed mf59816 closed 9 years ago

mf59816 commented 9 years ago

I'm not entirely sure why I needed this, but from somewhere, I had a dependency to regex-compat-tdfa kreeping in.

mf59816 commented 9 years ago

hm, that didn't quite do the trick:

$ cabal install
[...]
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(./polytable.sty (./lazylist.sty)) (./Guide2.aux)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ppl.fd)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./Guide2.out) (./Guide2.out)
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)

Class scrartcl Warning: Usage of deprecated font command `\bf'!
(scrartcl)              You should note, that in 1994 font command `\bf' has
(scrartcl)              been defined for compatiblitiy to Script 2.0 only.
(scrartcl)              Now, after two decades of LaTeX2e and NFSS2, you
(scrartcl)              shouldn't use such commands any longer and within
(scrartcl)              KOMA-Script usage of `\bf' is definitely deprecated.
(scrartcl)              See `fntguide.pdf' for more information about
(scrartcl)              recommended font commands.
(scrartcl)              Note also, that KOMA-Script will remove the definition
(scrartcl)              of `\bf' anytime until release of about version 3.20.
(scrartcl)              But for now, KOMA-Script will replace deprecated `\bf'
(scrartcl)              by `\normalfont \bfseries ' on input line 333.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlzplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omszplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxzplm.fd)
(/usr/share/texlive/texmf-dist/tex/latex/stmaryrd/Ustmry.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1zplm.fd)
! You can't use `\spacefactor' in math mode.
\@->\spacefactor 
                 \@m 
l.333 

? 
! Emergency stop.
\@->\spacefactor 
                 \@m 
l.333 

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on Guide2.log.
Failed to install lhs2tex-1.18.1
cabal: Error: some packages failed to install:
lhs2tex-1.18.1 failed during the building phase. The exception was:
ExitFailure 1

sorry about the confusion. i'll look into it.

kosmikus commented 9 years ago

Sorry for the long delay. Yes, I think this fix is harmless. We'll soon be able to specify setup-dependencies properly. The doc-building error is orthogonal (and should now be fixed).

favonia commented 7 years ago

Hi, should we fix src/Main.lhs in the same way so that make will work with regex-compat-tdfa installed?

antoine9298 commented 7 years ago

I think that, yes, we should. If someone has regex-compat-tdfa installed (me, for instance), he can’t compile it.