Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.Pretty

Description

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

Synopsis

Documentation

data Doc Source #

Instances

Instances details
IsString Doc Source # 
Instance details

Defined in Util.Format

Methods

fromString :: String -> Doc #

Monoid Doc Source # 
Instance details

Defined in Util.Format

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Semigroup Doc Source # 
Instance details

Defined in Util.Format

Methods

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

sconcat :: NonEmpty Doc -> Doc #

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

Show Doc Source # 
Instance details

Defined in Util.Format

Methods

showsPrec :: Int.Int -> Doc -> ShowS #

show :: Doc -> String #

showList :: [Doc] -> ShowS #

Eq Doc Source # 
Instance details

Defined in Util.Format

Methods

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

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

Pretty Doc Source # 
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

Instances details
Pretty Dynamic.Dynamic Source # 
Instance details

Defined in Util.Pretty

Pretty CChar Source # 
Instance details

Defined in Util.Pretty

Pretty CFloat Source # 
Instance details

Defined in Util.Pretty

Pretty CInt Source # 
Instance details

Defined in Util.Pretty

Pretty Int.Int16 Source # 
Instance details

Defined in Util.Pretty

Pretty Int.Int32 Source # 
Instance details

Defined in Util.Pretty

Pretty Int.Int64 Source # 
Instance details

Defined in Util.Pretty

Pretty Int.Int8 Source # 
Instance details

Defined in Util.Pretty

Pretty Word.Word16 Source # 
Instance details

Defined in Util.Pretty

Pretty Word.Word32 Source # 
Instance details

Defined in Util.Pretty

Pretty Word.Word64 Source # 
Instance details

Defined in Util.Pretty

Pretty Word.Word8 Source # 
Instance details

Defined in Util.Pretty

Pretty ByteString.ByteString Source # 
Instance details

Defined in Util.Pretty

Pretty Query Source # 
Instance details

Defined in App.ReplProtocol

Pretty CallType Source # 
Instance details

Defined in Cmd.CallDoc

Pretty Action Source # 
Instance details

Defined in Cmd.Cmd

Pretty Backend Source # 
Instance details

Defined in Cmd.Cmd

Pretty Bindable Source # 
Instance details

Defined in Cmd.Cmd

Pretty EditMode Source # 
Instance details

Defined in Cmd.Cmd

Pretty Fingerprint Source # 
Instance details

Defined in Cmd.Cmd

Pretty History Source # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryCollect Source # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryConfig Source # 
Instance details

Defined in Cmd.Cmd

Pretty HistoryEntry Source # 
Instance details

Defined in Cmd.Cmd

Pretty InstrumentCode Source # 
Instance details

Defined in Cmd.Cmd

Pretty KeySpec Source # 
Instance details

Defined in Cmd.Cmd

Pretty Modifier Source # 
Instance details

Defined in Cmd.Cmd

Pretty MouseOn Source # 
Instance details

Defined in Cmd.Cmd

Pretty ResolvedInstrument Source # 
Instance details

Defined in Cmd.Cmd

Pretty SelectionHistory Source # 
Instance details

Defined in Cmd.Cmd

Pretty SyncConfig Source # 
Instance details

Defined in Cmd.Cmd

Pretty Pos Source # 
Instance details

Defined in Cmd.EditUtil

Pretty TrackType Source # 
Instance details

Defined in Cmd.Info

Pretty Stroke Source # 
Instance details

Defined in Cmd.Instrument.Drums

Pretty Code Source # 
Instance details

Defined in Cmd.Instrument.MidiInst

Pretty Patch Source # 
Instance details

Defined in Cmd.Instrument.MidiInst

Pretty Track Source # 
Instance details

Defined in Cmd.Integrate.Convert

Pretty Edit Source # 
Instance details

Defined in Cmd.Integrate.Merge

Pretty Modify Source # 
Instance details

Defined in Cmd.Integrate.Merge

Pretty Control Source # 
Instance details

Defined in Cmd.ModifyNotes

Pretty Note Source # 
Instance details

Defined in Cmd.ModifyNotes

Pretty DeriveStatus Source # 
Instance details

Defined in Cmd.Msg

Pretty ImStatus Source # 
Instance details

