Module
Bio.Phylogeny.Internal.Attributes
- Package
- purescript-phylio
- Repository
- vibbits/phylio
#Attribute Source
data AttributeAn Attribute describes some information about a node in the graph.
This type represents the structure for storing attributes, not
what attributes can be stored.
Constructors
Instances
#attributeToString Source
attributeToString :: Attribute -> Maybe StringConvert a Text attribute to a string, otherwise Nothing
> attributeToString (Text "hello")
Just "hello"
> attributeToString (Bool true)
Nothing
#attributeToBool Source
attributeToBool :: Attribute -> Maybe BooleanConvert a Text attribute to a string, otherwise Nothing
> attributeToBool (Text "hello")
Nothing
> attributeToBool (Bool true)
Just true
#parseAttribute Source
parseAttribute :: String -> AttributeConvert an arbitrary string into an Attribute