aboutsummaryrefslogtreecommitdiffstats
path: root/app/Exception.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-03 13:29:00 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-03 13:29:00 +0100
commit32c76fb1f411896a4727ba2a76cdfc9dcd3dc48a (patch)
tree9237f6dcd3c165d864861ab9533c0ed4a093d2a7 /app/Exception.hs
parent22c71e24edc8655f15c8dba02244b8e6d059da5c (diff)
feat: color patches
Diffstat (limited to 'app/Exception.hs')
-rw-r--r--app/Exception.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Exception.hs b/app/Exception.hs
index ddaef5a..49c9cb6 100644
--- a/app/Exception.hs
+++ b/app/Exception.hs
@@ -4,6 +4,7 @@ module Exception
NoCommits (..),
ProcessException (..),
UnknownFileExtension (..),
+ InvalidDiff (..),
)
where
@@ -16,6 +17,7 @@ data AnyException
| NoCommits' NoCommits
| ProcessException' ProcessException
| UnknownFileExtension' UnknownFileExtension
+ | InvalidDiff' InvalidDiff
deriving (Show)
instance Exception AnyException
@@ -43,3 +45,8 @@ data UnknownFileExtension = UnknownFileExtension
deriving (Show)
instance Exception UnknownFileExtension
+
+data InvalidDiff = InvalidDiff String
+ deriving (Show)
+
+instance Exception InvalidDiff