Defined in Cmd.Msg

Pretty Msg Source # 
Instance details

Defined in Cmd.Msg

Pretty Performance Source # 
Instance details

Defined in Cmd.Msg

Pretty SavePoint Source # 
Instance details

Defined in Cmd.SaveGit

Pretty SaveHistory Source # 
Instance details

Defined in Cmd.SaveGitT

Pretty Allocation Source # 
Instance details

Defined in Cmd.Simple

Pretty Attributes Source # 
Instance details

Defined in Derive.Attrs

Pretty Atom Source # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty KotekanNote Source # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty KotekanPattern Source # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty Repeat Source # 
Instance details

Defined in Derive.C.Bali.Gangsa

Pretty Expr Source # 
Instance details

Defined in Derive.C.India.Gamakam2

Pretty Stroke Source # 
Instance details

Defined in Derive.C.India.Mridangam

Pretty Bol Source # 
Instance details

Defined in Derive.C.India.Pakhawaj

Pretty Stroke Source # 
Instance details

Defined in Derive.C.India.Pakhawaj

Pretty Hand Source # 
Instance details

Defined in Derive.Call

Pretty UpDown Source # 
Instance details

Defined in Derive.Call

Pretty Module Source # 
Instance details

Defined in Derive.Call.Module

Pretty String Source # 
Instance details

Defined in Derive.Call.StringUtil

Pretty Track Source # 
Instance details

Defined in Derive.Call.SubT

Pretty CFunction Source # 
Instance details

Defined in Derive.DeriveT

Pretty ControlRef Source # 
Instance details

Defined in Derive.DeriveT

Pretty Duration Source # 
Instance details

Defined in Derive.DeriveT

Pretty Environ Source # 
Instance details

Defined in Derive.DeriveT

Pretty OutOfRange Source # 
Instance details

Defined in Derive.DeriveT

Pretty PControlRef Source # 
Instance details

Defined in Derive.DeriveT

Pretty PFunction Source # 
Instance details

Defined in Derive.DeriveT

Pretty PSignal Source # 
Instance details

Defined in Derive.DeriveT

Pretty PitchConfig Source # 
Instance details

Defined in Derive.DeriveT

Pretty PitchError Source # 
Instance details

Defined in Derive.DeriveT

Pretty Quoted Source # 
Instance details

Defined in Derive.DeriveT

Pretty Scale Source # 
Instance details

Defined in Derive.DeriveT

Pretty Val Source # 
Instance details

Defined in Derive.DeriveT

Pretty ArgName Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty BlockDeps Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Cache Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheEntry Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheKey Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CacheStats Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Cached Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallError Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallName Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty CallPriority Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Collect Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ControlDamage Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ControlMod Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Dynamic Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty EnvironDefault Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Error Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ErrorPlace Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ErrorVal Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Integrated Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Inversion Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Merge Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Merger Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Mode Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Scale Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty ScoreDamage Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty Tagged Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty TypeErrorT Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty MiniVal Source # 
Instance details

Defined in Derive.Expr

Pretty Str Source # 
Instance details

Defined in Derive.Expr

Pretty Symbol Source # 
Instance details

Defined in Derive.Expr

Pretty Flag Source # 
Instance details

Defined in Derive.Flags

Pretty Composite Source # 
Instance details

Defined in Derive.Instrument.DUtil

Pretty Type Source # 
Instance details

Defined in Derive.ParseTitle

Pretty Environ Source # 
Instance details

Defined in Derive.REnv

Pretty Val Source # 
Instance details

Defined in Derive.REnv

Pretty Range Source # 
Instance details

Defined in Derive.Scale

Pretty Tuning Source # 
Instance details

Defined in Derive.Scale.BaliScales

Pretty Absolute Source # 
Instance details

Defined in Derive.Scale.JavaScales

Pretty Key Source # 
Instance details

Defined in Derive.Scale.JustScales

Pretty DegreeMap Source # 
Instance details

Defined in Derive.Scale.Scales

Pretty Key Source # 
Instance details

Defined in Derive.Scale.Theory

Pretty RelativePitch Source # 
Instance details

Defined in Derive.Scale.TheoryFormat

Pretty Event Source # 
Instance details

