diff options
author | Rutger Broekhoff | 2025-03-22 14:52:35 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2025-03-22 14:52:35 +0100 |
commit | 5493329b2eed7e151f4a323c108caad2253b08bb (patch) | |
tree | a8fd1a58e0ba77d06e75222034def5eb49043bb6 /app/Main.hs | |
parent | e40e290ef216656d304f4f3095dbef223e94191d (diff) | |
download | rdcapsis-5493329b2eed7e151f4a323c108caad2253b08bb.tar.gz rdcapsis-5493329b2eed7e151f4a323c108caad2253b08bb.zip |
Refactor parser for current account statement
Diffstat (limited to 'app/Main.hs')
-rw-r--r-- | app/Main.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Main.hs b/app/Main.hs index 403b78f..f5140f2 100644 --- a/app/Main.hs +++ b/app/Main.hs | |||
@@ -15,8 +15,9 @@ import Brick.Widgets.Core | |||
15 | ) | 15 | ) |
16 | import Brick.Widgets.Dialog qualified as D | 16 | import Brick.Widgets.Dialog qualified as D |
17 | import Graphics.Vty qualified as V | 17 | import Graphics.Vty qualified as V |
18 | import Import.Ing.SavingsAccountCsv qualified | ||
19 | import Import.Ing.CurrentAccountCsv qualified | 18 | import Import.Ing.CurrentAccountCsv qualified |
19 | import Import.Ing.CurrentAccountCsv2 qualified | ||
20 | import Import.Ing.SavingsAccountCsv qualified | ||
20 | import System.IO (IOMode (ReadMode), withFile) | 21 | import System.IO (IOMode (ReadMode), withFile) |
21 | import Text.Pretty.Simple (pPrint) | 22 | import Text.Pretty.Simple (pPrint) |
22 | 23 | ||
@@ -91,10 +92,10 @@ theApp = | |||
91 | 92 | ||
92 | main :: IO () | 93 | main :: IO () |
93 | main = do | 94 | main = do |
94 | let filename = "/home/rutgerbrf/Code/P/wayligmative/test.csv" | 95 | let filename = "/home/rutgerbrf/Code/P/wayligmative/test3.csv" |
95 | putStrLn $ "Reading " ++ filename | 96 | putStrLn $ "Reading " ++ filename |
96 | withFile filename ReadMode $ \h -> do | 97 | withFile filename ReadMode $ \h -> do |
97 | entries <- Import.Ing.CurrentAccountCsv.readFile h | 98 | entries <- Import.Ing.CurrentAccountCsv2.readFile h |
98 | pPrint entries | 99 | pPrint entries |
99 | 100 | ||
100 | -- d <- M.defaultMain theApp initialState | 101 | -- d <- M.defaultMain theApp initialState |