Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Provides a basic way annotating scores.
- data Annotation
- 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 :: HasText a => ([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
.
annotateSpan :: Span -> String -> Score a -> Score aSource
Annotate a part of the score.
showAnnotations :: (HasPart' a, Ord (Part a), HasText a) => Score a -> Score aSource
Show all annotations in the score.