Defined in Derive.Score

Pretty Control Source # 
Instance details

Defined in Derive.ScoreT

Pretty Instrument Source # 
Instance details

Defined in Derive.ScoreT

Pretty PControl Source # 
Instance details

Defined in Derive.ScoreT

Pretty TimeT Source # 
Instance details

Defined in Derive.ScoreT

Pretty TransposeT Source # 
Instance details

Defined in Derive.ScoreT

Pretty Type Source # 
Instance details

Defined in Derive.ScoreT

Pretty Arg Source # 
Instance details

Defined in Derive.Sig

Pretty Frame Source # 
Instance details

Defined in Derive.Stack

Pretty Stack Source # 
Instance details

Defined in Derive.Stack

Pretty From Source # 
Instance details

Defined in Derive.TScore.Check

Pretty Barline Source # 
Instance details

Defined in Derive.TScore.Parse

Pretty Call Source # 
Instance details

Defined in Derive.TScore.Parse

Pretty Error Source # 
Instance details

Defined in Derive.TScore.T

Pretty Octave Source # 
Instance details

Defined in Derive.TScore.Parse

Pretty Pitch Source # 
Instance details

Defined in Derive.TScore.Parse

Pretty Pos Source # 
Instance details

Defined in Derive.TScore.T

Pretty Time Source # 
Instance details

Defined in Derive.TScore.T

Pretty Track Source # 
Instance details

Defined in Derive.TrackWarp

Pretty TrackWarp Source # 
Instance details

Defined in Derive.TrackWarp

Pretty Normalized Source # 
Instance details

Defined in Derive.Typecheck

Pretty NormalizedBipolar Source # 
Instance details

Defined in Derive.Typecheck

Pretty NumType Source # 
Instance details

Defined in Derive.ValType

Pretty NumValue Source # 
Instance details

Defined in Derive.ValType

Pretty Type Source # 
Instance details

Defined in Derive.ValType

Pretty Warp Source # 
Instance details

Defined in Derive.Warp

Pretty Config Source # 
Instance details

Defined in Instrument.Common

Pretty Flag Source # 
Instance details

Defined in Instrument.Common

Pretty Backend Source # 
Instance details

Defined in Instrument.Inst

Pretty Qualified Source # 
Instance details

Defined in Instrument.InstT

Pretty Record Source # 
Instance details

Defined in Instrument.Sysex

Pretty Message Source # 
Instance details

Defined in Midi.Interface

Pretty ChannelMessage Source # 
Instance details

Defined in Midi.Midi

Pretty Key Source # 
Instance details

Defined in Midi.Midi

Pretty Message Source # 
Instance details

Defined in Midi.Midi

Pretty ReadDevice Source # 
Instance details

Defined in Midi.Midi

Pretty ReadMessage Source # 
Instance details

Defined in Midi.Midi

Pretty WriteDevice Source # 
Instance details

Defined in Midi.Midi

Pretty WriteMessage Source # 
Instance details

Defined in Midi.Midi

Pretty Channel Source # 
Instance details

Defined in Midi.State

Pretty Control Source # 
Instance details

Defined in Midi.State

Pretty State Source # 
Instance details

Defined in Midi.State

Pretty Patch Source # 
Instance details

Defined in Perform.Im.Patch

Pretty CodePosition Source # 
Instance details

Defined in Perform.Lilypond.Constants

Pretty FreeCodePosition Source # 
Instance details

Defined in Perform.Lilypond.Constants

Pretty StaffGroup Source # 
Instance details

Defined in Perform.Lilypond.Lilypond

Pretty Meter Source # 
Instance details

Defined in Perform.Lilypond.Meter

Pretty Ly Source # 
Instance details

Defined in Perform.Lilypond.Process

Pretty Voice Source # 
Instance details

Defined in Perform.Lilypond.Process

Pretty Voices Source # 
Instance details

Defined in Perform.Lilypond.Process

Pretty Config Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Duration Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Event Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty NoteDuration Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Pitch Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty StaffConfig Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Time Source # 
Instance details

Defined in Perform.Lilypond.Types

Pretty Config Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Flag Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Initialization Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty InitializePatch Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Keymap Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Keyswitch Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty ModeMap Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Patch Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Scale Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty Settings Source # 
Instance details

