Skip to content

Commit

Permalink
Merge pull request #25 from vst/24-fix-build
Browse files Browse the repository at this point in the history
fix(deps): upgrade table-layout to v1.0.0.0
  • Loading branch information
vst authored May 2, 2024
2 parents c10ed56 + 5d2cb91 commit db1e044
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ let
overrides = self: super: {
bytehash = pkgs.haskell.lib.dontCheck super.bytehash;
hetzner = self.hetzner_0_6_0_0;
table-layout = self.callCabal2nixWithOptions "table-layout" sources.table-layout "--no-check" { };
};
};

Expand Down
7 changes: 7 additions & 0 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/8468b0786c4f5a4e5eab5a4921b75a0139b0474d.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"table-layout": {
"sha256": "0vbz8lmjzxz9flpnzjfhis85ck3q6zfn6xa1ms8j5gcgh1bfjilr",
"type": "tarball",
"url": "https://hackage.haskell.org/package/table-layout-1.0.0.0/table-layout-1.0.0.0.tar.gz",
"url_template": "https://hackage.haskell.org/package/table-layout-<version>/table-layout-<version>.tar.gz",
"version": "1.0.0.0"
}
}
5 changes: 3 additions & 2 deletions src/Clompse/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ doServerListConsole rs =
]
hs =
Tab.titlesH
[ "#"
[ "#" :: String
, "Profile"
, "Provider"
, "Region"
Expand Down Expand Up @@ -232,7 +232,8 @@ doServerListConsole rs =
, T.intercalate "," (fmap Z.Net.ipv4ToText (_serverListItemIPv4Static <> _serverListItemIPv4Public))
]
rows = fmap (uncurry mkRows) (zip [1 :: Int ..] rs)
in putStrLn $ Tab.tableString cs Tab.unicodeS hs rows
table = Tab.columnHeaderTableS cs Tab.unicodeS hs rows
in putStrLn $ Tab.tableString table


formatIntegral :: Integral a => a -> T.Text
Expand Down

0 comments on commit db1e044

Please sign in to comment.