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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Paul Samways
Aug 13, 2019
ddb92e4 · Aug 13, 2019
Mar 16, 2018
Jan 9, 2019
Aug 13, 2019
Jun 5, 2019
Mar 22, 2019
Mar 13, 2019
Aug 13, 2019
Jan 2, 2019
Feb 27, 2019
Nov 16, 2016
Jan 9, 2019
Dec 18, 2017
May 28, 2019
Dec 18, 2017

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