Skip to content

Commit 0fac3a8

Browse files
committed
[Gabriella439#58] Add intermediate representation
Problem: There is no way to reuse result of diff alghorithm because program print it into stdout in human readable format in-place. Solution: divide steps of finding diff between two derivations and printing it out. Now result of `diff` is tree with result of derivation comparison, that you can print than in stdout as was before, or use in your program.
1 parent d8b004d commit 0fac3a8

File tree

4 files changed

+896
-631
lines changed

4 files changed

+896
-631
lines changed

nix-diff.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ extra-source-files: README.md
1919

2020
executable nix-diff
2121
main-is: Main.hs
22+
other-modules:
23+
Diff
24+
Render.HumanReadable
2225
build-depends: base >= 4.9 && < 5
2326
, attoparsec >= 0.13 && < 0.15
2427
, bytestring >= 0.9 && < 0.12

0 commit comments

Comments
 (0)