isotope-0.5.0.1: Isotopic masses and relative abundances.

CopyrightMichael Thomas
LicenseGPL-3
MaintainerMichael Thomas <Michaelt293@gmail.com>
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

Isotope.Ion

Description

This module allows the mass-to-charge ratio and polarity of ions to be calculated.

Synopsis

Documentation

newtype Mz Source #

The mass-to-charge ratio of an ion.

Constructors

Mz 

Fields

Instances

Eq Mz Source # 

Methods

(==) :: Mz -> Mz -> Bool #

(/=) :: Mz -> Mz -> Bool #

Ord Mz Source # 

Methods

compare :: Mz -> Mz -> Ordering #

(<) :: Mz -> Mz -> Bool #

(<=) :: Mz -> Mz -> Bool #

(>) :: Mz -> Mz -> Bool #

(>=) :: Mz -> Mz -> Bool #

max :: Mz -> Mz -> Mz #

min :: Mz -> Mz -> Mz #

Read Mz Source # 
Show Mz Source # 

Methods

showsPrec :: Int -> Mz -> ShowS #

show :: Mz -> String #

showList :: [Mz] -> ShowS #

class ToElementalComposition a => Ion a where Source #

The Ion type class. This type class has two methods: mz and polarity.

Methods

mz :: a -> Mz Source #

polarity :: a -> Polarity Source #

doublyProtonated :: a -> Protonated (Protonated a) Source #

doublyProtonated takes a type and returns a doubly Protonated ion.

newtype Deprotonated a Source #

Deprotonated represents a deprotonated ion.

Constructors

Deprotonated a 

doublyDeprotonated :: a -> Deprotonated (Deprotonated a) Source #

doublyDeprotonated takes a type and returns a doubly Deprotonated ion.