Defined in Perform.Midi.Patch

Pretty State Source # 
Instance details

Defined in Perform.Midi.Perform

Pretty Event Source # 
Instance details

Defined in Perform.Midi.Types

Pretty Patch Source # 
Instance details

Defined in Perform.Midi.Types

Pretty Degree Source # 
Instance details

Defined in Perform.Pitch

Pretty Input Source # 
Instance details

Defined in Perform.Pitch

Pretty Key Source # 
Instance details

Defined in Perform.Pitch

Pretty Note Source # 
Instance details

Defined in Perform.Pitch

Pretty NoteNumber Source # 
Instance details

Defined in Perform.Pitch

Pretty Pitch Source # 
Instance details

Defined in Perform.Pitch

Pretty ScaleId Source # 
Instance details

Defined in Perform.Pitch

Pretty Transpose Source # 
Instance details

Defined in Perform.Pitch

Pretty RealTime Source # 
Instance details

Defined in Perform.RealTime

Pretty ControlId Source # 
Instance details

Defined in Perform.Sc.Note

Pretty Note Source # 
Instance details

Defined in Perform.Sc.Note

Pretty Patch Source # 
Instance details

Defined in Perform.Sc.Patch

Pretty Status Source # 
Instance details

Defined in Perform.Transport

Pretty Bol Source # 
Instance details

Defined in Solkattu.Bol

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.KendangPasang

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.KendangTunggal

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Thoppi Source # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Valantalai Source # 
Instance details

Defined in Solkattu.Instrument.Mridangam

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.Reyong

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.Sargam

Pretty Stroke Source # 
Instance details

Defined in Solkattu.Instrument.Tabla

Pretty Korvai Source # 
Instance details

Defined in Solkattu.Korvai

Pretty KorvaiSections Source # 
Instance details

Defined in Solkattu.Korvai

Pretty Metadata Source # 
Instance details

Defined in Solkattu.Korvai

Pretty StrokeMaps Source # 
Instance details

Defined in Solkattu.Korvai

Pretty Emphasis Source # 
Instance details

Defined in Solkattu.Realize

Pretty Duration Source # 
Instance details

Defined in Solkattu.S

Pretty FMatra Source # 
Instance details

Defined in Solkattu.S

Pretty State Source # 
Instance details

Defined in Solkattu.S

Pretty Tempo Source # 
Instance details

Defined in Solkattu.S

Pretty TempoChange Source # 
Instance details

Defined in Solkattu.S

Pretty Group Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty GroupType Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Meta Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Pattern Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Reduction Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Side Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Sollu Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Space Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Tag Source # 
Instance details

Defined in Solkattu.Solkattu

Pretty Tags Source # 
Instance details

Defined in Solkattu.Tags

Pretty Anga Source # 
Instance details

Defined in Solkattu.Tala

Pretty Tala Source # 
Instance details

Defined in Solkattu.Tala

Pretty Tal Source # 
Instance details

Defined in Solkattu.Talas

Pretty Tala Source # 
Instance details

Defined in Solkattu.Talas

Pretty Tali Source # 
Instance details

Defined in Solkattu.Talas

Pretty State Source # 
Instance details

Defined in Synth.Faust.EffectC

Pretty ControlConfig Source # 
Instance details

Defined in Synth.Faust.InstrumentC

Pretty Span Source # 
Instance details

Defined in Synth.Lib.Checkpoint

Pretty State Source # 
Instance details

Defined in Synth.Lib.Checkpoint

Pretty Pitch Source # 
Instance details

Defined in Synth.Sampler.Patch.Lib.Bali

Pretty Dynamic Source # 
Instance details

Defined in Synth.Sampler.Patch.Lib.Util

Pretty PlayState Source # 
Instance details

Defined in Synth.Sampler.Render

Pretty Playing Source # 
Instance details

Defined in Synth.Sampler.Render

Pretty ResampleState Source # 
Instance details

Defined in Synth.Sampler.Render

Pretty State Source # 
Instance details

Defined in Synth.Sampler.Render

Pretty Note Source # 
Instance details

Defined in Synth.Sampler.Sample

Pretty Sample Source # 
Instance details

