aboutsummaryrefslogtreecommitdiffstats
path: root/app/TreeGrepper/Result.hs
blob: 856871a4f59ec9a9a28f55e67c5ff2f805775504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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