packages feed

ats-pkg 1.2.0.1 → 1.2.0.2

raw patch · 6 files changed

+20/−125 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

− .travis.yml
@@ -1,83 +0,0 @@-----sudo: false-cache:-  directories:-    - $HOME/.stack-addons:-  apt:-    packages:-      - libgmp3-dev-matrix:-  include:--    # Linux-    - env: TARGET=x86_64-unkown-linux-gnu-      language: python--    # OS X-    - env: TARGET=x86_64-apple-darwin-      os: osx-      language: default--before_install:-  - mkdir -p ~/.local/bin-  - export PATH=$HOME/.local/bin:$PATH-  - |-    if [ `uname` = "Darwin" ]-    then-      curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin-    else-      curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'-    fi-  - chmod a+x ~/.local/bin/stack-  - |-    if [ `uname` = "Linux" ]-    then-      pip install yamllint-    else-      echo "skipping yaml verification..."-    fi--install:-  - stack --no-terminal --install-ghc test --only-dependencies--script:-  - stack --no-terminal build --haddock --no-haddock-deps-  - stack test --no-run-tests-  - |-    if [ `uname` = "Linux" ]-    then-      yamllint stack.yaml-      yamllint appveyor.yml-      yamllint .travis.yml-      yamllint .yamllint-    else-      echo "skipping yaml verification..."-    fi-  - stack bench --no-bench-  - curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s .-  - curl -sL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .-  - |-    if [ `uname` = "Darwin" ]-    then-      export BINPATH="$(find . -name ats-pkg -perm 755 | tail -n1)"-    else-      export BINPATH="$(find -name ats-pkg -executable | tail -n2 | head -n1)"-    fi-  - echo $BINPATH-  - mv $BINPATH ats-pkg-$TARGET-  - ls ats-pkg-$TARGET--deploy:-  api_key:-    secure: "IZLQxO3HtTM2nqowxVOY3MhRhGZTElXUn0jpyPBkbrxLzk8Ykac15lSAGOs4MYo/GdKof8YYr2fHGChv7/PkF/HYSLFcDrY0UzpCP8QqANWjKbakQmVqU+YTtas3cq/Gk1l2tY9MGDNfMB7jk92Nh6BsA1TxReyziVPCDJv+z4UYZqQGhBxYQlVqHlcxYpS0p5gmXTFC8+io/ArGzC4jHqaZ+LmrzVMiXdDeQnVIOtQHbwWLwPb6mXBA8W5qC/IAgivb+w9aH86GUgML2t16b2/pCHQANigaeDTAseaU2PUv2fJTqexBfrAH34FJ+TQxROi8JpXu2/SVDuironTOPhUSnVd3aYNd64lOB80UmCxIWxYcYVA7olr6Qth1ZfKI0ks64sXJ7XlLDykCPqSTdnuiCEsqlHll+2ZA2uEHKuwRxMht/ZxKnW6a6GidaRp2cImBe7sMBQyiLYzf6+ZJQyy7H5beV9FsiTAyA4oxEGtl+220i0kwz6CV4+WXeoO7yv4TAKVfIEMjvHANV/kWEztuwcs3kIJzXJd1J/TdAneOHOCKGbnqDSDNeY48upwaPCQOnNA+RK4PYiA0YJ5zoq8hamtaMVzciGWMX3rFux9qC4wjgcTafFwyF3MSuF/TitAZI/xAtCOnCsZspuaBXI1nuoLoF61oixvD9xMeyNo="-  file: ats-pkg-$TARGET-  on:-    tags: true-  provider: releases-  skip_cleanup: true--branches:-  only:-    - /\d+\.\d+\.\d+\.\d+.*$/-    - master
README.md view
@@ -4,6 +4,14 @@ is currently a work-in-progress. You can see a working example [here](http://github.com/vmchale/polyglot). +## Example++To build a binary package from source, run++```bash+ $ atspkg remote https://github.com/vmchale/polyglot/archive/0.3.28.tar.gz+```+ ## Installation  Currently, the best way to install is
− appveyor.yml
@@ -1,35 +0,0 @@------build: off--before_test:-  - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%--  - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386-  - 7z x stack.zip stack.exe--clone_folder: "c:\\stack"-environment:-  global:-    STACK_ROOT: "c:\\sr"--test_script:-  - stack setup > nul-  - echo "" | stack --no-terminal install-  - ps: Get-ChildItem . -name -recurse ats-pkg.exe-  - ps: Copy-Item c:\\stack\\.stack-work\\install\\afd8a623\\bin\\ats-pkg.exe ats-pkg-x86_64-pc-windows.exe-  - ps: Push-AppveyorArtifact ats-pkg-x86_64-pc-windows.exe--deploy:-  artifacts: ats-pkg-x86_64-pc-windows.exe-  provider: GitHub-  on:-    appveyor_repo_tag: true-  auth_token:-    secure: 0qzMr6xmEwRoj/9TJOgDuW/LXWfGVM/4A7kvAXGe0BAwWCF13AWE2SARrYkyc3ji--branches:-  only:-    # Release tags-    - master-    - /\d+\.\d+\.\d+\.\d+.*$/
ats-pkg.cabal view
@@ -1,5 +1,5 @@ name:                ats-pkg-version:             1.2.0.1+version:             1.2.0.2 synopsis:            Package manager for ATS description:         A collection of scripts to make building ATS projects easy. homepage:            https://github.com/vmchale/ats-pkg#readme@@ -7,14 +7,13 @@ license-file:        LICENSE author:              Vanessa McHale maintainer:          vamchale@gmail.com-copyright:           Copyright: (c) 2017 Vanessa McHale+copyright:           Copyright: (c) 2018 Vanessa McHale category:            Development build-type:          Simple extra-doc-files:     README.md-data-files:          .travis.yml-                   , appveyor.yml extra-source-files:  stack.yaml-cabal-version:       >=1.18+                   , cabal.project.local+cabal-version:       1.18  Flag development {   Description: Enable `-Werror`
+ cabal.project.local view
@@ -0,0 +1,6 @@+constraints: ats-pkg +development+with-compiler: ghc-8.2.2+-- tests: True+documentation: True+haddock-hoogle: True+haddock-internal: True
src/Language/ATS/Package/Dependency.hs view
@@ -29,7 +29,7 @@ fetchDeps :: [Dependency] -> IO () fetchDeps deps =     unless (null deps) $ do-        putStrLn "Setting up ATS dependencies..."+        putStrLn "Checking ATS dependencies..."         let libs = fmap buildHelper deps         parallel_ libs >> stopGlobalPool @@ -38,7 +38,7 @@      let (lib, dirName, url') = (lib', dirName', url'') & each %~ TL.unpack -    needsSetup <- not <$> doesDirectoryExist (dirName ++ "/atspkg.dhall")+    needsSetup <- not <$> doesDirectoryExist dirName -- ++ "/atspkg.dhall")      when needsSetup $ do