1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-18 19:07:19 +03:00

Fix niv show newlines and release 0.2.5

This commit is contained in:
Nicolas Mattia 2019-12-01 18:31:58 +01:00
parent 7f6ffb1667
commit b87d7c84ef
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 =