cL\Bm      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl(c) Colin Woodbury, 2015 - 2017BSD3"Colin Woodbury <colingw@gmail.com>None57OT1A wrapper for a parser function. Can be composed via their Monoid instance, such that a different parser can be tried if a previous one fails.A synonym for the more verbose  megaparsec error type.mDevelopers use a number of symbols to seperate groups of digits/letters in their version numbers. These are:&A colon (:). Often denotes an "epoch". A hyphen (-).EA plus (+). Stop using this outside of metadata if you are. Example:  10.2+0.93+1-1.An underscore (_). Stop using this if you are. A (Complex) Mess. This is a  descriptiveQ parser, based on examples of stupidly crafted version numbers used in the wild.[Groups of letters/numbers, separated by a period, can be further separated by the symbols _-+:Unfortunately, VChunk=s cannot be used here, as some developers have numbers like 1.003.04 which make parsers quite sad..Not guaranteed to have well-defined ordering (Ord9) behaviour, but so far internal tests show consistency. .A (General) Version. Not quite as ideal as a Y, but has some internal consistancy from version to version. Generally conforms to the x.x.x-x% pattern, and may optionally have an epoch1. These are prefixes marked by a colon, like in 1:2.3.4. Examples of Version that are not SemVer&: 0.25-2, 8.u51-1, 20150826-1, 1:2.3.4QA logical unit of a version number. Can consist of multiple letters and numbers.aA single unit of a Version. May be digits or a string of characters. Groups of these are called ?s, and are the identifiers separated by periods in the source.KAn (Ideal) version number that conforms to Semantic Versioning. This is a  prescriptive0 parser, meaning it follows the SemVer standard.<Legal semvers are of the form: MAJOR.MINOR.PATCH-PREREL+METAExample: 1.2.3-r1+commithash Extra Rules: Pre-release versions have lower! precedence than normal versions.2Build metadata does not affect version precedence.=PREREL and META strings may only contain ASCII alphanumerics.For more information, see http://semver.org,Version types which sanely and safely yield >-like information about themselves. For instances other than # itself however, these optics may not` yield anything, depending on the actual value being traversed. Hence, the optics here are all "s. Consider the    1.2.3.4.58. We can imagine wanting to increment the minor number: + "1.2.3.4.5" & minor %~ (+ 1) "1.3.3.4.5" -But of course something like this would fail: + "1.e.3.4.5" & minor %~ (+ 1) "1.e.3.4.5" However! + "1.e.3.4.5" & major %~ (+ 1) "2.e.3.4.5"  MAJOR.minor.patch-prerel+meta major.MINOR.patch-prerel+meta major.minor.PATCH-prerel+meta major.minor.patch-PREREL+meta major.minor.patch-prerel+META!(A Natural Transformation into an proper .":Simple Traversals compatible with both lens and microlens.#6Simple Lenses compatible with both lens and microlens.$A top-level Versioning type. Acts as a wrapper for the more specific types. This allows each subtype to have its own parser, and for said parsers to be composed. This is useful for specifying custom behaviour for when a certain parser fails.m Convert a  to a  .n Convert a   to a  .(,Traverse some Text for its inner versioning. ` "1.2.3" & _Versioning . _Ideal . patch %~ (+ 1) -- or just: "1.2.3" & patch %~ (+ 1) "1.2.4" )(Traverse some Text for its inner SemVer.*)Traverse some Text for its inner Version.+&Traverse some Text for its inner Mess./Smart constructor for a  made of digits.0Smart constructor for a  made of letters.oSet a   's epoch to p.4Parse a piece of q into either an (Ideal) , a (General)  , or a (Complex)  .5 A wrapped , parser. Can be composed with other parsers.6!Parse a (Ideal) Semantic Version.7Internal megaparsec parser of 5.rDParse a group of digits, which can't be lead by a 0, unless it is 0.s Handling 0Q is a bit tricky. We can't allow runs of zeros in a chunk, since a version like 1.000.1 would parse as 1.0.1.8 A wrapped  , parser. Can be composed with other parsers.9Parse a (General)  , as defined above.:Internal megaparsec parser of 8.; A wrapped  , parser. Can be composed with other parsers.<Parse a (Complex)  , as defined above.=Internal megaparsec parser of ;.>AConvert any parsed Versioning type to its textual representation.? Convert a $ back to its textual representation.@ Convert a  $ back to its textual representation.A Convert a  $ back to its textual representation.t Analogous to u and vk. If a given Foldable is empty, a default value is returned. Else, a function is applied to that Foldable.wFlip an Ordering.F Customized.I2Build metadata does not affect version precedence.J>Two SemVers are equal if all fields except metadata are equal.MComparison of Ideals is always well defined.If comparison of General's is well-defined, then comparison of Ideal and General: is well-defined, as there exists a perfect mapping from Ideal to General.If comparison of Complex'es is well-defined, then comparison of General and ComplexB is well defined for the same reason. This implies comparison of Ideal and Complex is also well-defined.f xy !"#$%&'mn()*+,-./012o34567rz{|}~s89:;<=>?@AtwBCDEFGHIJKLMB  !"#$'%&()*+,-./0123456789:;<=>?@AB$%&'  /0 69<458;7:=>?@A#" !()*+,-.312I  xy !"#$%&'mn()*+,-./012o34567rz{|}~s89:;<=>?@AtwBCDEFGHIJKLM      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyqz{q|}~%versions-3.3.0-8AM7uYaexkK7WuR7q6FEMc Data.Versions&megaparsec-6.2.0-pWtGle4bFH9yv4IfTZKBAText.Megaparsec.ErrorparseErrorPrettyVParserrunVP ParsingErrorVSepVColonVHyphenVPlusVUnderMessVLeafVNodeVersion_vEpoch_vChunks_vRelVChunkVUnitSemVer_svMajor_svMinor_svPatch _svPreRel_svMetaSemanticmajorminorpatchreleasemetasemantic Traversal'Lens' VersioningIdealGeneralComplex _Versioning_SemVer_Version_Mess_Ideal_General_Complexdigitsstr_Digits_StrepochparseVsemverPsemversemver'versionPversionversion'messPmessmess'prettyV prettySemVer prettyVer prettyMess$fMonoidVParser$fSemanticMess $fOrdMess$fSemanticVersion $fOrdVersion$fSemanticSemVer$fMonoidSemVer $fOrdSemVer $fEqSemVer$fSemanticText$fSemanticVersioning$fOrdVersioning $fEqVUnit $fShowVUnit $fReadVUnit $fOrdVUnit$fGenericVUnit $fNFDataVUnit$fHashableVUnit $fShowSemVer$fGenericSemVer$fNFDataSemVer$fHashableSemVer $fEqVersion $fShowVersion$fGenericVersion$fNFDataVersion$fHashableVersion$fEqVSep $fShowVSep $fGenericVSep $fNFDataVSep$fHashableVSep$fEqMess $fShowMess $fGenericMess $fNFDataMess$fHashableMess$fEqVersioning$fShowVersioning$fGenericVersioning$fNFDataVersioning$fHashableVersioningvFromSmFromVwipebaseGHC.BaseNothing#text-1.2.2.2-KC7dWoG09dA1F6jKj5GSqhData.Text.InternalTextdigitsPchunkfoldable Data.Maybemaybe Data.EithereitheroppositeDigitsStrmajorPminorPpatchPpreRelmetaDatachunksiunitsunitepochPleafnodetchunkssepsepCh chunksAsTshowt