Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Segment | |
|
Instances
Foldable Segment Source # | |
Defined in Unison.Util.AnnotatedText fold :: Monoid m => Segment m -> m # foldMap :: Monoid m => (a -> m) -> Segment a -> m # foldMap' :: Monoid m => (a -> m) -> Segment a -> m # foldr :: (a -> b -> b) -> b -> Segment a -> b # foldr' :: (a -> b -> b) -> b -> Segment a -> b # foldl :: (b -> a -> b) -> b -> Segment a -> b # foldl' :: (b -> a -> b) -> b -> Segment a -> b # foldr1 :: (a -> a -> a) -> Segment a -> a # foldl1 :: (a -> a -> a) -> Segment a -> a # elem :: Eq a => a -> Segment a -> Bool # maximum :: Ord a => Segment a -> a # minimum :: Ord a => Segment a -> a # | |
Functor Segment Source # | |
Generic (Segment a) Source # | |
Show a => Show (Segment a) Source # | |
Eq a => Eq (Segment a) Source # | |
Ord a => Ord (Segment a) Source # | |
Defined in Unison.Util.AnnotatedText | |
type Rep (Segment a) Source # | |
Defined in Unison.Util.AnnotatedText type Rep (Segment a) = D1 ('MetaData "Segment" "Unison.Util.AnnotatedText" "unison-pretty-printer-0.0.0-JaQ4cM0rSg6FItGMqbm2nz" 'False) (C1 ('MetaCons "Segment" 'PrefixI 'True) (S1 ('MetaSel ('Just "segment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "annotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a)))) |
newtype AnnotatedText a Source #
AnnotatedText (Seq (Segment a)) |
Instances
data AnnotatedExcerpt a Source #
AnnotatedExcerpt | |
|
Instances
Functor AnnotatedExcerpt Source # | |
Defined in Unison.Util.AnnotatedText fmap :: (a -> b) -> AnnotatedExcerpt a -> AnnotatedExcerpt b # (<$) :: a -> AnnotatedExcerpt b -> AnnotatedExcerpt a # | |
IsString (AnnotatedExcerpt a) Source # | |
Defined in Unison.Util.AnnotatedText fromString :: String -> AnnotatedExcerpt a # |
annotate' :: Maybe b -> AnnotatedText a -> AnnotatedText b Source #
deannotate :: AnnotatedText a -> AnnotatedText b Source #
annotate :: a -> AnnotatedText a -> AnnotatedText a Source #
annotateMaybe :: AnnotatedText (Maybe a) -> AnnotatedText a Source #
trailingNewLine :: AnnotatedText a -> Bool Source #
markup :: AnnotatedExcerpt a -> Map Range a -> AnnotatedExcerpt a Source #
textLength :: AnnotatedText a -> Int Source #
textEmpty :: AnnotatedText a -> Bool Source #
condensedExcerptToText :: Int -> AnnotatedExcerpt a -> AnnotatedText a Source #
excerptToText :: forall a. AnnotatedExcerpt a -> AnnotatedText a Source #
snipWithContext :: Int -> AnnotatedExcerpt a -> [AnnotatedExcerpt a] Source #