úÎŽ"Ļo      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Safe%&9;FA formatter. When you construct formatters the first type parameter, r8, will remain polymorphic. The second type parameter, aX, will change to reflect the types of the data that will be formatted. For example, in emyFormat :: Formatter r (Text -> Int -> r) myFormat = "Person's name is " % text % ", age is " % hex Pthe first type parameter remains polymorphic, and the second type parameter is Text -> Int -> r%, which indicates that it formats a  and an €.When you run the , for example with  F, you provide the arguments and they will be formatted into a string. g> format ("Person's name is " % text % ", age is " % hex) "Dave" 54 "Person's name is Dave, age is 36" Concatenate two formatters.formatter1 % formatter2, is a formatter that accepts arguments for  formatter1 and  formatter2- and concatenates their results. For example Eformat1 :: Format r (Text -> r) format1 = "Person's name is " % text  %format2 :: Format r r format2 = ", "  9format3 :: Format r (Int -> r) format3 = "age is " % hex  RmyFormat :: Formatter r (Text -> Int -> r) myFormat = format1 % format2 % format3 !Notice how the argument types of format1 and format3 are gathered into the type of myFormat./(This is actually the composition operator for Format's F instance, but that is (at present) inconvenient to use with regular Prelude2. So this function is provided as a convenience.)UFunction compose two formatters. Will feed the result of one formatter into another..Don't format any data, just output a constant ‚.'Monadic indexed bind for holey monoids.2Functorial map over a formatter's input. Example: %format (mapf (drop 1) string) "hello" Format a value of type a using a function of type a -> ‚. For example, later (f :: Int -> Builder) produces Format r (Int -> r). $Run the formatter and return a lazy  value. &Run the formatter and return a strict ƒ value. Run the formatter and return a ‚ value. 3Run the formatter and print out the text to stdout.4Run the formatter and put the output onto the given „.2Run the formatter and return a list of characters."The same as (%). At present using G has an import overhead, but one day it might be imported as standard.DUseful instance for writing format string. With this you can write Foo instead of  now "Foo!".VUseful instance for applying two formatters to the same input argument. For example:  format (year <> "/" % month) now will yield  "2015/01".&Not particularly useful, but could be.    9 8*(c) 2013 Chris Done, 2013 Shachaf Ben-KikiBSD3chrisdone@gmail.com experimentalGHCNoneOT%Output a lazy text.Output a strict text.Output a string.%Output a showable value (instance of …) by turning it into :@format ("Value number " % shown % " is " % shown % ".") 42 False"Value number 42 is False."Output a character.Build a builder.Like † but for formatters.#Build anything that implements the  Buildable class./Render an integral e.g. 123 -> "123", 0 -> "0".KRender some floating point with the usual notation, e.g. 123.32 => "123.32"~Render a floating point number using scientific/engineering notation (e.g. 2.3e123), with the given number of decimal places._Render a floating point number using normal notation, with the given number of decimal places. ŽRender a floating point number, with the given number of digits of precision. Uses decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.!`Render a floating point number using the smallest number of digits that correctly represent it."Render a scientific number.#(Render a scientific number with options.$,Shows the Int value of Enum instances using ‡.4format ("Got: " % char % " (" % asInt % ")") 'a' 'a' "Got: a (97)"%nPad the left hand side of a string until it reaches k characters wide, if necessary filling with character c.&oPad the right hand side of a string until it reaches k characters wide, if necessary filling with character c.'vPad the left & right hand side of a string until it reaches k characters wide, if necessary filling with character c.((Group integral numbers, e.g. groupInt 2 ˆ on 123456 -> "12.34.56".)0Fit in the given length, truncating on the left.*1Fit in the given length, truncating on the right.+2Add commas to an integral, e.g 12000 -> "12,000".,6Add a suffix to an integral, e.g. 1st, 2nd, 3rd, 21st.-&English plural suffix for an integral..Render an integral at base n./ORender an integer using binary notation. (No leading 0b is added.) Defined as bin = . 2.0NRender an integer using octal notation. (No leading 0o is added.) Defined as oct = . 8.1jRender an integer using hexadecimal notation. (No leading 0x is added.) Has a specialized implementation.2:Render an integer using binary notation with a leading 0b.39Render an integer using octal notation with a leading 0o.4?Render an integer using hexadecimal notation with a leading 0x.‰KInternal function that converts a number to a base base-2 through base-36.ŠA simpler variant of > that only prepends a dash and doesn't know about parentheses‹Like  , but handles up to base-365ERenders a given byte count using an appropiate decimal binary suffix:format (bytes shortest) 1024"1KB",format (bytes (fixed 2 % " ")) (1024*1024*5) "5.00 MB"% !"#$%&'()*+,-./01234‰Š‹5formatter for the decimal part# !"#$%&'()*+,-./012345# "#!(+,-$%&')*./012345% !"#$%&'()*+,-./01234‰Š‹5*(c) 2013 Chris Done, 2013 Shachaf Ben-KikiBSD3chrisdone@gmail.com experimentalGHCNoneOT6Output a lazy text.7/Render an integral e.g. 123 -> "123", 0 -> "0".8CRender an integer using binary notation. (No leading 0b is added.)9ARender an integer using octal notation. (No leading 0o is added.):HRender an integer using hexadecimal notation. (No leading 0x is added.);Output a strict text.<Output a string.=%Output a showable value (instance of …) by turning it into .>Output a character.?~Render a floating point number using scientific/engineering notation (e.g. 2.3e123), with the given number of decimal places.@_Render a floating point number using normal notation, with the given number of decimal places.AŽRender a floating point number, with the given number of digits of precision. Uses decimal notation for values between 0.1 and 9,999,999, and scientific notation otherwise.B`Render a floating point number using the smallest number of digits that correctly represent it.C4Pad the left hand side of a string until it reaches k7 characters wide, if necessary filling with character ch.D5Pad the right hand side of a string until it reaches k7 characters wide, if necessary filling with character ch.6789:;<=>?@ABCD6789:;<=>?@ABCD6789:;<=>?@ABCD6789:;<=>?@ABCDNoneOT0ETimezone offset on the format -HHMM.FTimezone name.GAs Œ locale (e.g. %a %b %e %H:%M:%S %Z %Y).HSame as %H:%M.ISame as %H:%M:%S.JAs  locale (e.g. %H:%M:%S).KAs Ž locale (e.g.  %I:%M:%S %p).LDay half from ( locale), converted to lowercase, am, pm.MDay half from ( locale), AM, PM.N$Hour, 24-hour, leading 0 as needed, 00 - 23.O$Hour, 12-hour, leading 0 as needed, 01 - 12.P(Hour, 24-hour, leading space as needed,  0 - 23.Q(Hour, 12-hour, leading space as needed,  1 - 12.RMinute, 00 - 59.SSecond, without decimal part, 00 - 60.T&Picosecond, including trailing zeros,  000000000000 -  999999999999.U„Decimal point and up to 12 second decimals, without trailing zeros. For a whole number of seconds, this produces the empty string.WSame as %m/%d/%y.XSame as %Y-%m-%d.YAs  locale (e.g. %m/%d/%y).ZYear.[Last two digits of year, 00 - 99.\2Century (being the first two digits of the year), 00 - 99.]Month name, long form (‘ from ’ locale), January - December.^ %H] month name, short form (“ from ’ locale), Jan - Dec@._$Month of year, leading 0 as needed, 01 - 12.`#Day of month, leading 0 as needed, 01 - 31.aDay of month, 1st, 2nd, 25th, etc.b'Day of month, leading space as needed,  1 - 31.c%Day of year for Ordinal Date format, 001 - 366.dYear for Week Date format e.g. 2013.e.Last two digits of year for Week Date format, 00 - 99.f9Century (first two digits of year) for Week Date format, 00 - 99.gWeek for Week Date format, 01 - 53.hDay for Week Date format, 1 - 7.iDay of week, short form (“ from ” locale), Sun - Sat.jDay of week, long form (‘ from ” locale), Sunday - Saturday.k6Week number of year, where weeks start on Sunday (as sundayStartWeek), 00 - 53.lDay of week number, 0 (= Sunday) - 6 (= Saturday).m6Week number of year, where weeks start on Monday (as mondayStartWeek), 00 - 53.niDisplay a time span as one time relative to another. Input is assumed to be seconds. Typical inputs are • and –.o.Display the absolute value time span in years.p-Display the absolute value time span in days.q.Display the absolute value time span in hours.r0Display the absolute value time span in minutes.s0Display the absolute value time span in seconds.t0Formatter call. Probably don't want to use this.u*Helper for creating custom time formatters1EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnDisplay 'in/ago'?+Example: '3 seconds ago', 'in three days'.)oDecimal places.pDecimal places.qDecimal places.rDecimal places.sDecimal places.tu1EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu1EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu1EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu *(c) 2013 Chris Done, 2013 Shachaf Ben-KikiBSD3chrisdone@gmail.com experimentalGHCNoneOT0  !"#$%&'()*+,-./012345  NoneMvBFormat the duration from start to end (args passed in that order). Examples: "4.00 s 500.69 ms 1.20 ms 19.38 ĩs vvvvNonewSimple hello, world!xPrinting strings.yPrinting texts.zPrinting builders.{Printing integers.|Printing floating points.}$Printing integrals in hex (base-16).~Padding.wxyz{|}~wxyz{|}~wxyz{|}~wxyz{|}~—  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘;’“Œ”•Œ–Ž;—˜;™š;›œ;ž;›Ÿ ĄĸŖ¤ĨŖ¤ĻŖ¤§Ŗ¤¨Ŗ¤Š;ĒĢŖ¤Ŧ;Ē­Ŗ¤Ž¯°ą¯˛ŗ´'formatting-6.2.5-BQHziuvm9C85Uf2PZAqveaFormatting.FormattersFormatting.InternalFormatting.ShortFormattersFormatting.TimeFormatting.ClockFormatting.ExamplesNumeric showSigned Data.Char intToDigit Formatting*text-format-0.3.1.1-8ZE4oP9p3tVC9TQlQtvP1wData.Text.Buildable BuildableFormat runFormat%%.nowbindmapflaterformatsformatbprintfprinthprintformatToString$fCategoryTYPEFormat$fIsStringFormat$fMonoidFormat$fFunctorFormattextstextstringshowncharbuilderfconstbuildintfloatexptfixedprecshortestsciscifmtasIntleftrightcentergroupIntfitLeftfitRightcommasordspluralbasebinocthex prefixBin prefixOct prefixHexbytestdboxstsshceffpfsflrtztzNamedatetimehmhmshmsLhmsPLdayHalfdayHalfUhour24hour12hour24Shour12Sminutesecondpicodecimalsepoch dateSlashdateDash dateSlashLyearyycentury monthNamemonthNameShortmonth dayOfMonth dayOfMonthOrd dayOfMonthSdayweekYearweekYY weekCenturyweek dayOfWeek dayNameShortdayName weekFromZerodayOfWeekFromZero weekOfYearMondiffyearsdayshoursminutessecondsfmt customTimeFmt timeSpecshellostringstextsbuildersintegersfloatshexespadding#text-1.2.2.2-KC7dWoG09dA1F6jKj5GSqhData.Text.Internal.LazyTextghc-prim GHC.TypesIntControl.CategoryCategoryData.Text.Internal.BuilderBuilderData.Text.InternalGHC.IO.Handle.TypesHandleGHC.ShowShowGHC.BaseconstGHC.EnumfromEnum.atBase showSigned' intToDigit')old-locale-1.0.0.7-KGBP1BSKxH5GCm0LnZP04j System.Locale dateTimeFmttimeFmt time12FmtamPmdateFmt Data.TuplefstmonthssndwDays time-1.6.0.1Data.Time.Clock.UTCNominalDiffTimeData.Time.Clock.ScaleDiffTime