mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
Instance template (#33)
* protocol instance template [WIP] * protocol instances template * add methods to check correctness of participant types in protocol TH * PushConfirm and and PushMsg implementation types * check Command type + doctest
This commit is contained in:
committed by
GitHub
parent
aa2ac80cf9
commit
bdec751725
@@ -19,7 +19,9 @@ ghc-options:
|
||||
- -Wincomplete-uni-patterns
|
||||
|
||||
default-extensions:
|
||||
- BlockArguments
|
||||
- DuplicateRecordFields
|
||||
- LambdaCase
|
||||
- NamedFieldPuns
|
||||
- NoImplicitPrelude
|
||||
- OverloadedStrings
|
||||
@@ -35,10 +37,12 @@ dependencies:
|
||||
- servant-docs
|
||||
- servant-server
|
||||
- template-haskell
|
||||
# - pretty-show
|
||||
|
||||
library:
|
||||
source-dirs: src
|
||||
exposed-modules:
|
||||
- Predicate
|
||||
- Simplex.Messaging.Types
|
||||
- Simplex.Messaging.ServerAPI
|
||||
|
||||
@@ -46,3 +50,12 @@ executables:
|
||||
api-docs:
|
||||
source-dirs: src
|
||||
main: Main.hs
|
||||
|
||||
tests:
|
||||
simplex-definitions-doctests:
|
||||
source-dirs: tests
|
||||
main: doctest-driver.hs
|
||||
ghc-options: -threaded
|
||||
dependencies:
|
||||
- doctest
|
||||
- doctest-driver-gen
|
||||
|
||||
Reference in New Issue
Block a user