1
1
mirror of https://github.com/nmattia/niv.git synced 2024-12-01 15:56:03 +03:00

Merge pull request #153 from nmattia/nm-0.2.5

Fix niv show newlines and release 0.2.5
This commit is contained in:
Nicolas Mattia 2019-12-01 22:34:44 +01:00 committed by GitHub
commit d9f62fdcb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## [0.2.5] 2019-12-01
## Changed
* Fix `niv show` adding extra newlines
## [0.2.4] 2019-12-01
### Added
* Experimental support for `add` subcommands, in particular `niv add git`

View File

@ -199,7 +199,7 @@ $ niv update ghc -v 8.6.2
```
niv - dependency manager for Nix projects
version: 0.2.4
version: 0.2.5
Usage: niv COMMAND

View File

@ -1,5 +1,5 @@
name: niv
version: 0.2.4
version: 0.2.5
license: MIT
author: Nicolas Mattia <nicolas@nmattia.com>
maintainer: Nicolas Mattia <nicolas@nmattia.com>

View File

@ -17,6 +17,7 @@ module Niv.Logger
) where
import Control.Monad
import Data.List
import Data.Profunctor
import System.Exit (exitFailure)
import System.IO.Unsafe (unsafePerformIO)
@ -59,7 +60,9 @@ say :: String -> IO ()
say msg = do
stackSize <- jobStackSize
let indent = replicate (stackSize * 2) ' '
putStrLn $ unlines $ (indent <>) <$> lines msg
-- we use `intercalate "\n"` because `unlines` prints an extra newline at
-- the end
putStrLn $ intercalate "\n" $ (indent <>) <$> lines msg
green :: S
green str =