packages feed

madlang 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+20/−8 lines, 3 filesdep ~madlangPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: madlang

API changes (from Hackage documentation)

Files

README.md view
@@ -30,6 +30,17 @@  Of course, you can't have a circular reference with names - if `goodfortune` depends on `fortune` while `fortune` depends on `goodfortune`, you'll end up with either no fortune or an infinite fortune. So instead we just throw an error.  +### Using the libary++The main function you'll want to use is probably `runFile`; it reads a file and generates randomized text:++```+ λ> runFile "test/templates/gambling.mad"+ "heads"+```++Haddock documentation of all available functionality is located [here](https://hackage.haskell.org/package/madlang-0.1.0.0#readme). + ## Installation  ### Stack@@ -37,7 +48,7 @@ Download `stack` with  ```-curl -sSl http://haskellstack.org | sh+curl -sSL http://haskellstack.org | sh ```  Then run `stack install` and you'll get the `madlang` executable installed on your path. You can even do `stack install madlang` if you'd like. 
madlang.cabal view
@@ -1,13 +1,14 @@ name: madlang-version: 0.1.0.0+version: 0.1.0.1 cabal-version: >=1.10 build-type: Simple license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2016 Vanessa McHale maintainer: tmchale@wisc.edu+stability: experimental homepage: https://github.com/vmchale/madlang#readme-synopsis: Initial project template from stack+synopsis: Randomized templating language DSL description:     Please see README.md category: Web@@ -48,17 +49,17 @@     main-is: Main.hs     build-depends:         base >=4.9.0.0 && <4.10,-        madlang >=0.1.0.0 && <0.2+        madlang >=0.1.0.1 && <0.2     default-language: Haskell2010     hs-source-dirs: app-    ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2+    ghc-options: -threaded -rtsopts -with-rtsopts=-N  test-suite madlang-test     type: exitcode-stdio-1.0     main-is: Spec.hs     build-depends:         base >=4.9.0.0 && <4.10,-        madlang >=0.1.0.0 && <0.2,+        madlang >=0.1.0.1 && <0.2,         hspec >=2.2.4 && <2.3,         megaparsec >=5.0.1 && <5.1,         text >=1.2.2.1 && <1.3,@@ -66,4 +67,4 @@         hspec-megaparsec >=0.2.1 && <0.3     default-language: Haskell2010     hs-source-dirs: test-    ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2+    ghc-options: -threaded -rtsopts -with-rtsopts=-N
src/Text/Madlibs.hs view
@@ -1,4 +1,4 @@--- | Main module with the import functions+-- | Main module exporting the relevant functions module Text.Madlibs (                     -- * Parsers for `.mad` files                     parseTok