Copyright | (c) Dominik Schrempf 2019 |
---|---|
License | GPL-3 |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu Jan 17 14:56:27 2019.
Code partly taken from Biobase.Newick.Import.
- In particular, no conversion from _ to (space) is done right now.
Synopsis
- type Parser = Parsec Void ByteString
- newick :: Parser (Tree PhyloByteStringLabel)
- manyNewick :: Parser [Tree PhyloByteStringLabel]
- forest :: Parser [Tree PhyloByteStringLabel]
- leaf :: Parser (Tree PhyloByteStringLabel)
- node :: Parser PhyloByteStringLabel
- name :: Parser ByteString
- branchLength :: Parser Double
Documentation
manyNewick :: Parser [Tree PhyloByteStringLabel] Source #
Parse many Newick trees.
forest :: Parser [Tree PhyloByteStringLabel] Source #
A forest
is a set of trees separated by ,
and enclosed by parentheses.
node :: Parser PhyloByteStringLabel Source #
A node
has a name and a branchLength
.
name :: Parser ByteString Source #
A name can be any string of printable characters except blanks, colons, semicolons, parentheses, and square brackets (and commas).
branchLength :: Parser Double Source #
Branch lengths default to 0.