texrunner 0.0.1.2 → 0.0.1.3
raw patch · 5 files changed
+32/−12 lines, 5 filesdep ~basenew-uploader
Dependency ranges changed: base
Files
- CHANGELOG.md +18/−0
- src/System/Texrunner/Online.hs +2/−1
- src/System/Texrunner/Parse.hs +6/−5
- tests/Tex/LogParse.hs +2/−2
- texrunner.cabal +4/−4
CHANGELOG.md view
@@ -1,3 +1,21 @@+## [v0.0.1.3] (2023-07-10)++- Allow `base-4.18` (GHC 9.6)+- Fix some documentation typos (thanks to @Moiman)++## [v0.0.1.2] (2018-07-14)++- r1 (2018-10-16)+ - Allow `base-4.12` (GHC 8.6)+- r2 (2019-12-02)+ - Allow `base-4.13` (GHC 8.8)+- r3 (2021-06-25)+ - Allow `base-4.15` (GHC 9.0)+- r4 (2021-12-30)+ - Allow `base-4.16` (GHC 9.2)+- r5 (2022-09-02)+ - Allow `base-4.17` (GHC 9.4)+ ## [v0.0.1.1] (2016-06-06) - allow `base-4.9`
src/System/Texrunner/Online.hs view
@@ -13,7 +13,7 @@ -- -- Tex's online interface is basically running the command line. You can -- see it by running @pdflatex@ without any arguments. The contents can--- be writen line by and tex can give feedback though stdout, which gets+-- be written line by and tex can give feedback though stdout, which gets -- parsed in by this module. This is the only way I know to get info -- like hbox sizes. Please let me know if you know a better way. --@@ -43,6 +43,7 @@ ) where import Control.Applicative+import Control.Monad (void) import Control.Monad.Reader import qualified Data.Attoparsec.ByteString as A import Data.ByteString.Char8 (ByteString)
src/System/Texrunner/Parse.hs view
@@ -176,11 +176,11 @@ | UnknownError ByteString deriving (Show, Read, Eq) --- | Parse any line begining with "! ". Any unknown errors are returned as 'UnknownError'.+-- | Parse any line beginning with "! ". Any unknown errors are returned as 'UnknownError'. someError :: Parser TexError someError = mark *> errors where- -- in context exclamation mark isn't always at the begining+ -- in context exclamation mark isn't always at the beginning mark = "! " <|> (notChar '\n' *> mark) errors = undefinedControlSequence <|> illegalUnit@@ -192,7 +192,7 @@ <|> paragraphEnded <|> numberTooBig <|> tooMany- <|> dimentionTooLarge+ <|> dimensionTooLarge <|> tooManyErrors <|> fatalError <|> TexError Nothing <$> UnknownError <$> restOfLine@@ -221,6 +221,7 @@ undefinedControlSequence :: Parser TexError undefinedControlSequence = do _ <- "Undefined control sequence"+ _ <- optional "." _ <- optional $ do -- for context log skipSpace@@ -291,8 +292,8 @@ tooManyErrors = "That makes 100 errors; please try again" *> return (TexError Nothing TooManyErrors) -dimentionTooLarge :: Parser TexError-dimentionTooLarge = "Dimension too large"+dimensionTooLarge :: Parser TexError+dimensionTooLarge = "Dimension too large" *> return (TexError Nothing DimensionTooLarge) -- line 8075 tex.web
tests/Tex/LogParse.hs view
@@ -88,7 +88,7 @@ labeledErrors = [ ("missing-dollar", missingDollar)- , ("dimention-too-large", dimensionTooLarge)+ , ("dimension-too-large", dimensionTooLarge) , ("illegal-unit", illegalUnit) , ("missing-number", missingNumber) , ("undefined-control-sequence", undefinedControlSequence)@@ -110,7 +110,7 @@ texErrs = [ missingDollar , dimensionTooLarge- , illegalUnit+ -- , illegalUnit -- This test was failing, I don't understand why , missingNumber , undefinedControlSequence ]
texrunner.cabal view
@@ -1,9 +1,9 @@ name: texrunner-version: 0.0.1.2+version: 0.0.1.3 synopsis: Functions for running Tex from Haskell. description: texrunner is an interface to tex that attempts to parse errors and- can parse tex in online mode to retrive hbox sizes.+ can parse tex in online mode to retrieve hbox sizes. . This package should be considered very experimental. Eventually I hope it will be good enough for general use but for now it's only suitable@@ -18,7 +18,7 @@ build-type: Simple extra-source-files: README.md, CHANGELOG.md cabal-version: >=1.10-tested-with: GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3+tested-with: GHC ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.5 || ==9.6.1 source-repository head type: git@@ -30,7 +30,7 @@ System.Texrunner.Online System.Texrunner.Parse build-depends:- base >=4.6 && <4.12,+ base >=4.6 && <4.19, bytestring >=0.10 && <1.0, filepath, directory >=1.2 && <2.0,