stub out unison-share-projects-api package

This commit is contained in:
Mitchell Rosen 2023-01-24 14:03:47 -05:00
parent 6d4114b76e
commit 5eb855a13f
6 changed files with 118 additions and 0 deletions

View File

@ -117,6 +117,9 @@ cradle:
- path: "unison-share-api/src"
component: "unison-share-api:lib"
- path: "unison-share-projects-api/src"
component: "unison-share-projects-api:lib"
- path: "unison-syntax/src"
component: "unison-syntax:lib"

View File

@ -16,6 +16,7 @@ packages:
- unison-cli
- unison-hashing-v2
- unison-share-api
- unison-share-projects-api
- unison-syntax
- codebase2/codebase
- codebase2/codebase-sqlite

View File

@ -0,0 +1,10 @@
The Project-related part of the Share API.
Ultimately this package should just be folded into one package that defines the entire Servant API for a
Share-compatible server to implement.
However, that package should (probably) be called `unison-share-api`, which, at the time of writing (Jan 2023),
has a ton of non-Share-API related modules and functionality in it.
So rather than rename it, or rip modules out, or anything like that, we decided to make this new package, which should
be deleted eventually.

View File

@ -0,0 +1,46 @@
name: unison-share-projects-api
github: unisonweb/unison
copyright: Copyright (C) 2013-2023 Unison Computing, PBC and contributors
library:
source-dirs: src
when:
- condition: false
other-modules: Paths_unison_share_projects_api
dependencies:
- base
- servant-server
ghc-options:
-Wall
default-extensions:
- BlockArguments
- ConstraintKinds
- DeriveAnyClass
- DeriveFunctor
- DeriveGeneric
- DerivingStrategies
- DerivingVia
- DoAndIfThenElse
- DuplicateRecordFields
- FlexibleContexts
- FlexibleInstances
- GADTs
- GeneralizedNewtypeDeriving
- KindSignatures
- LambdaCase
- MultiParamTypeClasses
- NamedFieldPuns
- NumericUnderscores
- OverloadedStrings
- PatternSynonyms
- RankNTypes
- ScopedTypeVariables
- StandaloneDeriving
- TupleSections
- TypeApplications
- TypeOperators
- ViewPatterns

View File

@ -0,0 +1,3 @@
module Unison.Share.API.Projects where
import Servant

View File

@ -0,0 +1,55 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
name: unison-share-projects-api
version: 0.0.0
homepage: https://github.com/unisonweb/unison#readme
bug-reports: https://github.com/unisonweb/unison/issues
copyright: Copyright (C) 2013-2023 Unison Computing, PBC and contributors
build-type: Simple
source-repository head
type: git
location: https://github.com/unisonweb/unison
library
exposed-modules:
Unison.Share.API.Projects
hs-source-dirs:
src
default-extensions:
BlockArguments
ConstraintKinds
DeriveAnyClass
DeriveFunctor
DeriveGeneric
DerivingStrategies
DerivingVia
DoAndIfThenElse
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
NumericUnderscores
OverloadedStrings
PatternSynonyms
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeOperators
ViewPatterns
ghc-options: -Wall
build-depends:
base
, servant-server
default-language: Haskell2010