stack-run 0.1.0.5 → 0.1.0.6
raw patch · 3 files changed
+5/−2 lines, 3 files
Files
- README.md +3/−0
- src/Main.hs +1/−1
- stack-run.cabal +1/−1
README.md view
@@ -25,3 +25,6 @@ ## License This code is published under the MIT license.++## Donations+Would you like to buy me a beer? Send bitcoin to 3JjxJydvoJjTrhLL86LGMc8cNB16pTAF3y
src/Main.hs view
@@ -56,7 +56,7 @@ findDefault' pr = do cfp <- fromMaybe (error "No cabal file found") <$> (find ((== ".cabal") . takeExtension) <$> getDirectoryContents pr)- getPackageDescription cfp >>= getDefaultExecutable+ getPackageDescription (pr </> cfp) >>= getDefaultExecutable where getPackageDescription p = parsePackageDescription <$> readFile p getDefaultExecutable (ParseFailed _) =
stack-run.cabal view
@@ -1,5 +1,5 @@ name: stack-run-version: 0.1.0.5+version: 0.1.0.6 synopsis: An equivalent to cabal run for stack. description: Finds the project root, compiles your code and runs the first or set default executable. It's a shorthand for