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