Skip to content
Permalink
Browse files

Merge pull request #153 from nmattia/nm-0.2.5

Fix niv show newlines and release 0.2.5
  • Loading branch information
nmattia committed Dec 1, 2019
2 parents 7f6ffb1 + b87d7c8 commit d9f62fdcb7f009e916a4377388316e8d4718173f
Showing with 10 additions and 3 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 README.md
  3. +1 −1 package.yaml
  4. +4 −1 src/Niv/Logger.hs
@@ -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`
@@ -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
@@ -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>
@@ -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 =

0 comments on commit d9f62fd

Please sign in to comment.
You can’t perform that action at this time.