aboutsummaryrefslogtreecommitdiffstats
path: root/app/TreeGrepper/Result.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-10-04 10:01:50 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-10-04 10:01:50 +0200
commit4adb99e683b81df9d572c05db06e6fb688fb007a (patch)
tree84be7f1aa0bf83e272cf600c0ae4c2bc0b51af21 /app/TreeGrepper/Result.hs
parent3ae98347e7ad3e410974c4f6bac1ccaf56daa280 (diff)
bring issue extraction on-par with shell script
Diffstat (limited to 'app/TreeGrepper/Result.hs')
-rw-r--r--app/TreeGrepper/Result.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/TreeGrepper/Result.hs b/app/TreeGrepper/Result.hs
new file mode 100644
index 0000000..856871a
--- /dev/null
+++ b/app/TreeGrepper/Result.hs
@@ -0,0 +1,15 @@
+module TreeGrepper.Result (Result (..)) where
+
+import Data.Aeson (FromJSON)
+import GHC.Generics (Generic)
+import TreeGrepper.FileType (FileType)
+import TreeGrepper.Match (Match)
+
+data Result = Result
+ { file :: String,
+ file_type :: FileType,
+ matches :: [Match]
+ }
+ deriving (Show, Generic)
+
+instance FromJSON Result