The Nutri package

[Tags: library, public-domain]

This is the start of a library that helps to calculate with nutrition values of food items. There is a basic datatype for weight information and one for the nutrient information of food. One can combine variouse foods together and let the library calculate the overall protein, carbohydrate and fat percentages as well as the caloric value.


[Skip to ReadMe]

Properties

Version0.1
Change logNone available
Dependenciesbase (==4.6.*) [details]
LicensePublicDomain
AuthorMatthias Brettschneider
Maintainerfrosch03@frosch03.de
CategoryUtils
Home pagehttps://github.com/frosch03/Nutri
Source repositoryhead: git clone https://github.com/frosch03/Nutri.git
UploadedWed Nov 27 21:12:40 UTC 2013 by frosch03
DistributionsNixOS:0.1
Downloads250 total (12 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 2 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for Nutri-0.1

Nutri

Nutri is a very basic library to calculate a little with macro nutrient's.

Foods

There are some food's included in VariousFoods.hs and more can be defined there. A Food is basically a function that takes an amount value and calculates from that the caloric value.

Weight

The amount of food is given by the Weight type. Until now, there are only Gramm values, but more can be added to that type.

Macros

The Macros type is a triple type, that contains the macro nutrients. Those are Protein, Carbohydrates and Fats.