diff options
Diffstat (limited to 'app/TreeGrepper/Result.hs')
-rw-r--r-- | app/TreeGrepper/Result.hs | 15 |
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 |