Defined in Synth.Sampler.Sample

Pretty Stretch Source # 
Instance details

Defined in Synth.Sampler.Sample

Pretty Control Source # 
Instance details

Defined in Synth.Shared.Control

Pretty Hash Source # 
Instance details

Defined in Synth.Shared.Note

Pretty Note Source # 
Instance details

Defined in Synth.Shared.Note

Pretty Block Source # 
Instance details

Defined in Ui.Block

Pretty Box Source # 
Instance details

Defined in Ui.Block

Pretty Config Source # 
Instance details

Defined in Ui.Block

Pretty DisplayTrack Source # 
Instance details

Defined in Ui.Block

Pretty NoteDestination Source # 
Instance details

Defined in Ui.Block

Pretty Padding Source # 
Instance details

Defined in Ui.Block

Pretty Skeleton Source # 
Instance details

Defined in Ui.Block

Pretty Source Source # 
Instance details

Defined in Ui.Block

Pretty Status Source # 
Instance details

Defined in Ui.Block

Pretty Track Source # 
Instance details

Defined in Ui.Block

Pretty TrackDestinations Source # 
Instance details

Defined in Ui.Block

Pretty TrackFlag Source # 
Instance details

Defined in Ui.Block

Pretty TracklikeId Source # 
Instance details

Defined in Ui.Block

Pretty View Source # 
Instance details

Defined in Ui.Block

Pretty Selection Source # 
Instance details

Defined in Ui.BlockC

Pretty SelectionOrientation Source # 
Instance details

Defined in Ui.BlockC

Pretty Color Source # 
Instance details

Defined in Ui.Color

Pretty Highlight Source # 
Instance details

Defined in Ui.Color

Pretty Event Source # 
Instance details

Defined in Ui.Event

Pretty Stack Source # 
Instance details

Defined in Ui.Event

Pretty Events Source # 
Instance details

Defined in Ui.Events

Pretty Range Source # 
Instance details

Defined in Ui.Events

Pretty BlockId Source # 
Instance details

Defined in Ui.Id

Pretty Id Source # 
Instance details

Defined in Ui.Id

Pretty Namespace Source # 
Instance details

Defined in Ui.Id

Pretty RulerId Source # 
Instance details

Defined in Ui.Id

Pretty TrackId Source # 
Instance details

Defined in Ui.Id

Pretty ViewId Source # 
Instance details

Defined in Ui.Id

Pretty Key Source # 
Instance details

Defined in Ui.Key

Pretty Modifier Source # 
Instance details

Defined in Ui.Key

Pretty Binding Source # 
Instance details

Defined in Ui.KeycapsT

Pretty Mark Source # 
Instance details

Defined in Ui.Meter.Mark

Pretty Marklist Source # 
Instance details

Defined in Ui.Meter.Mark

Pretty AbstractMeter Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty Config Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty LabelConfig Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty MSection Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty Meter Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty Rank Source # 
Instance details

Defined in Ui.Meter.Meter

Pretty Ruler Source # 
Instance details

Defined in Ui.Ruler

Pretty ScoreTime Source # 
Instance details

Defined in Ui.ScoreTime

Pretty Selection Source # 
Instance details

Defined in Ui.Sel

Pretty Skeleton Source # 
Instance details

Defined in Ui.Skeleton

Pretty RenderConfig Source # 
Instance details

Defined in Ui.Track

Pretty RenderSource Source # 
Instance details

Defined in Ui.Track

Pretty RenderStyle Source # 
Instance details

Defined in Ui.Track

Pretty Track Source # 
Instance details

Defined in Ui.Track

Pretty TrackSignal Source # 
Instance details

Defined in Ui.Track

Pretty WaveformChunk Source # 
Instance details

Defined in Ui.Track

Pretty Sliced Source # 
Instance details

Defined in Ui.TrackTree

Pretty Track Source # 
Instance details

Defined in Ui.TrackTree

Pretty Orientation Source # 
Instance details

Defined in Ui.Types

Pretty Error Source # 
Instance details

Defined in Ui.Ui

Pretty Range Source # 
Instance details

Defined in Ui.Ui

Pretty State Source # 
Instance details

