Copyright | (c) Hans Hoglund 2012-2014 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
Provides a basic way annotating scores.
- data Annotation
- getAnnotation :: Annotation -> [String]
- annotate :: String -> Score a -> Score a
- annotateSpan :: Span -> String -> Score a -> Score a
- showAnnotations :: (HasPart' a, Ord (Part a), HasText a) => Score a -> Score a
- showAnnotations' :: (HasPart' a, Ord (Part a), HasText a) => String -> Score a -> Score a
- withAnnotations :: ([String] -> Score a -> Score a) -> Score a -> Score a
Documentation
data Annotation Source
An annotation is a unique textual value attached to parts of a score.
They are ignored by default, but can be collected with withAnnotations
.
getAnnotation :: Annotation -> [String] Source
showAnnotations :: (HasPart' a, Ord (Part a), HasText a) => Score a -> Score a Source
Show all annotations in the score.