From e1581e4006b74045584b682bcc13ec35a5152fb0 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 28 Jun 2018 12:36:06 +0300 Subject: [PATCH] hpack-ify --- .gitignore | 1 + package.yaml | 42 ++++++++++++++++++++++++++++++++++++++ xss-sanitize.cabal | 50 ---------------------------------------------- 3 files changed, 43 insertions(+), 50 deletions(-) create mode 100644 package.yaml delete mode 100644 xss-sanitize.cabal diff --git a/.gitignore b/.gitignore index 8d68844..a1d1961 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist .cabal-sandbox/ cabal.sandbox.config .stack-work/ +xss-sanitize.cabal diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..2f29fe5 --- /dev/null +++ b/package.yaml @@ -0,0 +1,42 @@ +name: xss-sanitize +version: 0.3.5.7 +synopsis: sanitize untrusted HTML to prevent XSS attacks +description: run untrusted HTML through Text.HTML.SanitizeXSS.sanitizeXSS to prevent + XSS attacks. see README.md for + more details +category: Web +author: Greg Weber +maintainer: Michael Snoyman +license: BSD2 +github: yesodweb/haskell-xss-sanitize +stability: Stable + +extra-source-files: +- README.md +- ChangeLog.md + +dependencies: +- base ==4.* +- containers +- tagsoup >=0.12.2 && <1 +- utf8-string >=0.3 && <1.1 +- css-text >=0.1.1 && <0.2 +- text >=0.11 && <2 +- attoparsec >=0.10.0.3 && <1 +- network-uri >=2.6 + +library: + source-dirs: src + exposed-modules: + - Text.HTML.SanitizeXSS + +tests: + test: + main: main.hs + source-dirs: + - test + - src + cpp-options: -DTEST + dependencies: + - hspec >=1.3 + - HUnit >=1.2 diff --git a/xss-sanitize.cabal b/xss-sanitize.cabal deleted file mode 100644 index f348fef..0000000 --- a/xss-sanitize.cabal +++ /dev/null @@ -1,50 +0,0 @@ -name: xss-sanitize -version: 0.3.5.7 -license: BSD2 -license-file: LICENSE -author: Greg Weber -maintainer: Greg Weber -synopsis: sanitize untrusted HTML to prevent XSS attacks -description: run untrusted HTML through Text.HTML.SanitizeXSS.sanitizeXSS to prevent XSS attacks. see README.md for more details - -category: Web -stability: Stable -cabal-version: >= 1.8 -build-type: Simple -homepage: http://github.com/yesodweb/haskell-xss-sanitize -extra-source-files: README.md ChangeLog.md - -library - hs-source-dirs: src - build-depends: base == 4.*, containers - , tagsoup >= 0.12.2 && < 1 - , utf8-string >= 0.3 && < 1.1 - , css-text >= 0.1.1 && < 0.2 - , text >= 0.11 && < 2 - , attoparsec >= 0.10.0.3 && < 1 - , network-uri >= 2.6 - - exposed-modules: Text.HTML.SanitizeXSS - other-modules: Text.HTML.SanitizeXSS.Css - -test-suite test - type: exitcode-stdio-1.0 - hs-source-dirs: test, src - main-is: main.hs - other-modules: Text.HTML.SanitizeXSS - Text.HTML.SanitizeXSS.Css - cpp-options: -DTEST - build-depends: base == 4.* , containers - , tagsoup >= 0.12.2 && < 1 - , utf8-string >= 0.3 && < 1.1 - , css-text >= 0.1.1 && < 0.2 - , text >= 0.11 && < 2 - , attoparsec >= 0.10.0.3 && < 1 - , hspec >= 1.3 - , HUnit >= 1.2 - , network-uri >= 2.6 - - -source-repository head - type: git - location: https://github.com/yesodweb/haskell-xss-sanitize.git