packages feed

lhs2TeX-hl 0.1.4.0 → 0.1.4.1

raw patch · 6 files changed

+16/−13 lines, 6 filesdep −haskell98

Dependencies removed: haskell98

Files

README.asciidoc view
@@ -72,9 +72,9 @@ strings or literal numbers add the following directives:  -----%subst char a     = "\color{char}\text{\tt ''" a "''}"-%subst string a   = "\color{string}\text{\tt \char34 " a "\char34}"-%subst numeral a  = "\color{numeral}{ " a " }"+%subst char a     = "{\color{char}\text{\tt ''" a "''}}"+%subst string a   = "{\color{string}\text{\tt \char34 " a "\char34}}"+%subst numeral a  = "{\color{numeral}{ " a " }}" ----  For other available substitutions consult the lhs2TeX manual.@@ -107,7 +107,7 @@ [source,haskell] ---- foo_1 = undefined--- Get's transformed into+-- Is transformed into foo₁ = undefined ---- @@ -158,6 +158,9 @@  CHANGES -------+0.1.4.1::+  * Fixed ambiguous import error on GHC 7.2+  * You can now ask for a list of commands to import. 0.1.3.3::   * Fixed build error + cabal things 0.1.3.2::
examples/theme1.tex view
@@ -21,6 +21,6 @@ \newcommand{\lhsCHtype}[1]{\color{datatype}{{#1}}} \newcommand{\lhsCHclass}[1]{\color{class}{{#1}}} -%subst char a    	= "\color{char}\text{\tt ''" a "''}"-%subst string a  	= "\color{string}\text{\tt \char34 " a "\char34}"-%subst numeral a =  "\color{numeral}{ " a " }"+%subst char a    = "{\color{char}\text{\tt ''" a "''}}"+%subst string a  = "{\color{string}\text{\tt \char34 " a "\char34}}"+%subst numeral a = "{\color{numeral}{ " a " }}"
lhs2TeX-hl.cabal view
@@ -1,5 +1,5 @@ Name:               lhs2TeX-hl-Version:            0.1.4.0+Version:            0.1.4.1 Cabal-Version:      >= 1.6 License:            MIT Author:             Alessandro Vermeulen <me@alessandrovermeulen.me>@@ -26,7 +26,6 @@ Executable lhs2TeX-hl   Main-Is:          LiterateHighlighter.hs   Build-Depends:    base >= 4 && <= 5-                  , haskell98                   , haskell-src-exts == 1.11.1                   , syb >= 0.1.0.1                   , cmdargs >= 0.1
src/Base/Common.hs view
@@ -1,4 +1,4 @@ module Base.Common where   -programVersion = "0.1.4.0"+programVersion = "0.1.4.1" programName    = "lhs2TeX-hl"
src/Literate/Haskell.hs view
@@ -11,6 +11,8 @@  import Language.LaTeX import Literate.SimpleInfo++import Debug.Trace (trace)    newtype M = M Module deriving (Typeable, Data)@@ -142,7 +144,7 @@            mtypes :: SimpleInfo -> [(String, String)] mtypes SimpleInfo{types} = map dp types-moperators SimpleInfo{operators} = map (\ a -> (a, "\\ "++ makeLatexSafe a++"\\ ")) +moperators SimpleInfo{operators} = trace "Operators:\n" $ trace (show operators) $ map (\ a -> (a, "\\ \\mathbin{"++ makeLatexSafe a++"}\\ "))                                         operators mconstructors SimpleInfo{constructors} = map (dp) constructors mfunctions SimpleInfo{functions   } = map (dp) functions
src/LiterateHighlighter.hs view
@@ -2,7 +2,7 @@  import Data.List -import System( getArgs )+import System.Environment( getArgs ) import System.IO  @@ -13,7 +13,6 @@ import Base.CLI import System.Console.CmdArgs --- import Literate.Agda import Literate.Haskell  import Literate.SimpleInfo