BiobaseTypes-0.1.2.1: Collection of types for bioinformatics

Safe HaskellNone
LanguageHaskell2010

Biobase.Types.Names

Contents

Description

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

Int-internalized species names.

newtype SpeciesName Source #

A species name. Represented with an Int, but behaves like a Text.

Constructors

SpeciesName 

Instances

Eq SpeciesName Source # 
Ord SpeciesName Source # 
Read SpeciesName Source # 
Show SpeciesName Source # 
IsString SpeciesName Source # 
Generic SpeciesName Source # 

Associated Types

type Rep SpeciesName :: * -> * #

Hashable SpeciesName Source # 
ToJSON SpeciesName Source # 
FromJSON SpeciesName Source # 
Binary SpeciesName Source # 
Serialize SpeciesName Source # 
NFData SpeciesName Source # 

Methods

rnf :: SpeciesName -> () #

Unbox SpeciesName Source # 
ConvertibleStrings Text SpeciesName Source # 
ConvertibleStrings SpeciesName Text Source # 
Vector Vector SpeciesName Source # 
MVector MVector SpeciesName Source # 
type Rep SpeciesName Source # 
type Rep SpeciesName = D1 (MetaData "SpeciesName" "Biobase.Types.Names" "BiobaseTypes-0.1.2.1-1LTYzU1e5OWItpBBqXiV1g" True) (C1 (MetaCons "SpeciesName" PrefixI True) (S1 (MetaSel (Just Symbol "getSpeciesNameRep") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))
data Vector SpeciesName Source # 
data MVector s SpeciesName Source # 

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.

Instances

Eq TaxonomicRank Source # 
Ord TaxonomicRank Source # 
Read TaxonomicRank Source # 
Show TaxonomicRank Source # 
IsString TaxonomicRank Source # 
Generic TaxonomicRank Source # 

Associated Types

type Rep TaxonomicRank :: * -> * #

Hashable TaxonomicRank Source # 
ToJSON TaxonomicRank Source # 
FromJSON TaxonomicRank Source # 
Binary TaxonomicRank Source # 
Serialize TaxonomicRank Source # 
NFData TaxonomicRank Source # 

Methods

rnf :: TaxonomicRank -> () #

ConvertibleStrings Text TaxonomicRank Source # 
ConvertibleStrings TaxonomicRank Text Source # 
type Rep TaxonomicRank Source # 
type Rep TaxonomicRank = D1 (MetaData "TaxonomicRank" "Biobase.Types.Names" "BiobaseTypes-0.1.2.1-1LTYzU1e5OWItpBBqXiV1g" True) (C1 (MetaCons "TaxonomicRank" PrefixI True) (S1 (MetaSel (Just Symbol "getTaxonomicRank") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 InternedText)))