A library to parse the GS1 Events into Haskell data types.
View the Haskell API documentation here
Alternatively, the documentation can be generated locally using the following command
./generate_docs.sh
and then viewing docs/index.html
in a browser.
Download and install the Haskell build tool, stack, and run
stack build
You must always remember to build before testing, since the automatic building before the test building has been removed.
This is automated in run_tests.sh
./run_tests.sh
To perform a clean beforehand, use the -c option
./run_tests.sh -c
To clean, run stack clean
To build, run stack build
To test, run stack test
To parse an XML file, run stack exec Parser-exe -- /path/to/XML/file
More than one file can be parsed at a time. Just append to the arguments.
To check the validity/expected output of the parsing of an XML file in terms of GS1 vocabulary, use this tool. You may be asked to create an account.
The following standards and documents have been consulted while developing this library: