packages feed

summoner 1.0.2 → 1.0.3

raw patch · 4 files changed

+27/−10 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Summoner +1.0.3+=====+* [#92](https://github.com/kowainik/summoner/issues/92):+  Remove -fhide-source-paths from generated stack yaml files for+  GHC < 8.2+ 1.0.2 ===== 
README.md view
@@ -4,21 +4,21 @@ [![Windows build status](https://ci.appveyor.com/api/projects/status/github/kowainik/summoner?branch=master&svg=true)](https://ci.appveyor.com/project/kowainik/summoner) [![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/kowainik/summoner/blob/master/LICENSE) [![Hackage](https://img.shields.io/hackage/v/summoner.svg)](https://hackage.haskell.org/package/summoner)+[![Stackage LTS](http://stackage.org/package/summoner/badge/lts)](http://stackage.org/lts/package/summoner)+[![Stackage Nightly](http://stackage.org/package/summoner/badge/nightly)](http://stackage.org/nightly/package/summoner)  This is tool for creating completely configured production Haskell projects.-Consider that it's using [`Stack`](http://haskellstack.org) for-creating and setting up projects.  ## Demo -[![asciicast](https://asciinema.org/a/Wf8ZOMAZSUFyAJob70pwM6rZ1.png)](https://asciinema.org/a/Wf8ZOMAZSUFyAJob70pwM6rZ1)+[![asciicast](https://asciinema.org/a/PCt492vIY7ccuNw3qBJFM9q9G.png)](https://asciinema.org/a/PCt492vIY7ccuNw3qBJFM9q9G)  ## Getting started  ### Prerequisites  To start using it make sure you have next tools installed on your machine:-* [`Stack`](http://haskellstack.org)+* [`Stack`](http://haskellstack.org) or [`cabal`](https://www.haskell.org/cabal/) * [`git`](https://git-scm.com) * [`hub`](https://github.com/github/hub) @@ -26,8 +26,12 @@  Installation process can be done with one simple command: -    $ stack install summoner+    $ cabal install summoner +or++    $ stack install summoner --resolver nightly-2018-06-01+ You can turn on the bash auto-completion by running the following command:  ```@@ -86,7 +90,7 @@           `false` if you don't. If not specified it would be asked during each run of the `summoner`. * `test` – `true` if you want to create `test` folder with dummy `Spec.hs` file and test target by default,           `false` if you don't. If not specified it would be asked during each run of the `summoner`.-* `bench` – `true` if you want to create `benchmark` folder  with `Main.hs` file with dummy `gauge` library usage example by default,+* `bench` – `true` if you want to create `benchmark` folder  with `Main.hs` file with [`gauge`](https://hackage.haskell.org/package/gauge) library usage example by default,           `false` if you don't. If not specified it would be asked during each run of the `summoner`. * `extensions` – List of the default extensions to add into `default-extensions` section in the `.cabal`. @@ -227,5 +231,5 @@ ## Acknowledgments  This project was inspired by [Aelve/new-hs](https://github.com/aelve/new-hs#readme),-which is the tool with the same goal but the difference is that it's using+which is the tool with the same goal but it's using [`cabal`](https://www.haskell.org/cabal/) for creating projects.
src/Summoner/Template.hs view
@@ -438,8 +438,7 @@                  $extraDeps -                ghc-options:-                  "$$locals": -fhide-source-paths+                $ghcOpts                 $endLine                 |]               where@@ -447,6 +446,14 @@                 extraDeps = case prelude of                     Nothing -> ""                     Just _  -> "extra-deps: [base-noprelude-" <> baseVer <> "]"+                ghcOpts :: Text+                ghcOpts = if ghcV <= Ghc802 then+                            ""+                          else+                            [text|+                            ghc-options:+                              "$$locals": -fhide-sourcepaths+                            |]       -- create appveyor.yml template
summoner.cabal view
@@ -1,5 +1,5 @@ name:                summoner-version:             1.0.2+version:             1.0.3 synopsis:            Tool for creating completely configured production Haskell projects. description:         Tool for creating completely configured production Haskell projects.                      See README.md for details.