Safe Haskell | None |
---|---|
Language | Haskell2010 |
Names for biological things.
Species names are internalized and represented as an Int
. This allows
using them in structures like an IntMap
.
For other names, we newtype-wrap normal text internalization.
Synopsis
- newtype SpeciesName = SpeciesName {}
- speciesName :: Text -> SpeciesName
- newtype TaxonomicRank = TaxonomicRank {}
Int-internalized species names.
newtype SpeciesName Source #
A species name. Represented with an Int
, but behaves like a Text
.
Instances
speciesName :: Text -> SpeciesName Source #
Smart constructor that performs the correct internalization.
Internalize taxonomic rank names
newtype TaxonomicRank Source #
The taxonomic rank. This encodes the name for a given rank.