-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Chemistry -- -- This library simplifies writing application for chemistry. Currently -- includes: -- -- @package radium @version 0.2 module Chemistry.Element data Element atomicNumber :: Element -> Int -- | Find element by its atomic number -- --
--   atomicNumber (element 8) == 8 
--   
element :: Int -> Element -- | Find element by its symbol -- --
--   atomicNumber (elementBySymbol "O") == 8 
--   
elementBySymbol :: String -> Element -- | Show number of electrons in each shell -- --
--   let e = element 8
--   shellElectrons e == [2, 6] 
--   
shellElectrons :: Element -> [Int] -- | Number of valance electrons -- --
--   let e = element 8
--   valanceElectrons e == 6 
--   
valanceElectrons :: Element -> Int -- | Number of covalent bounds in element -- --
--   let e = element 8
--   covalentBounds e == 2 
--   
covalentBounds :: Element -> Int instance Eq Element instance Show Element module Chemistry.Formula data Formula Formula :: [(Element, Int)] -> Formula -- | Parse formula -- --
--   parseFormula "C2H4" `shouldBe` Formula [("C", 2), ("H", 4)]  
--   
parseFormula :: String -> Formula instance Eq Formula instance Show Formula