Skip to content

A library to parse the GS1 Events into Haskell data types

License

Notifications You must be signed in to change notification settings

data61/GS1Combinators

Repository files navigation

GS1 Combinator Library

A library to parse the GS1 Events into Haskell data types.

Documentation

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.

Getting Started

Compiling

Download and install the Haskell build tool, stack, and run

stack build

Running Tests

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.

GS1 Standards

The following standards and documents have been consulted while developing this library:

About

A library to parse the GS1 Events into Haskell data types

Resources

License

Stars

Watchers

Forks

Packages

No packages published