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:
commit
d9f62fdcb7
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user