Copyright | Michael Thomas |
---|---|

License | GPL-3 |

Maintainer | Michael Thomas <Michaelt293@gmail.com> |

Stability | Experimental |

Safe Haskell | None |

Language | Haskell2010 |

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

- data Polarity
- newtype Mz = Mz {}
- class ToElementalComposition a => Ion a where
- newtype Protonated a = Protonated a
- doublyProtonated :: a -> Protonated (Protonated a)
- newtype Deprotonated a = Deprotonated a
- doublyDeprotonated :: a -> Deprotonated (Deprotonated a)

# Documentation

The mass-to-charge ratio of an ion.

class ToElementalComposition a => Ion a where Source #

ToElementalComposition a => Ion (Deprotonated a) Source # | |

ToElementalComposition a => Ion (Protonated a) Source # | |

newtype Protonated a Source #

Protonated represents a protonated ion.

Eq a => Eq (Protonated a) Source # | |

Ord a => Ord (Protonated a) Source # | |

Read a => Read (Protonated a) Source # | |

Show a => Show (Protonated a) Source # | |

ToElementalComposition a => ToElementalComposition (Protonated a) Source # | |

ToElementalComposition a => Ion (Protonated a) 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.

Eq a => Eq (Deprotonated a) Source # | |

Ord a => Ord (Deprotonated a) Source # | |

Read a => Read (Deprotonated a) Source # | |

Show a => Show (Deprotonated a) Source # | |

ToElementalComposition a => ToElementalComposition (Deprotonated a) Source # | |

ToElementalComposition a => Ion (Deprotonated a) Source # | |

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

`doublyDeprotonated`

takes a type and returns a doubly `Deprotonated`

ion.