https://github.com/lukasturcani/validated-molecule
A data structure for holding valid molecules.
https://github.com/lukasturcani/validated-molecule
Last synced: 10 days ago
JSON representation
A data structure for holding valid molecules.
- Host: GitHub
- URL: https://github.com/lukasturcani/validated-molecule
- Owner: lukasturcani
- Created: 2020-07-27T20:07:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T20:08:13.000Z (about 5 years ago)
- Last Synced: 2025-06-22T01:48:12.299Z (4 months ago)
- Language: PureScript
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.rst
Awesome Lists containing this project
README
:author: Lukas Turcani
:Documentation: https://pursuit.purescript.org/packages/purescript-validated-molecule
==================
validated-molecule
==================
A PureScript library for creating valid molecules.
The issue with molecule is that bonds reference atoms by id, but
how do you know the atom id a bond holds is valid?
``validated-molecule`` provides a ``Molecule`` class which is created
only through constructors which provide validation. This means that
all constructors return ``Maybe Molecule``. Only molecules with valid
atoms and bonds are constructed as a result.
Installation
============
To install use ``spago``::
$ spago install validated-molecule