Defined in Ui.Ui

Pretty Track Source # 
Instance details

Defined in Ui.Ui

Pretty TrackInfo Source # 
Instance details

Defined in Ui.Ui

Pretty Allocation Source # 
Instance details

Defined in Ui.UiConfig

Pretty Allocations Source # 
Instance details

Defined in Ui.UiConfig

Pretty Backend Source # 
Instance details

Defined in Ui.UiConfig

Pretty Config Source # 
Instance details

Defined in Ui.UiConfig

Pretty Default Source # 
Instance details

Defined in Ui.UiConfig

Pretty ImPerformance Source # 
Instance details

Defined in Ui.UiConfig

Pretty LilypondPerformance Source # 
Instance details

Defined in Ui.UiConfig

Pretty Meta Source # 
Instance details

Defined in Ui.UiConfig

Pretty MidiPerformance Source # 
Instance details

Defined in Ui.UiConfig

Pretty Context Source # 
Instance details

Defined in Ui.UiMsg

Pretty KbdState Source # 
Instance details

Defined in Ui.UiMsg

Pretty MouseEvent Source # 
Instance details

Defined in Ui.UiMsg

Pretty MouseState Source # 
Instance details

Defined in Ui.UiMsg

Pretty Track Source # 
Instance details

Defined in Ui.UiMsg

Pretty UiMsg Source # 
Instance details

Defined in Ui.UiMsg

Pretty State Source # 
Instance details

Defined in Ui.Update

Pretty Track Source # 
Instance details

Defined in Ui.Update

Pretty UiDamage Source # 
Instance details

Defined in Ui.Update

Pretty View Source # 
Instance details

Defined in Ui.Update

Pretty Zoom Source # 
Instance details

Defined in Ui.Zoom

Pretty Block Source # 
Instance details

Defined in Util.Audio.Audio

Pretty Frames Source # 
Instance details

Defined in Util.Audio.AudioT

Pretty SavedState Source # 
Instance details

Defined in Util.Audio.Resample

Pretty Doc Source # 
Instance details

Defined in Util.Doc

Pretty Doc Source # 
Instance details

Defined in Util.Pretty

Pretty Blob Source # 
Instance details

Defined in Util.Git

Pretty Modification Source # 
Instance details

Defined in Util.Git

Pretty Tree Source # 
Instance details

Defined in Util.Git

Pretty Commit Source # 
Instance details

Defined in Util.GitT

Pretty Html Source # 
Instance details

Defined in Util.Html

Pretty Msg Source # 
Instance details

Defined in Util.Log

Pretty Size Source # 
Instance details

Defined in Util.Memory

Pretty Rect Source # 
Instance details

Defined in Util.Rect

Pretty UnserializeError Source # 
Instance details

Defined in Util.Serialize

Pretty Day Source # 
Instance details

Defined in Util.Pretty

Pretty NominalDiffTime Source # 
Instance details

Defined in Util.Pretty

Pretty UTCTime Source # 
Instance details

Defined in Util.Pretty

Pretty Text Source # 
Instance details

Defined in Util.Pretty

Pretty Lazy.Text Source # 
Instance details

Defined in Util.Pretty

Pretty Integer Source # 
Instance details

Defined in Util.Pretty

Pretty () Source # 
Instance details

Defined in Util.Pretty

Methods

pretty :: () -> Text Source #

format :: () -> Doc Source #

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

Pretty Bool Source # 
Instance details

Defined in Util.Pretty

Pretty Char.Char Source # 
Instance details

Defined in Util.Pretty

Pretty Double Source # 
Instance details

Defined in Util.Pretty

Pretty Float Source # 
Instance details

Defined in Util.Pretty

Pretty Int.Int Source # 
Instance details

Defined in Util.Pretty

Pretty (ForeignPtr a) Source # 
Instance details

Defined in Util.Pretty

Pretty (Ptr a) Source # 
Instance details

Defined in Util.Pretty

Methods

pretty :: Ptr a -> Text Source #

format :: Ptr a -> Doc Source #

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

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

Defined in Util.Pretty

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

Defined in Util.Pretty

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

Defined in Util.Pretty

Methods

pretty :: Set a -> Text Source #

