A little library to calculate nutrition values of food items. https://github.com/frosch03/Nutri
|Latest on Hackage:||0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
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
Gramm values, but more can be added to that type.
Macros type is a triple type, that contains the macro
nutrients. Those are Protein, Carbohydrates and Fats.