herms 1.8.1.2 → 1.8.1.3
raw patch · 4 files changed
+33/−8 lines, 4 filesdep ~brickdep ~semigroupsdep ~vty
Dependency ranges changed: brick, semigroups, vty
Files
- README.md +23/−2
- app/herms.hs +1/−1
- herms.cabal +4/−4
- src/Types.hs +5/−1
README.md view
@@ -19,13 +19,34 @@ ### Installation -Via Hackage:+#### PATH setup++Firstly, make sure that the following is added to your PATH:+ ```+~/.cabal/bin+```++#### Download and install++You have options!++Via Hackage and Cabal:+``` cabal update cabal install herms ``` -Manually cloning and installing from source:+Manually cloning and installing from source with stack (recommended):++```+git clone https://github.com/JackKiefer/herms+cd herms+stack update+stack install+```++You can also manually compile with cabal, but your milage may vary with dependency resolution: ``` git clone https://github.com/JackKiefer/herms
app/herms.hs view
@@ -51,7 +51,7 @@ putStrLn "Recipe saved!" else if response == "n" || response == "N" then do- putStrLn "Recipe discarded."+ putStrLn "Changes discarded." else if response == "e" || response == "E" then do doEdit newRecipe oldRecp
herms.cabal view
@@ -16,7 +16,7 @@ -- PVP summary: +-+------- New features or improvements with significant API change -- | | +----- Bugfixes and improvements with minor change to API -- | | | +--- Bugfixes and improvements with no change to API-version: 1.8.1.2+version: 1.8.1.3 -- A short (one-line) description of the package. synopsis: A command-line manager for delicious kitchen recipes@@ -79,14 +79,14 @@ -- Other library packages from which modules are imported. build-depends: ansi-terminal == 0.7.* , base >=4.8 && <5- , brick >=0.19 && <0.20+ , brick >=0.19 && <= 0.34.1 , directory >= 0.0 , microlens >=0.4 && <0.5 , microlens-th >=0.4 && <0.5 , optparse-applicative >=0.14 && <0.15- , semigroups == 0.18.3+ , semigroups >= 0.18.3 && <= 0.18.4 , split >=0.2 && <0.3- , vty >=5.15 && <5.16+ , vty >=5.15 && <=5.20 -- Directories containing source files.
src/Types.hs view
@@ -102,7 +102,11 @@ s = read $ concat $ r !! 2 i = adjustIngredients (1 % s) $ readIngredients [r !! 3, r !! 4, r !! 5, r !! 6] dir = r !! 7- t = words $ concat (r !! 8)+ unparsedTags = concat (r !! 8)+ t = if ',' `elem` unparsedTags then+ map (dropWhile (== ' ')) $ splitOn "," unparsedTags+ else+ words unparsedTags fillVoidTo :: [String] -> Int -> [String] fillVoidTo xs n = if l < n then xs ++ replicate (n - l) "" else xs