format :: Set a -> Doc Source #

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

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

Defined in Util.Pretty

Pretty (Handler m) Source # 
Instance details

Defined in Cmd.Cmd

Pretty (NamedCmd m) Source # 
Instance details

Defined in Cmd.Cmd

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

Defined in Cmd.InputNote

Pretty a => Pretty (Note a) Source # 
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 (Pasang a) Source # 
Instance details

Defined in Derive.C.Bali.Gangsa

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

Defined in Derive.C.Bali.Gangsa

Pretty a => Pretty (Note a) Source # 
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 pos => Pretty (Position pos) Source # 
Instance details

Defined in Derive.Call.Ly

Pretty a => Pretty (EventT a) Source # 
Instance details

Defined in Derive.Call.SubT

Pretty (RawPitch a) Source #

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

Instance details

Defined in Derive.DeriveT

Pretty (Call d) Source # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: Call d -> Text Source #

format :: Call d -> Doc Source #

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

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

Defined in Derive.Deriver.Monad

Pretty (CallMap call) Source # 
Instance details

Defined in Derive.Deriver.Monad

Methods

pretty :: CallMap call -> Text Source #

format :: CallMap call -> Doc Source #

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

Pretty val => Pretty (Context val) Source # 
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) Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (PatternCall call) Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (ScopePriority call) Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (TrackCall d) Source # 
Instance details

Defined in Derive.Deriver.Monad

Pretty (TrackInfo d) Source # 
Instance details

Defined in Derive.EvalTrack

Pretty (Call Val) Source # 
Instance details

Defined in Derive.DeriveT

Pretty (Call MiniVal) Source # 
Instance details

Defined in Derive.Expr

Pretty (Call Text) Source # 
Instance details

Defined in Derive.Expr

Pretty (Term Val) Source # 
Instance details

Defined in Derive.DeriveT

Pretty (Term MiniVal) Source # 
Instance details

Defined in Derive.Expr

Pretty (Term Text) Source # 
Instance details

Defined in Derive.Expr

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

Defined in Derive.LEvent

Pretty (Entry call) Source # 
Instance details

Defined in Derive.Library

Methods

pretty :: Entry call -> Text Source #

format :: Entry call -> Doc Source #

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

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

Defined in Derive.ScoreT

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

Defined in Derive.Stream

Pretty pitch => Pretty (NPitch pitch) Source # 
Instance details

Defined in Derive.TScore.T

Methods

pretty :: NPitch pitch -> Text Source #

format :: NPitch pitch -> Doc Source #

formatList :: [NPitch pitch] -> Doc Source #

Pretty (Rest Duration) Source # 
Instance details

Defined in Derive.TScore.Parse

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

Defined in Instrument.Common

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

Defined in Instrument.Common

Methods

pretty :: Common code -> Text Source #

format :: Common code -> Doc Source #

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

Pretty code => Pretty (Db code) Source # 
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) Source # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: Inst code -> Text Source #

format :: Inst code -> Doc Source #

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

Pretty code => Pretty (Synth code) Source # 
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 (SynthDecl code) Source # 
Instance details

Defined in Instrument.Inst

Methods

pretty :: SynthDecl code -> Text Source #

format :: SynthDecl code -> Doc Source #

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

Pretty end => Pretty (NoteT end) Source # 
Instance details

Defined in Midi.Synth

Methods

pretty :: NoteT end -> Text Source #

format :: NoteT end -> Doc Source #

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

Pretty a => Pretty (Section a) Source # 
Instance details

Defined in Solkattu.Korvai

Pretty stroke => Pretty (Group stroke) Source # 
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 (Note stroke) Source # 
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 (PatternMap stroke) Source # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: PatternMap stroke -> Text Source #

format :: PatternMap stroke -> Doc Source #

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

Pretty stroke => Pretty (Reduction stroke) Source # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: Reduction stroke -> Text Source #

format :: Reduction stroke -> Doc Source #

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

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

Defined in Solkattu.Realize

Methods

pretty :: Stroke stroke -> Text Source #

format :: Stroke stroke -> Doc Source #

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

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

Defined in Solkattu.S

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

Defined in Solkattu.Solkattu

Methods

