Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Util.Pretty

Contents

Description

Like Show, but designed to be easy to read rather than unambiguous and complete.

Synopsis

Documentation

data Doc Source #

Instances
Eq Doc # 
Instance details

Defined in Util.Format

Methods

(==) :: Doc -> Doc -> Bool #

(/=) :: Doc -> Doc -> Bool #

Show Doc # 
Instance details

Defined in Util.Format

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

IsString Doc # 
Instance details

Defined in Util.Format

Methods

fromString :: String -> Doc #

Semigroup Doc # 
Instance details

Defined in Util.Format

Methods

(<>) :: Doc -> Doc -> Doc #

sconcat :: NonEmpty Doc -> Doc #

stimes :: Integral b => b -> Doc -> Doc #

Monoid Doc # 
Instance details

Defined in Util.Format

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Pretty Doc # 
Instance details

Defined in Util.Pretty

(</>) :: Doc -> Doc -> Doc infixr 5 Source #

Soft break with no space.

(<+/>) :: Doc -> Doc -> Doc infixr 5 Source #

Soft break with a space.

(<//>) :: Doc -> Doc -> Doc infixr 4 Source #

Hard break with a single Format.newline.

withIndent :: Doc -> Doc Source #

Increase the indent level for the given Doc. The indent change only takes effect after the first break, so if you want it to take effect immediately, use one of indent, indent_, or indentLine.

The reason indent is delayed is that this way you can do a hanging indent, where the current line is unindented, but it will be indented if it wraps. Otherwise you don't know where to put the indent, since you don't know where the break will happen.

indent :: Doc -> Doc Source #

Change the indent level and add a no-space break so it takes effect immediately.

indent_ :: Doc -> Doc Source #

Change the indent level and add a spaced break so it takes effect immediately.

indentLine :: Doc -> Doc Source #

Change the indent level and add a hard break so it takes effect immediately.

(<+>) :: Doc -> Doc -> Doc infixr 6 Source #

Join two docs with a space.

render :: Text -> Format.Width -> Doc -> Lazy.Text Source #

Render a Doc, wrapping after the given Width.

class Pretty a Source #

Format values in an eye-pleasing way. Unlike Show, this isn't intended to produce any kind of valid syntax, or even preserve information.

Minimal complete definition

pretty | format

Instances
Pretty Bool # 
Instance details

Defined in Util.Pretty

Pretty Char.Char # 
Instance details

Defined in Util.Pretty

Pretty Double # 
Instance details

Defined in Util.Pretty

Pretty Float # 
Instance details

Defined in Util.Pretty

Pretty Int # 
Instance details

Defined in Util.Pretty

Pretty Integer # 
Instance details

Defined in Util.Pretty

Pretty Word.Word8 # 
Instance details

Defined in Util.Pretty

Pretty Word.Word16 # 
Instance details

Defined in Util.Pretty

Pretty Word.Word32 # 
Instance details

Defined in Util.Pretty

Pretty Word.Word64 # 
Instance details

Defined in Util.Pretty

Pretty () # 
Instance details

Defined in Util.Pretty

Methods

pretty :: () -> Text Source #

format :: () -> Doc Source #

formatList :: [()] -> Doc Source #

Pretty Dynamic.Dynamic # 
Instance details

Defined in Util.Pretty

Pretty ByteString.ByteString # 
Instance details

Defined in Util.Pretty

Pretty UTCTime # 
Instance details

Defined in Util.Pretty

Pretty NominalDiffTime # 
Instance details

Defined in Util.Pretty

Pretty Calendar.Day # 
Instance details

Defined in Util.Pretty

Pretty Lazy.Text # 
Instance details

Defined in Util.Pretty

Pretty Text # 
Instance details

Defined in Util.Pretty

Pretty Doc # 
Instance details

Defined in Util.Pretty

Pretty Rect # 
Instance details

Defined in Util.Rect

Pretty Size # 
Instance details

Defined in Util.Memory

Pretty Commit # 
Instance details

Defined in Util.GitTypes

Pretty UnserializeError # 
Instance details

Defined in Util.Serialize

Pretty Orientation # 
Instance details

Defined in Ui.Types

Pretty Key # 
Instance details

Defined in Ui.Key

Pretty RulerId # 
Instance details

Defined in Ui.Id

Pretty TrackId # 
Instance details

Defined in Ui.Id

Pretty ViewId # 
Instance details

Defined in Ui.Id

Pretty BlockId # 
Instance details

Defined in Ui.Id

Pretty Namespace # 
Instance details

Defined in Ui.Id

Pretty Id # 
Instance details

Defined in Ui.Id

Pretty Color # 
Instance details

Defined in Ui.Color

Pretty Control # 
Instance details

Defined in Synth.Shared.Control

Pretty Anga # 
Instance details

Defined in Solkattu.Tala

Pretty Tala # 
Instance details

Defined in Solkattu.Tala

Pretty Tags # 
Instance details

Defined in Solkattu.Tags

Pretty Qualified # 
Instance details

Defined in Instrument.InstTypes

Pretty Flag # 
Instance details

Defined in Derive.Flags

Pretty Module # 
Instance details

Defined in Derive.Call.Module

Pretty Html # 
Instance details

Defined in Util.Doc

Pretty Doc # 
Instance details

Defined in Util.Doc

Pretty ScoreTime # 
Instance details

Defined in Ui.ScoreTime

Pretty Zoom # 
Instance details

Defined in Ui.Zoom

Pretty RealTime # 
Instance details

Defined in Perform.RealTime

Pretty Selection # 
Instance details

Defined in Ui.Sel

Pretty Attributes # 
Instance details

Defined in Derive.Attrs

Pretty Frame # 
Instance details

Defined in Util.Audio.Audio

Pretty Skeleton # 
Instance details

Defined in Ui.Skeleton

Pretty ControlConfig # 
Instance details

Defined in Synth.Faust.DriverC

Pretty State # 
Instance details

Defined in Solkattu.Sequence

Pretty Tempo # 
Instance details

Defined in Solkattu.Sequence

Pretty TempoChange # 
Instance details

Defined in Solkattu.Sequence

Pretty FMatra # 
Instance details

Defined in Solkattu.Sequence

Pretty Duration # 
Instance details

Defined in Solkattu.Sequence

Pretty ChannelMessage # 
Instance details

Defined in Midi.Midi

Pretty Key # 
Instance details

Defined in Midi.Midi

Pretty Message # 
Instance details

Defined in Midi.Midi

Pretty WriteDevice # 
Instance details

Defined in Midi.Midi

Pretty ReadDevice # 
Instance details

Defined in Midi.Midi

Pretty ReadMessage # 
Instance details

Defined in Midi.Midi

Pretty WriteMessage # 
Instance details

Defined in Midi.Midi

Pretty Key # 
Instance details

Defined in Perform.Pitch

Pretty Transpose # 
Instance details

Defined in Perform.Pitch

Pretty ScaleId # 
Instance details

Defined in Perform.Pitch

Pretty NoteNumber # 
Instance details

Defined in Perform.Pitch

Pretty Input # 
Instance details

Defined in Perform.Pitch

Pretty Degree # 
Instance details

Defined in Perform.Pitch

Pretty Pitch # 
Instance details

Defined in Perform.Pitch

Pretty Note # 
Instance details

Defined in Perform.Pitch

Pretty Control # 
Instance details

Defined in Midi.State

Pretty Channel # 
Instance details

Defined in Midi.State

Pretty State # 
Instance details

Defined in Midi.State

Pretty Message # 
Instance details

Defined in Midi.Interface

Pretty Frame # 
Instance details

Defined in Derive.Stack

Pretty Stack # 
Instance details

Defined in Derive.Stack

Pretty Msg # 
Instance details

Defined in Util.Log

Pretty Modification # 
Instance details

Defined in Util.Git

Pretty Tree # 
Instance details

Defined in Util.Git

Pretty Blob # 
Instance details

Defined in Util.Git

Pretty Query # 
Instance details

Defined in App.ReplProtocol

Pretty Stack # 
Instance details

Defined in Ui.Event

Pretty Event # 
Instance details

Defined in Ui.Event

Pretty Events # 
Instance details

Defined in Ui.Events

Pretty Range # 
Instance details

Defined in Ui.Events

Pretty Mark # 
Instance details

Defined in Ui.Ruler

Pretty Marklist # 
Instance details

Defined in Ui.Ruler

Pretty MeterConfig # 
Instance details

Defined in Ui.Ruler

Pretty Ruler # 
Instance details

Defined in Ui.Ruler

Pretty LabelComponents # 
Instance details

Defined in Cmd.Ruler.Meter

Pretty Config # 
Instance details

Defined in Cmd.Ruler.Meter

Pretty RankName # 
Instance details

Defined in Cmd.Ruler.Meter

Pretty LabeledMark # 
Instance details

Defined in Cmd.Ruler.Meter

Pretty Hash # 
Instance details

Defined in Synth.Shared.Note

Pretty Note # 
Instance details

Defined in Synth.Shared.Note

Pretty Note # 
Instance details

Defined in Ness.Guitar.GConvert

Pretty Warp # 
Instance details

Defined in Derive.Warp

Pretty Type # 
Instance details

Defined in Derive.ScoreTypes

Pretty PControl # 
Instance details

Defined in Derive.ScoreTypes

Pretty Control # 
Instance details

Defined in Derive.ScoreTypes

Pretty Instrument # 
Instance details

Defined in Derive.ScoreTypes

Pretty Str # 
Instance details

Defined in Derive.Expr

Pretty Symbol # 
Instance details

Defined in Derive.Expr

Pretty Sollu # 
Instance details

Defined in Solkattu.Solkattu

Pretty Pattern # 
Instance details

Defined in Solkattu.Solkattu

Pretty Tag # 
Instance details

Defined in Solkattu.Solkattu

Pretty Space # 
Instance details

Defined in Solkattu.Solkattu

Pretty Side # 
Instance details

Defined in Solkattu.Solkattu

Pretty Group # 
Instance details

Defined in Solkattu.Solkattu

Pretty ControlFunction # 
Instance details

Defined in Derive.BaseTypes

Pretty PControlRef # 
Instance details

Defined in Derive.BaseTypes

Pretty ControlRef # 
Instance details

Defined in Derive.BaseTypes

Pretty Quoted # 
Instance details

Defined in Derive.BaseTypes

Pretty Val # 
Instance details

Defined in Derive.BaseTypes

Pretty Environ # 
Instance details

Defined in Derive.BaseTypes

Pretty Duration # 
Instance details

Defined in Derive.BaseTypes

Pretty PitchError # 
Instance details

Defined in Derive.BaseTypes

Pretty Scale # 
Instance details

Defined in Derive.BaseTypes

Pretty PitchConfig # 
Instance details

Defined in Derive.BaseTypes

Pretty PSignal # 
Instance details

Defined in Derive.BaseTypes

Pretty Pitch # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Event # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Time # 
Instance details

Defined in Perform.Lilypond.Types

Pretty NoteDuration # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Duration # 
Instance details

Defined in Perform.Lilypond.Types

Pretty StaffConfig # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Config # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Meter # 
Instance details

Defined in Perform.Lilypond.Meter

Pretty Event # 
Instance details

Defined in Derive.Score

Pretty TrackSignal # 
Instance details

Defined in Ui.Track

Pretty RenderSource # 
Instance details

Defined in Ui.Track

Pretty RenderStyle # 
Instance details

Defined in Ui.Track

Pretty RenderConfig # 
Instance details

Defined in Ui.Track

Pretty Track # 
Instance details

Defined in Ui.Track

Pretty Padding # 
Instance details

Defined in Ui.Block

Pretty View # 
Instance details

Defined in Ui.Block

Pretty TracklikeId # 
Instance details

Defined in Ui.Block

Pretty TrackFlag # 
Instance details

Defined in Ui.Block

Pretty Status # 
Instance details

Defined in Ui.Block

Pretty DisplayTrack # 
Instance details

Defined in Ui.Block

Pretty Track # 
Instance details

Defined in Ui.Block

Pretty Box # 
Instance details

Defined in Ui.Block

Pretty Config # 
Instance details

Defined in Ui.Block

Pretty NoteDestination # 
Instance details

Defined in Ui.Block

Pretty TrackDestinations # 
Instance details

Defined in Ui.Block

Pretty Block # 
Instance details

Defined in Ui.Block

Pretty Track # 
Instance details

Defined in Ui.UiMsg

Pretty Context # 
Instance details

Defined in Ui.UiMsg

Pretty UiMsg # 
Instance details

Defined in Ui.UiMsg

Pretty SelectionOrientation # 
Instance details

Defined in Ui.BlockC

Pretty Selection # 
Instance details

Defined in Ui.BlockC

Pretty NumValue # 
Instance details

Defined in Derive.ValType

Pretty NumType # 
Instance details

Defined in Derive.ValType

Pretty Type # 
Instance details

Defined in Derive.ValType

Pretty Type # 
Instance details

Defined in Derive.ParseTitle

Pretty Val # 
Instance details

Defined in Derive.RestrictedEnviron

Pretty Environ # 
Instance details

Defined in Derive.RestrictedEnviron

Pretty Config # 
Instance details

Defined in Instrument.Common

Pretty Flag # 
Instance details

Defined in Perform.Im.Patch

Pretty Patch # 
Instance details

Defined in Perform.Im.Patch

Pretty Note # 
Instance details

Defined in Cmd.Instrument.Drums

Pretty Emphasis # 
Instance details

Defined in Solkattu.Realize

Pretty Stroke # 
Instance details

Defined in Solkattu.Instrument.Sargam

Pretty Stroke # 
Instance details

Defined in Solkattu.Instrument.Reyong

Pretty Valantalai # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Thoppi # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Stroke # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Stroke # 
Instance details

Defined in Solkattu.Instrument.KendangTunggal

Pretty Symbol # 
Instance details

Defined in Solkattu.Format.Format

Pretty StartEnd # 
Instance details

Defined in Solkattu.Format.Format

Pretty StrokeMaps # 
Instance details

Defined in Solkattu.Korvai

Pretty Metadata # 
Instance details

Defined in Solkattu.Korvai

Pretty KorvaiType # 
Instance details

Defined in Solkattu.Korvai

Pretty Korvai # 
Instance details

Defined in Solkattu.Korvai

Pretty Keyswitch # 
Instance details

Defined in Perform.Midi.Patch

Pretty Keymap # 
Instance details

Defined in Perform.Midi.Patch

Pretty InitializePatch # 
Instance details

Defined in Perform.Midi.Patch

Pretty Flag # 
Instance details

Defined in Perform.Midi.Patch

Pretty Scale # 
Instance details

Defined in Perform.Midi.Patch

Pretty Patch # 
Instance details

Defined in Perform.Midi.Patch

Pretty Settings # 
Instance details

Defined in Perform.Midi.Patch

Pretty Initialization # 
Instance details

Defined in Perform.Midi.Patch

Pretty Config # 
Instance details

Defined in Perform.Midi.Patch

Pretty Event # 
Instance details

Defined in Perform.Midi.Types

Pretty Patch # 
Instance details

Defined in Perform.Midi.Types

Pretty State # 
Instance details

Defined in Perform.Midi.Perform

Pretty Record # 
Instance details

Defined in Instrument.Sysex

Pretty Backend # 
Instance details

Defined in Instrument.Inst

Pretty Default # 
Instance details

Defined in Ui.UiConfig

Pretty LilypondPerformance # 
Instance details

Defined in Ui.UiConfig

Pretty MidiPerformance # 
Instance details

Defined in Ui.UiConfig

Pretty Meta # 
Instance details

Defined in Ui.UiConfig

Pretty Backend # 
Instance details

Defined in Ui.UiConfig

Pretty Allocation # 
Instance details

Defined in Ui.UiConfig

Pretty Allocations # 
Instance details

Defined in Ui.UiConfig

Pretty Config # 
Instance details

Defined in Ui.UiConfig

Pretty State # 
Instance details

Defined in Ui.Update

Pretty Track # 
Instance details

Defined in Ui.Update

Pretty View # 
Instance details

Defined in Ui.Update

Pretty CmdUpdate # 
Instance details

Defined in Ui.Update

Pretty Error # 
Instance details

Defined in Ui.Ui

Pretty TrackInfo # 
Instance details

Defined in Ui.Ui

Pretty Range # 
Instance details

Defined in Ui.Ui

Pretty Track # 
Instance details

Defined in Ui.Ui

Pretty State # 
Instance details

Defined in Ui.Ui

Pretty Sliced # 
Instance details

Defined in Ui.TrackTree

Pretty Track # 
Instance details

Defined in Ui.TrackTree

Pretty Status # 
Instance details

Defined in Perform.Transport

Pretty TrackWarp # 
Instance details

Defined in Derive.TrackWarp

Pretty Track # 
Instance details

Defined in Derive.TrackWarp

Pretty Scale # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ControlDamage # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ScoreDamage # 
Instance details

Defined in Derive.Deriver.Monad

Pretty BlockDeps # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheEntry # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Cached # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheKey # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Cache # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ArgName # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallName # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Integrated # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ControlMod # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheStats # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Collect # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Merger # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Merge # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Mode # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallPriority # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Inversion # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Dynamic # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Tagged # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ErrorPlace # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallError # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ErrorVal # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Error # 
Instance details

Defined in Derive.Deriver.Monad

Pretty TransposeType # 
Instance details

Defined in Derive.Typecheck

Pretty TimeType # 
Instance details

Defined in Derive.Typecheck

Pretty Normalized # 
Instance details

Defined in Derive.Typecheck

Pretty SaveHistory # 
Instance details

Defined in Cmd.SaveGitTypes

Pretty CodePosition # 
Instance details

Defined in Perform.Lilypond.Constants

Pretty FreeCodePosition # 
Instance details

Defined in Perform.Lilypond.Constants

Pretty Range # 
Instance details

Defined in Derive.Scale

Pretty String # 
Instance details

Defined in Derive.Call.StringUtil

Pretty UpDown # 
Instance details

Defined in Derive.Call

Pretty Bol # 
Instance details

Defined in Derive.C.India.Pakhawaj

Pretty Stroke # 
Instance details

Defined in Derive.C.India.Pakhawaj

Pretty Stroke # 
Instance details

Defined in Derive.C.India.Mridangam

Pretty KotekanNote # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty Repeat # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty Atom # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty KotekanPattern # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty SavePoint # 
Instance details

Defined in Cmd.SaveGit

Pretty Key # 
Instance details

Defined in Derive.Scale.Theory

Pretty RelativePitch # 
Instance details

Defined in Derive.Scale.TheoryFormat

Pretty DegreeMap # 
Instance details

Defined in Derive.Scale.Scales

Pretty Key # 
Instance details

Defined in Derive.Scale.JustScales

Pretty Voice # 
Instance details

Defined in Perform.Lilypond.Process

Pretty Voices # 
Instance details

Defined in Perform.Lilypond.Process

Pretty Ly # 
Instance details

Defined in Perform.Lilypond.Process

Pretty StaffGroup # 
Instance details

Defined in Perform.Lilypond.Lilypond

Pretty Tuning # 
Instance details

Defined in Derive.Scale.BaliScales

Pretty Performance # 
Instance details

Defined in Cmd.Msg

Pretty DeriveStatus # 
Instance details

Defined in Cmd.Msg

Pretty Msg # 
Instance details

Defined in Cmd.Msg

Pretty Backend # 
Instance details

Defined in Cmd.Cmd

Pretty ResolvedInstrument # 
Instance details

Defined in Cmd.Cmd

Pretty SelectionHistory # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryEntry # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryCollect # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryConfig # 
Instance details

Defined in Cmd.Cmd

Pretty History # 
Instance details

Defined in Cmd.Cmd

Pretty InstrumentCode # 
Instance details

Defined in Cmd.Cmd

Pretty Action # 
Instance details

Defined in Cmd.Cmd

Pretty EditMode # 
Instance details

Defined in Cmd.Cmd

Pretty SyncConfig # 
Instance details

Defined in Cmd.Cmd

Pretty Sample # 
Instance details

Defined in Synth.Sampler.Patch

Pretty Patch # 
Instance details

Defined in Synth.Sampler.Patch

Pretty Hand # 
Instance details

Defined in Derive.C.Bali.Reyong

Pretty Degree # 
Instance details

Defined in Derive.C.Bali.Reyong

Pretty Expr # 
Instance details

Defined in Derive.C.India.Gamakam2

Pretty Composite # 
Instance details

Defined in Derive.Instrument.DUtil

Pretty MouseOn # 
Instance details

Defined in Cmd.Keymap

Pretty Bindable # 
Instance details

Defined in Cmd.Keymap

Pretty KeySpec # 
Instance details

Defined in Cmd.Keymap

Pretty Patch # 
Instance details

Defined in Cmd.Instrument.MidiInst

Pretty Code # 
Instance details

Defined in Cmd.Instrument.MidiInst

Pretty Control # 
Instance details

Defined in Cmd.ModifyNotes

Pretty Note # 
Instance details

Defined in Cmd.ModifyNotes

Pretty Track # 
Instance details

Defined in Cmd.Integrate.Convert

Pretty Modify # 
Instance details

Defined in Cmd.Integrate.Merge

Pretty Edit # 
Instance details

Defined in Cmd.Integrate.Merge

Pretty Pos # 
Instance details

Defined in Cmd.EditUtil

Pretty CallType # 
Instance details

Defined in Cmd.CallDoc

Pretty a => Pretty [a] # 
Instance details

Defined in Util.Pretty

Methods

pretty :: [a] -> Text Source #

format :: [a] -> Doc Source #

formatList :: [[a]] -> Doc Source #

Pretty a => Pretty (Maybe a) # 
Instance details

Defined in Util.Pretty

(Integral a, Pretty a) => Pretty (Ratio.Ratio a) # 
Instance details

Defined in Util.Pretty

Pretty a => Pretty (NonEmpty a) # 
Instance details

Defined in Util.Pretty

Pretty v => Pretty (IntMap v) # 
Instance details

Defined in Util.Pretty

Pretty a => Pretty (Tree.Tree a) # 
Instance details

Defined in Util.Pretty

Pretty a => Pretty (Set a) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: Set a -> Text Source #

format :: Set a -> Doc Source #

formatList :: [Set a] -> Doc Source #

(Unboxed.Unbox a, Pretty a) => Pretty (Unboxed.Vector a) # 
Instance details

Defined in Util.Pretty

(Storable a, Pretty a) => Pretty (Storable.Vector a) # 
Instance details

Defined in Util.Pretty

Pretty a => Pretty (Vector.Vector a) # 
Instance details

Defined in Util.Pretty

Pretty n => Pretty (Ranges n) # 
Instance details

Defined in Util.Ranges

Pretty a => Pretty (Builder a) # 
Instance details

Defined in Util.LazyVector

Pretty a => Pretty (Lazy a) # 
Instance details

Defined in Util.LazyVector

Methods

pretty :: Lazy a -> Text Source #

format :: Lazy a -> Doc Source #

formatList :: [Lazy a] -> Doc Source #

Pretty a => Pretty (Stroke a) # 
Instance details

Defined in Solkattu.Sequence

Pretty dur => Pretty (NoteT dur) # 
Instance details

Defined in Midi.Synth

Methods

pretty :: NoteT dur -> Text Source #

format :: NoteT dur -> Doc Source #

formatList :: [NoteT dur] -> Doc Source #

Pretty d => Pretty (LEvent d) # 
Instance details

Defined in Derive.LEvent

Pretty y => Pretty (Sample y) # 
Instance details

Defined in Util.TimeVector

Pretty y => Pretty (Segment y) # 
Instance details

Defined in Util.Segment

Pretty v => Pretty (Signal v) # 
Instance details

Defined in Util.Segment

Pretty (Signal kind) # 
Instance details

Defined in Perform.Signal

Methods

pretty :: Signal kind -> Text Source #

format :: Signal kind -> Doc Source #

formatList :: [Signal kind] -> Doc Source #

Pretty a => Pretty (Typed a) # 
Instance details

Defined in Derive.ScoreTypes

ShowVal val => Pretty (Term val) # 
Instance details

Defined in Derive.Expr

Methods

pretty :: Term val -> Text Source #

format :: Term val -> Doc Source #

formatList :: [Term val] -> Doc Source #

ShowVal val => Pretty (Call val) # 
Instance details

Defined in Derive.Expr

Methods

pretty :: Call val -> Text Source #

format :: Call val -> Doc Source #

formatList :: [Call val] -> Doc Source #

Pretty sollu => Pretty (NoteT sollu) # 
Instance details

Defined in Solkattu.Solkattu

Methods

pretty :: NoteT sollu -> Text Source #

format :: NoteT sollu -> Doc Source #

formatList :: [NoteT sollu] -> Doc Source #

Pretty sollu => Pretty (Note sollu) # 
Instance details

Defined in Solkattu.Solkattu

Methods

pretty :: Note sollu -> Text Source #

format :: Note sollu -> Doc Source #

formatList :: [Note sollu] -> Doc Source #

Pretty (RawPitch a) #

Will look like: 62.95nn,4i(*wayang)

Instance details

Defined in Derive.BaseTypes

Pretty a => Pretty (Stream a) # 
Instance details

Defined in Derive.Stream

Pretty a => Pretty (AttributeMap a) # 
Instance details

Defined in Instrument.Common

Pretty code => Pretty (Common code) # 
Instance details

Defined in Instrument.Common

Methods

pretty :: Common code -> Text Source #

format :: Common code -> Doc Source #

formatList :: [Common code] -> Doc Source #

Pretty stroke => Pretty (Group stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Group stroke -> Text Source #

format :: Group stroke -> Doc Source #

formatList :: [Group stroke] -> Doc Source #

Pretty stroke => Pretty (Instrument stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Instrument stroke -> Text Source #

format :: Instrument stroke -> Doc Source #

formatList :: [Instrument stroke] -> Doc Source #

Pretty stroke => Pretty (StrokeMap stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: StrokeMap stroke -> Text Source #

format :: StrokeMap stroke -> Doc Source #

formatList :: [StrokeMap stroke] -> Doc Source #

Pretty stroke => Pretty (Patterns stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Patterns stroke -> Text Source #

format :: Patterns stroke -> Doc Source #

formatList :: [Patterns stroke] -> Doc Source #

Pretty stroke => Pretty (Stroke stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Stroke stroke -> Text Source #

format :: Stroke stroke -> Doc Source #

formatList :: [Stroke stroke] -> Doc Source #

Pretty stroke => Pretty (Note stroke) # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Note stroke -> Text Source #

format :: Note stroke -> Doc Source #

formatList :: [Note stroke] -> Doc Source #

Pretty stroke => Pretty (Section stroke) # 
Instance details

Defined in Solkattu.Korvai

Methods

pretty :: Section stroke -> Text Source #

format :: Section stroke -> Doc Source #

formatList :: [Section stroke] -> Doc Source #

Pretty code => Pretty (SynthDecl code) # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: SynthDecl code -> Text Source #

format :: SynthDecl code -> Doc Source #

formatList :: [SynthDecl code] -> Doc Source #

Pretty code => Pretty (Synth code) # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: Synth code -> Text Source #

format :: Synth code -> Doc Source #

formatList :: [Synth code] -> Doc Source #

Pretty code => Pretty (Db code) # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: Db code -> Text Source #

format :: Db code -> Doc Source #

formatList :: [Db code] -> Doc Source #

Pretty code => Pretty (Inst code) # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: Inst code -> Text Source #

format :: Inst code -> Doc Source #

formatList :: [Inst code] -> Doc Source #

Pretty t => Pretty (Block t) # 
Instance details

Defined in Ui.Update

Pretty (Call d) # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: Call d -> Text Source #

format :: Call d -> Doc Source #

formatList :: [Call d] -> Doc Source #

Pretty val => Pretty (Context val) # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: Context val -> Text Source #

format :: Context val -> Doc Source #

formatList :: [Context val] -> Doc Source #

Pretty val => Pretty (PassedArgs val) # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (PatternCall call) # 
Instance details

Defined in Derive.Deriver.Monad

Show a => Pretty (CallDuration a) # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (TrackCall d) # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (ScopePriority call) # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (CallMap call) # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: CallMap call -> Text Source #

format :: CallMap call -> Doc Source #

formatList :: [CallMap call] -> Doc Source #

Pretty (Entry call) # 
Instance details

Defined in Derive.Library

Methods

pretty :: Entry call -> Text Source #

format :: Entry call -> Doc Source #

formatList :: [Entry call] -> Doc Source #

Pretty (TrackInfo d) # 
Instance details

Defined in Derive.EvalTrack

Pretty a => Pretty (GenericEvent a) # 
Instance details

Defined in Derive.Call.Sub

Pretty a => Pretty (Note a) # 
Instance details

Defined in Derive.C.India.Pakhawaj

Methods

pretty :: Note a -> Text Source #

format :: Note a -> Doc Source #

formatList :: [Note a] -> Doc Source #

Pretty a => Pretty (Note a) # 
Instance details

Defined in Derive.C.Bali.Gangsa

Methods

pretty :: Note a -> Text Source #

format :: Note a -> Doc Source #

formatList :: [Note a] -> Doc Source #

Pretty a => Pretty (Realization a) # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty a => Pretty (Pasang a) # 
Instance details

Defined in Derive.C.Bali.Gangsa

(Show pitch, Pretty pitch) => Pretty (GenericInput pitch) # 
Instance details

Defined in Cmd.InputNote

Pretty pos => Pretty (Position pos) # 
Instance details

Defined in Derive.Call.Ly

Pretty (a -> b) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a -> b) -> Text Source #

format :: (a -> b) -> Doc Source #

formatList :: [a -> b] -> Doc Source #

(Pretty a, Pretty b) => Pretty (Either a b) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: Either a b -> Text Source #

format :: Either a b -> Doc Source #

formatList :: [Either a b] -> Doc Source #

(Pretty a, Pretty b) => Pretty (a, b) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a, b) -> Text Source #

format :: (a, b) -> Doc Source #

formatList :: [(a, b)] -> Doc Source #

(Pretty k, Pretty v) => Pretty (Map k v) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: Map k v -> Text Source #

format :: Map k v -> Doc Source #

formatList :: [Map k v] -> Doc Source #

(Pretty a, Pretty b) => Pretty (Seq.Paired a b) # 
Instance details

Defined in Util.Pretty

(Pretty g, Pretty a) => Pretty (Flat g a) # 
Instance details

Defined in Solkattu.Sequence

Methods

pretty :: Flat g a -> Text Source #

format :: Flat g a -> Doc Source #

formatList :: [Flat g a] -> Doc Source #

(Pretty a, Pretty g) => Pretty (Note g a) # 
Instance details

Defined in Solkattu.Sequence

Methods

pretty :: Note g a -> Text Source #

format :: Note g a -> Doc Source #

formatList :: [Note g a] -> Doc Source #

(Pretty err, Pretty a) => Pretty (UntilFail err a) # 
Instance details

Defined in Util.UF

Methods

pretty :: UntilFail err a -> Text Source #

format :: UntilFail err a -> Doc Source #

formatList :: [UntilFail err a] -> Doc Source #

(Pretty t, Pretty u) => Pretty (Update t u) # 
Instance details

Defined in Ui.Update

Methods

pretty :: Update t u -> Text Source #

format :: Update t u -> Doc Source #

formatList :: [Update t u] -> Doc Source #

(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a, b, c) -> Text Source #

format :: (a, b, c) -> Doc Source #

formatList :: [(a, b, c)] -> Doc Source #

(Pretty note, Pretty control, Pretty pitch) => Pretty (Scope note control pitch) # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: Scope note control pitch -> Text Source #

format :: Scope note control pitch -> Doc Source #

formatList :: [Scope note control pitch] -> Doc Source #

(Pretty a, Pretty b, Pretty c, Pretty d) => Pretty (a, b, c, d) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a, b, c, d) -> Text Source #

format :: (a, b, c, d) -> Doc Source #

formatList :: [(a, b, c, d)] -> Doc Source #

(Pretty gen, Pretty trans, Pretty track, Pretty val) => Pretty (ScopesT gen trans track val) # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: ScopesT gen trans track val -> Text Source #

format :: ScopesT gen trans track val -> Doc Source #

formatList :: [ScopesT gen trans track val] -> Doc Source #

(Pretty a, Pretty b, Pretty c, Pretty d, Pretty e) => Pretty (a, b, c, d, e) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a, b, c, d, e) -> Text Source #

format :: (a, b, c, d, e) -> Doc Source #

formatList :: [(a, b, c, d, e)] -> Doc Source #

(Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f) => Pretty (a, b, c, d, e, f) # 
Instance details

Defined in Util.Pretty

Methods

pretty :: (a, b, c, d, e, f) -> Text Source #

format :: (a, b, c, d, e, f) -> Doc Source #

formatList :: [(a, b, c, d, e, f)] -> Doc Source #

pretty :: Pretty a => a -> Text Source #

format :: Pretty a => a -> Doc Source #

formatList :: Pretty a => [a] -> Doc Source #

formatted :: Pretty a => a -> Text Source #

Render a Pretty value to the default width.

pprint :: Pretty a => a -> IO () Source #

improper_ratio :: (Eq a, Num a, Pretty a) => Ratio.Ratio a -> Text Source #

The default Pretty instance for Ratio reduces the fraction to k+n/d, which is not always right. This formats an improper fraction.

formatting

textList :: [Text] -> Doc Source #

A list of strings, but without quotes around them.

delimitedList Source #

Arguments

:: Bool

Always spaces around the delimiters. Otherwise, they only get spaces if the list wraps.

-> Char.Char 
-> Char.Char 
-> [Doc] 
-> Doc 

Format a comma-separated list. Try to put it on one line, but break before commas if that's not possible.

record :: Doc -> [(Text, Doc)] -> Doc Source #

misc

readWord :: ReadPrec String Source #

Read a space separated word.