Nutri: A little library to calculate nutrition values of food items.

[ library, public-domain, utils ] [ Propose Tags ] [ Report a vulnerability ]

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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1
Dependencies base (>=4.6 && <4.7) [details]
License LicenseRef-PublicDomain
Author Matthias Brettschneider
Maintainer frosch03@frosch03.de
Category Utils
Home page https://github.com/frosch03/Nutri
Source repo head: git clone https://github.com/frosch03/Nutri.git
Uploaded by frosch03 at 2013-11-27T21:12:40Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1149 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 3 reports]

Readme for Nutri-0.1

[back to package description]

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.