From 34e66b3ab80fb201f49998ab46bb7a35370012c0 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 14 Nov 2021 02:27:36 +0100 Subject: too much type level stuff to read a config file This got kinda out of hand, but it can now (a) read a json config file and (b) patch that with another json given on the command line to change some of the options given in the file. No, I probably didn't need to make the `patch` function sufficiently general to work with arbitrary records, but it was kinda fun to do. --- walint.cabal | 2 ++ 1 file changed, 2 insertions(+) (limited to 'walint.cabal') diff --git a/walint.cabal b/walint.cabal index 069d8f3..4faf69c 100644 --- a/walint.cabal +++ b/walint.cabal @@ -35,6 +35,7 @@ library Util Types Paths + LintConfig build-depends: base, aeson, bytestring, @@ -59,6 +60,7 @@ executable walint aeson, aeson-pretty, bytestring, + mtl, -- bytestring-encoding, text hs-source-dirs: src -- cgit v1.2.3