Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated parseSyntaxFiles.hs to use HXT 9.0.0.

  • Loading branch information...
commit f2f4e1e5ea37016821a4e1ff9f8c5a3fcefdce67 1 parent 359cdb5
jgm@berkeley.edu authored
Showing with 3 additions and 4 deletions.
  1. +2 −3 ParseSyntaxFiles.hs
  2. +1 −1  README
View
5 ParseSyntaxFiles.hs
@@ -20,8 +20,7 @@ Requires HXT.
module Main where
-import Text.XML.HXT.Arrow
-import Text.XML.HXT.Arrow.Edit
+import Text.XML.HXT.Core
import Control.Arrow
import Control.Arrow.ArrowList
import Control.Monad (liftM)
@@ -367,7 +366,7 @@ nameFromPath = concat . map capitalize . words .
application :: String -> IOSArrow b SyntaxDefinition
application src
- = readDocument [(a_validate, v_0)] src
+ = readDocument [withValidate no, withInputEncoding utf8] src
>>>
multi (hasName "language")
>>>
View
2  README
@@ -49,7 +49,7 @@ the parsers by doing:
runghc ParseSyntaxFiles.hs xml
-Note that ParseSyntaxFiles.hs requires the HXT package. If you
+Note that ParseSyntaxFiles.hs requires the HXT package (>= 9.0.0). If you
added or removed a syntax definition, you will also need to
update the Extra-Source-Files and Exposed-Modules sections of
highlighting-kate.cabal before recompiling using 'cabal install'.
Please sign in to comment.
Something went wrong with that request. Please try again.