aboutsummaryrefslogtreecommitdiffstats
path: root/app/TreeGrepper/FileType.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-28 13:06:48 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-28 13:10:07 +0100
commit739c0d06b63bed7619b39eb189c5e5a34fd8da49 (patch)
tree0c4c0f39ccce82f5a325045db3c043c699e5c907 /app/TreeGrepper/FileType.hs
parentc138fb9910c661f7efd00cc7dceb6fc68dc790a9 (diff)
editing issues preserves comment style
Diffstat (limited to 'app/TreeGrepper/FileType.hs')
-rw-r--r--app/TreeGrepper/FileType.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/TreeGrepper/FileType.hs b/app/TreeGrepper/FileType.hs
index 1ebeac1..506cbc5 100644
--- a/app/TreeGrepper/FileType.hs
+++ b/app/TreeGrepper/FileType.hs
@@ -8,7 +8,9 @@ module TreeGrepper.FileType
where
import Data.Aeson (FromJSON (parseJSON))
+import Data.Binary (Binary)
import Data.Text (Text)
+import GHC.Generics (Generic)
import Prelude hiding (all)
data FileType
@@ -16,7 +18,7 @@ data FileType
| Haskell
| Nix
| Shell
- deriving (Show)
+ deriving (Eq, Show, Generic, Binary)
instance FromJSON FileType where
parseJSON v =