From 739c0d06b63bed7619b39eb189c5e5a34fd8da49 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 28 Nov 2023 13:06:48 +0100 Subject: editing issues preserves comment style --- app/TreeGrepper/FileType.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/TreeGrepper/FileType.hs') 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 = -- cgit v1.2.3