aboutsummaryrefslogtreecommitdiffstats
path: root/src/Store/Store.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2025-02-19 14:20:33 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2025-02-19 14:21:09 +0100
commit7916df381a7832f01f6dafb83ab62d5095af808d (patch)
treeaa835c0c51355a905f7d0c046ddaf65393d32700 /src/Store/Store.hs
parent47ca7c9e8658c1bdbd9e9519581935b1da3ee538 (diff)
generalize `Store.query`
Diffstat (limited to 'src/Store/Store.hs')
-rw-r--r--src/Store/Store.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Store/Store.hs b/src/Store/Store.hs
index 134c8c3..61be89b 100644
--- a/src/Store/Store.hs
+++ b/src/Store/Store.hs
@@ -32,6 +32,7 @@ import Data.Time.Clock (getCurrentTime)
import Foreign
import Git qualified as G
import Git.Libgit2 qualified as GB
+import Store.Exception (DecodeException (DecodeException))
import System.FilePath (addTrailingPathSeparator, makeRelative, normalise, (</>))
import Text.Printf (printf)
import Prelude hiding (readFile, writeFile)
@@ -128,11 +129,6 @@ data InappropriateType = InappropriateType String FilePath
instance Exception InappropriateType
-data DecodeException = DecodeException String
- deriving (Show)
-
-instance Exception DecodeException
-
class Readable a where
readFile :: FilePath -> StoreM a