File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 11-- | Utils for working with `unison` packages and types
22module Share.Utils.Unison where
33
4- import Control.Monad.Except
5- import Control.Monad.Reader
64import Data.ByteString.Lazy.Char8 qualified as BL
75import Data.Text.Encoding qualified as Text
6+ import Servant
87import Share.Postgres.IDs
98import Share.Prelude
109import Share.Utils.Logging qualified as Logging
11- import Share.Web.App (WebApp )
12- import Share.Web.Errors (respondError )
1310import Share.Web.Errors qualified as Errors
14- import Servant
1511import Unison.Hash qualified as Hash
1612import Unison.Hash32 qualified as Hash32
17- import Unison.Server.Backend qualified as Backend
18-
19- liftBackend :: Backend. Backend IO a -> WebApp a
20- liftBackend m = do
21- result <- liftIO (runExceptT . flip runReaderT env . Backend. runBackend $ m)
22- either respondError pure result
23- where
24- env = Backend. BackendEnv {Backend. useNamesIndex = True }
2513
2614newtype InvalidCausalHash = InvalidCausalHash CausalHash
2715 deriving stock (Show , Eq )
You can’t perform that action at this time.
0 commit comments