Module
Bio.Phylogeny.Internal.Attributes
- Package
- purescript-phylio
- Repository
- vibbits/phylio
#Attribute Source
data Attribute
An 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 String
Convert a Text
attribute to a string, otherwise Nothing
> attributeToString (Text "hello")
Just "hello"
> attributeToString (Bool true)
Nothing
#attributeToBool Source
attributeToBool :: Attribute -> Maybe Boolean
Convert a Text
attribute to a string, otherwise Nothing
> attributeToBool (Text "hello")
Nothing
> attributeToBool (Bool true)
Just true
#parseAttribute Source
parseAttribute :: String -> Attribute
Convert an arbitrary string into an Attribute