BiobaseTypes-0.2.0.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 # 
Instance details

Defined in Biobase.Types.Names

Ord SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Read SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Show SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

IsString SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Generic SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Associated Types

type Rep SpeciesName :: Type -> Type #

NFData SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Methods

rnf :: SpeciesName -> () #

Hashable SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

ToJSON SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

FromJSON SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Binary SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Serialize SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Unbox SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

Vector Vector SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

ConvertibleStrings Text SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

ConvertibleStrings SpeciesName Text Source # 
Instance details

Defined in Biobase.Types.Names

MVector MVector SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

type Rep SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

type Rep SpeciesName = D1 (MetaData "SpeciesName" "Biobase.Types.Names" "BiobaseTypes-0.2.0.1-B9coIbijR6NEFcCxvqIOZp" True) (C1 (MetaCons "SpeciesName" PrefixI True) (S1 (MetaSel (Just "getSpeciesNameRep") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))
newtype Vector SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

newtype MVector s SpeciesName Source # 
Instance details

Defined in Biobase.Types.Names

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 # 
Instance details

Defined in Biobase.Types.Names

Ord TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Read TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Show TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

IsString TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Generic TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Associated Types

type Rep TaxonomicRank :: Type -> Type #

NFData TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Methods

rnf :: TaxonomicRank -> () #

Hashable TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

ToJSON TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

FromJSON TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Binary TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

Serialize TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

ConvertibleStrings Text TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

ConvertibleStrings TaxonomicRank Text Source # 
Instance details

Defined in Biobase.Types.Names

type Rep TaxonomicRank Source # 
Instance details

Defined in Biobase.Types.Names

type Rep TaxonomicRank = D1 (MetaData "TaxonomicRank" "Biobase.Types.Names" "BiobaseTypes-0.2.0.1-B9coIbijR6NEFcCxvqIOZp" True) (C1 (MetaCons "TaxonomicRank" PrefixI True) (S1 (MetaSel (Just "getTaxonomicRank") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 InternedText)))