A simple program to calculate molecular mass
:)
The molecular mass
of the atoms in MrData.hs
is not complete
, do remember to modify elementsData
in it.
% ghc -o MrCalc Main.hs -O2
% ./MrCalc
% runhaskell Main.hs
Mr Calculator
Formula>
You can just run the Main.hs
file and start inputing formulas :)
Options:
:h
to show help
:q
to quit
:e
to show examples