pretty :: Note sollu -> Text Source #

format :: Note sollu -> Doc Source #

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

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

Defined in Solkattu.Solkattu

Methods

pretty :: NoteT sollu -> Text Source #

format :: NoteT sollu -> Doc Source #

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

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

Defined in Ui.Update

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

Defined in Util.LazyVector

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

Defined in Util.LazyVector

Methods

pretty :: Lazy a -> Text Source #

format :: Lazy a -> Doc Source #

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

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

Defined in Util.Ranges

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

Defined in Util.Segment

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

Defined in Util.Segment

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

Defined in Util.TimeVector

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

Defined in Util.Pretty

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

Defined in Util.Pretty

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

Defined in Util.Pretty

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

Defined in Util.Pretty

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

Defined in Util.Pretty

Pretty a => Pretty [a] Source # 
Instance details

Defined in Util.Pretty

Methods

pretty :: [a] -> Text Source #

format :: [a] -> Doc Source #

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

(Pretty a, Pretty b) => Pretty (Either a b) Source # 
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 k, Pretty v) => Pretty (Map k v) Source # 
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 (Signal kind) Source # 
Instance details

Defined in Perform.Signal

Methods

pretty :: Signal kind -> Text Source #

format :: Signal kind -> Doc Source #

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

(Pretty sollu, Pretty stroke) => Pretty (SolluMap sollu stroke) Source # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: SolluMap sollu stroke -> Text Source #

format :: SolluMap sollu stroke -> Doc Source #

formatList :: [SolluMap sollu stroke] -> Doc Source #

(Pretty sollu, Pretty stroke) => Pretty (StrokeMap sollu stroke) Source # 
Instance details

Defined in Solkattu.Realize

Methods

pretty :: StrokeMap sollu stroke -> Text Source #

format :: StrokeMap sollu stroke -> Doc Source #

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

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

Defined in Solkattu.S

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) Source # 
Instance details

Defined in Solkattu.S

Methods

pretty :: Note g a -> Text Source #

format :: Note g a -> Doc Source #

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

(Pretty a, Pretty g) => Pretty (Sequence g a) Source # 
Instance details

Defined in Solkattu.S

(Pretty t, Pretty u) => Pretty (Update t u) Source # 
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 (Lists.Paired a b) Source # 
Instance details

Defined in Util.Pretty

(Pretty err, Pretty a) => Pretty (UntilFail err a) Source # 
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 (a -> b) Source # 
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 (a, b) Source # 
Instance details

Defined in Util.Pretty

Methods

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

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

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

(Pretty note, Pretty control, Pretty pitch) => Pretty (Scope note control pitch) Source # 
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 (Note CallText Pitch NDuration) Source # 
Instance details

Defined in Derive.TScore.Parse

Pretty (Note CallText (Maybe.Maybe Text) Time) Source #

This is the output from Check.check.

Instance details

Defined in Derive.TScore.Parse

(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) Source # 
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 gen, Pretty trans, Pretty track, Pretty val) => Pretty (ScopesT gen trans track val) Source # 
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 (Token CallText Pitch NDuration Duration) Source # 
Instance details

Defined in Derive.TScore.Parse

(Pretty a, Pretty b, Pretty c, Pretty d) => Pretty (a, b, c, d) Source # 
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 a, Pretty b, Pretty c, Pretty d, Pretty e) => Pretty (a, b, c, d, e) Source # 
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) Source # 
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 #

improperRatio :: (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.

fraction Source #

Arguments

:: (RealFrac a, Pretty a) 
=> Bool 
-> a

If true, try an ASCII fraction if there are no unicode ones, otherwise always use decimal.

-> Text 

If it looks like a low fraction, display it thus, rather than as a decimal. This is useful because e.g. meters in three will have lots of repeating decimals. I also use fractions for power of two denominators which are just fine in decimal, but the fraction still takes up less space.

generic derivation

formatG :: (PrettyG (Generics.Rep a), Generics.Generic a) => a -> Doc Source #

formatG_ :: (PrettyG (Generics.Rep a), Generics.Generic a) => a -> Doc Source #

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 #

standalone

misc

readWord :: ReadPrec String Source #

Read a space separated word.