From dc928c3a456074b8777603bea20e81937321777f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 13 Oct 2020 14:50:38 +0200 Subject: [PATCH] Add cabal file --- .gitignore | 2 +- xss-sanitize.cabal | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 xss-sanitize.cabal diff --git a/.gitignore b/.gitignore index a1d1961..3d664ea 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ dist .cabal-sandbox/ cabal.sandbox.config .stack-work/ -xss-sanitize.cabal + diff --git a/xss-sanitize.cabal b/xss-sanitize.cabal new file mode 100644 index 0000000..081a4e9 --- /dev/null +++ b/xss-sanitize.cabal @@ -0,0 +1,71 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.33.0. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: ede14cd4a2004a36fc4ccbcc4744dd07fa840331e09d4add9589665a71512bda + +name: xss-sanitize +version: 0.3.6 +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 +homepage: https://github.com/yesodweb/haskell-xss-sanitize#readme +bug-reports: https://github.com/yesodweb/haskell-xss-sanitize/issues +author: Greg Weber +maintainer: Michael Snoyman +license: BSD2 +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md + ChangeLog.md + +source-repository head + type: git + location: https://github.com/yesodweb/haskell-xss-sanitize + +library + exposed-modules: + Text.HTML.SanitizeXSS + other-modules: + Text.HTML.SanitizeXSS.Css + Paths_xss_sanitize + hs-source-dirs: + src + build-depends: + attoparsec >=0.10.0.3 && <1 + , base >=4.9.1 && <5 + , containers + , css-text >=0.1.1 && <0.2 + , network-uri >=2.6 + , tagsoup >=0.12.2 && <1 + , text >=0.11 && <2 + , utf8-string >=0.3 && <1.1 + default-language: Haskell2010 + +test-suite test + type: exitcode-stdio-1.0 + main-is: main.hs + other-modules: + Text.HTML.SanitizeXSS + Text.HTML.SanitizeXSS.Css + Paths_xss_sanitize + hs-source-dirs: + test + src + cpp-options: -DTEST + build-depends: + HUnit >=1.2 + , attoparsec >=0.10.0.3 && <1 + , base >=4.9.1 && <5 + , containers + , css-text >=0.1.1 && <0.2 + , hspec >=1.3 + , network-uri >=2.6 + , tagsoup >=0.12.2 && <1 + , text >=0.11 && <2 + , utf8-string >=0.3 && <1.1 + default-language: Haskell2010