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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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]


Versions 0.1, 0.1
Change log None available
Dependencies base (>=4.6 && <4.7) [details]
License LicenseRef-PublicDomain
Author Matthias Brettschneider
Category Utils
Home page
Source repo head: git clone
Uploaded by frosch03 at 2013-11-27T21:11:51Z



Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Readme for Nutri-0.1

[back to package description]


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


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.


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.


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