Unison.Server.Local.Endpoints.Current
type CurrentEndpoint = "current" :> APIGet Current Source #
data Current Source #
Constructors
Fields
Defined in Unison.Server.Local.Endpoints.Current
Methods
toJSON :: Current -> Value #
toEncoding :: Current -> Encoding #
toJSONList :: [Current] -> Value #
toEncodingList :: [Current] -> Encoding #
omitField :: Current -> Bool #
Associated Types
from :: Current -> Rep Current x #
to :: Rep Current x -> Current #
showsPrec :: Int -> Current -> ShowS #
show :: Current -> String #
showList :: [Current] -> ShowS #
declareNamedSchema :: Proxy Current -> Declare (Definitions Schema) NamedSchema #
toSamples :: Proxy Current -> [(Text, Current)] #
serveCurrent :: forall (m :: Type -> Type) v a. MonadIO m => Codebase m v a -> Backend m Current Source #
getCurrentProjectBranch :: MonadIO m => Codebase m v a -> m Current Source #