on master help sign in
Add all the boilerplate required for cabal test and neil check
4238733Neil Mitchell
.gitignorenew file+5
@@ -0,0 +1,5 @@
1+/dist/
2+*.o
3+*.prof
4+/.stack-work/
5+/issues/
.travis.ymlnew file+9
@@ -0,0 +1,9 @@
1+env:
2+ - GHCVER=7.6.3
3+ - GHCVER=7.8.4
4+ - GHCVER=7.10.3
5+ - GHCVER=8.0.1
6+ - GHCVER=head
7+
8+script:
9+ - wget https://raw.github.com/ndmitchell/neil/master/travis.sh -O - --no-check-certificate --quiet | sh
CHANGES.txtnew file+3
@@ -0,0 +1,3 @@
1+Changelog for Hexml
2+
3+ Initial version
LICENSEnew file+30
@@ -0,0 +1,30 @@
1+Copyright Neil Mitchell 2016.
2+All rights reserved.
3+
4+Redistribution and use in source and binary forms, with or without
5+modification, are permitted provided that the following conditions are
6+met:
7+
8+ * Redistributions of source code must retain the above copyright
9+ notice, this list of conditions and the following disclaimer.
10+
11+ * Redistributions in binary form must reproduce the above
12+ copyright notice, this list of conditions and the following
13+ disclaimer in the documentation and/or other materials provided
14+ with the distribution.
15+
16+ * Neither the name of Neil Mitchell nor the names of other
17+ contributors may be used to endorse or promote products derived
18+ from this software without specific prior written permission.
19+
20+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README.md+4−2
@@ -1,2 +1,4 @@
1−# hexml
1+# Hexml [![Hackage version](https://img.shields.io/hackage/v/hexml.svg?label=Hackage)](https://hackage.haskell.org/package/hexml) [![Stackage version](https://www.stackage.org/package/hexml/badge/lts?label=Stackage)](https://www.stackage.org/package/hexml) [![Linux Build Status](https://img.shields.io/travis/ndmitchell/hexml.svg?label=Linux%20build)](https://travis-ci.org/ndmitchell/hexml) [![Windows Build Status](https://img.shields.io/appveyor/ci/ndmitchell/hexml.svg?label=Windows%20build)](https://ci.appveyor.com/project/ndmitchell/hexml)
2+
2−A bad XML parser
3+A bad XML parser, that you probably shouldn't use.
4+
Setup.hsnew file+2
@@ -0,0 +1,2 @@
1+import Distribution.Simple
2+main = defaultMain
appveyor.ymlnew file+18
@@ -0,0 +1,18 @@
1+cache:
2+- "c:\\sr" # stack root, short paths == less problems
3+
4+build: off
5+
6+before_test:
7+- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
8+- 7z x stack.zip stack.exe
9+
10+clone_folder: "c:\\project"
11+environment:
12+ global:
13+ STACK_ROOT: "c:\\sr"
14+
15+test_script:
16+- stack init
17+- stack setup > nul
18+- echo "" | stack --no-terminal test
hexml.cabalnew file+54
@@ -0,0 +1,54 @@
1+cabal-version: >= 1.18
2+build-type: Simple
3+name: hexml
4+version: 0.1
5+license: BSD3
6+license-file: LICENSE
7+category: Development
8+author: Neil Mitchell <ndmitchell@gmail.com>
9+maintainer: Neil Mitchell <ndmitchell@gmail.com>
10+copyright: Neil Mitchell 2016
11+synopsis: Bad XML parser
12+description:
13+ A bad XML parser.
14+homepage: https://github.com/ndmitchell/hexml#readme
15+bug-reports: https://github.com/ndmitchell/hexml/issues
16+tested-with: GHC==8.0.1, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3
17+extra-doc-files:
18+ README.md
19+ CHANGES.txt
20+extra-source-files:
21+ cbits/*.h
22+ cbits/*.c
23+
24+source-repository head
25+ type: git
26+ location: https://github.com/ndmitchell/hexml.git
27+
28+library
29+ hs-source-dirs: src
30+ default-language: Haskell2010
31+
32+ build-depends:
33+ base > 4 && < 5,
34+ bytestring,
35+ extra
36+
37+ c-sources: cbits/hexml.c
38+ include-dirs: cbits
39+ includes: hexml.h
40+ install-includes: hexml.h
41+ cc-options: -std=c99
42+
43+ exposed-modules:
44+ Text.XML.Hexml
45+
46+test-suite hexml-test
47+ type: exitcode-stdio-1.0
48+ main-is: src/Main.hs
49+ default-language: Haskell2010
50+
51+ build-depends:
52+ base,
53+ bytestring,
54+ hexml