{q      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportable Safe-Inferred=Monad type with build base directory and build configuration.Build configuration typeSpecify build dirName of debian directory-Exclude directories to setup source directory'Type to specify build working directory'Type to specify base directory filepathAction type with trace flagRun  monad  bracket for  monad  bracket_ for  monad 0Command string trace print along with trace flag /Output string trace print along with trace flag Put log stinrg with flush.'Use current directory as base directory)Use specified directory as base directory;Use relative path from base-dir as build workding directory-Use absolute path as build workding directoryFold build dirDefault configuration Lift from  monad into monad with  configuration.Run  configuration monad bracket for  monad bracket_ for  monadGet base directory in  monadGet build configuration in  monadGet build working directory in  monadShow  is relative or absolute$    2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportableNone Find .cabal fileParse .cabal file%Hackage name and version string from Hackage name string from Hackage version string from ,Call cabal library defaultMain like Setup.hs 0Cabal library defaultMain with sub-command clean!4Cabal library defaultMain with sub-command configure"0Cabal library defaultMain with sub-command sdist#0Cabal library defaultMain with sub-command build$2Cabal library defaultMain with sub-command install%3Cabal library defaultMain with sub-command register !"#$%  !"#$%  "!#$% !"#$%2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportable Safe-Inferred&Debian short name generate rule);Hackage name and version type with debian short name. e.g. src-ext.*Hackage version type+Make *,Make *- Extract hackage version numbers..Make )/Get package name of )0Get version of )1Get debian short name of )2 Generate )- type from package name and version using &3/Make debian short name from package name using &4 Package name string with version5Package archive basename6Package archive pathname7+Debian library binary package names for GHC8,Debian library document package name for GHC9$Debian library package names for GHC&'()*+,-./012Rule flag to generate namesHackage name stringVersion of hackageResult hackage meta info3Rule flag to generate name)Debian source name or Hackage name stringODebian source package name and short name like ("haskell-src-exts", "src-exts")456789&'()*+,-./0123456789*,+-)./012&('3456789&(')*+,-./01234567892014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportable Safe-Inferred:&Debian source package type for Haskell;Debian .changes file types?-Debian source package type, name with version@Version type for DebianA)Make deebian version from hackage versionBVersion without debian revisionCIs debian-native or notD"Try to read debian package versionEMake ?FSource package name of ?GDebian version of ?HVersion without debian revisionIIs debian-native or notJ Original source archive basenameKDebian native archive basenameLSource directory basenameM Try to make * from ?NTry to generate ? from debian changelog stringOTake ; from debian .changes file pathP)Test changes file type is source package.Q)Test changes file type is binary package.R) meta-info of :S#Debian source package meta-info of :T Generate :4 type from debian package name and version using &U Generate :/ with hackage name and debian package meta-info,:;<=>?@ABCDEFGHIJKLMN!dpkg-parsechangelog result stringSource structureOPQRSTHackage name stringVersion of hackageDebian revision StringResult structureUHackage name stringDebian package meta infoResult:;<=>?@ABCDEFGHIJKLMNOPQRSTU@ADBC?EFGHIJKLMN;>=<OPQ:RSTU%:;>=<?@ABCDEFGHIJKLMNOPQRSTU2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportable Safe-Inferred0&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportable Safe-InferredVBuild mode, all or binary only\9Run command without shell and get standard output string.]Run command without shell^Run command with shell_Change directory action`'Action to get current working directoryaCreate directory if missingbRename directory action. e.g. renameDirectory from tocRename file action. e.g. renameFile from todConfirm filepath using ls commandeUnpack .tar.gz under directory.f#Unpack .tar.gz under archive place.g3Pack directory into .tar.gz under working directoryhAPack directory into same location .tar.gz under working directoryi$Run action under specified directoryj Just call  cabal-debian commandkCall  cabal-debian" command under specified directorylQuery debian package versionm1Read debian changelog file and try to parse into ?nCall debuild5 under specified directory, with command line optionsoJust run debi with root userp9Install packages under specified source package directoryqBuild package using debuild under specified directoryrClean and build package using debuild under specified directorysDRemove ghc library packages under specified source package directory#VWXYZ[\]^_`abcdefghijklmnopqrsVWXYZ[\]^_`abcdefghijklmnopqrs_`abcdefghjklmnopV[ZYXWqrsi\]^V[ZYXW\]^_`abcdefghijklmnopqrs2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportableNonetRun Bulid" action under specified directory.uRun  action under base-directory.vTake build-directory from  action context.wRemove build-directory. Take debian-directory name from  action context.x'Take original source archive name from  action context.y,Take debian native source archive name from  action context.zTake source directory from  action context.{MAction to copy debian directory from base-directory into specified directory.|XSetup source directory and original source archive under build-directory using rsync.}]Setup native source directory and native source archive under build-directory using rsync.~1Setup debian source directory and source archive.8Setup original source directory and archive using Cabal./Setup source directory and archive using Cabal.@Setup source directory and archive using Cabal and cabal-debian.Find debian .changes files1On the fly setup of source directory and archive.tuvwxyz{|}~tuvwxyz{|}~xyztuvw{|}~tuvwxyz{|}~2014 Kei HibinoBSD3ex8k.hibino@gmail.com experimentalportableNoneQ  !"#$%VWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./01234567&'89:%;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ 23@Edebian-build-0.4.1.0Debian.Package.Build.MonadDebian.Package.Build.CabalDebian.Package.Data.HackageDebian.Package.Data.SourceDebian.Package.Build.CommandDebian.Package.Build.SequenceDebian.Package.DataDebian.Package.BuildBuildConfigbuildDir debianDirNamesourceExcludesBuildDirBaseDirTracerunTrace bracketTrace bracketTrace_ traceCommandtraceOutputLogbaseDirCurrentbaseDirSpecifybuildDirRelativebuildDirAbsolute defaultConfig liftTracerunBuild bracketBuild bracketBuild_ askBaseDir askConfig askBuildDirfindDescriptionFileparsePackageDescriptionhackageLongName hackageNamehackageVersionsetupCmdclean configuresdistbuildinstallregisterNameRuleSimpleSuggestHackageHackageVersionmkHackageVersion'mkHackageVersionhackageVersionNumbers mkHackagedebianShortNamemkHackageDefaultdebianNamesFromSourceNamehackageArchiveNamehackageArchiveghcLibraryBinPackagesghcLibraryDocPackageghcLibraryPackagesHaskellPackage ChangesType ChangesSource ChangesAll ChangesArchSource DebianVersionversionFromHackageVersion origVersion' isNative'readDebianVersionmkSource sourceNameversion origVersionisNativeorigArchiveNamenativeArchiveName sourceDirNamederiveHackageVersionparseChangeLogtakeChangesTypeisSourceChangesisBinaryChangeshackagepackagehaskellPackageDefaulthaskellPackageFromPackage BuildModeIndepDepSrcBinAll readProcess' rawSystem'system'chdirpwdcreateDirectoryIfMissingrenameDirectory renameFile confirmPath unpackInDirunpack packInDir' packInDirwithCurrentDir' cabalDebian' cabalDebianpackageVersiondpkgParseChangeLogdebuilddebi'debi buildPackagerebuildremoveGhcLibrarywithCurrentDirwithBaseCurrentDir getBuildDirremoveBuildDir origArchive nativeArchive sourceDir copyDebianDirrsyncGenOrigSourcesrsyncGenNativeSourcesrsyncGenSourcescabalGenOrigSourcescabalGenSourcescabalAutogenSourcesfindDebianChanges genSources unBuildDir$fShowBuildDir unBaseDir readerBracket toBracket_traceIOtprintCabal-1.18.1.3Distribution.PackageDescriptionPackageDescription _testDotCabalsetupdefaultHackageSrcPrefixdistDir$fReadHackageVersion$fShowHackageVersionDebianNonNative DebianNativeParser runParserdebianNativeVersiondebianNonNativeVersionlexWord returnParsedreturnParsedVersionreturnParsedNMUparseDebianVersion readMaybe'$fReadDebianVersion$fShowDebianVersion splitCommand handleExit renameMsgrundebuild'debianDirName' getBaseDir withBuildDirrsyncGenOrigSourceDircabalGenArchivecabalGenOrigArchivecabalAutogenDebianDirfindDebianChangeLogfindCabalDescription