From: Michael Orlitzky Date: Wed, 1 Jan 2014 23:10:04 +0000 (-0500) Subject: Rename doctypeA to dtdnameA. X-Git-Tag: 0.0.1~128 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=7c134b7065f2c139a48ba8b0df810f01972c55e2;p=dead%2Fhtsn-import.git Rename doctypeA to dtdnameA. --- diff --git a/src/Main.hs b/src/Main.hs index 06cb22e..924a699 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -111,8 +111,8 @@ import_file cfg path = do -- | An arrow which parses the doctype "SYSTEM" of an 'XmlTree'. -- We use these to determine the parser to use. - doctypeA :: ArrowXml a => a XmlTree DtdName - doctypeA = getAttrl >>> hasName "doctype-SYSTEM" /> getText >>^ DtdName + dtdnameA :: ArrowXml a => a XmlTree DtdName + dtdnameA = getAttrl >>> hasName "doctype-SYSTEM" /> getText >>^ DtdName -- | Combine the arrows above as well as the function below -- (arrowized with 'arr') into an IO action that does everything @@ -123,7 +123,7 @@ import_file cfg path = do -- big one outside of the list. parse_and_import :: IO [ImportResult] parse_and_import = - runX (readA >>> (doctypeA &&& returnA) >>> (arr import_with_dtd)) + runX (readA >>> (dtdnameA &&& returnA) >>> (arr import_with_dtd)) >>= sequence