split off a autodocodec-aeson-schema package

This commit is contained in:
Tom Sydney Kerckhove 2021-11-01 19:06:42 +01:00
parent 312149899a
commit 190d702200
15 changed files with 103 additions and 6 deletions

2
autodocodec-aeson-schema/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.stack-work/
*~

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Tom Sydney Kerckhove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,43 @@
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: autodocodec-aeson-schema
version: 0.0.0.0
synopsis: Autodocodec JSON Schemas
homepage: https://github.com/NorfairKing/autodocodec#readme
bug-reports: https://github.com/NorfairKing/autodocodec/issues
author: Tom Sydney Kerckhove
maintainer: syd@cs-syd.eu
copyright: 2021 Tom Sydney Kerckhove
license: MIT
license-file: LICENSE
build-type: Simple
source-repository head
type: git
location: https://github.com/NorfairKing/autodocodec
library
exposed-modules:
Autodocodec.Aeson.Document
other-modules:
Paths_autodocodec_aeson_schema
hs-source-dirs:
src
build-depends:
aeson
, autodocodec
, autodocodec-aeson
, base >=4.7 && <5
, containers
, mtl
, text
, unordered-containers
, validity
, validity-aeson
, validity-containers
, validity-text
default-language: Haskell2010

View File

@ -0,0 +1,27 @@
name: autodocodec-aeson-schema
version: 0.0.0.0
github: "NorfairKing/autodocodec"
license: MIT
license-file: LICENSE
author: "Tom Sydney Kerckhove"
maintainer: "syd@cs-syd.eu"
copyright: "2021 Tom Sydney Kerckhove"
synopsis: Autodocodec JSON Schemas
dependencies:
- base >= 4.7 && < 5
library:
source-dirs: src
dependencies:
- aeson
- autodocodec
- autodocodec-aeson
- containers
- mtl
- text
- unordered-containers
- validity
- validity-aeson
- validity-containers
- validity-text

View File

@ -25,7 +25,6 @@ library
Autodocodec.Aeson
Autodocodec.Aeson.Decode
Autodocodec.Aeson.DerivingVia
Autodocodec.Aeson.Document
Autodocodec.Aeson.Encode
other-modules:
Paths_autodocodec_aeson

View File

@ -4,12 +4,10 @@ module Autodocodec.Aeson
( -- * To makes sure we definitely export everything.
module Autodocodec.Aeson.Decode,
module Autodocodec.Aeson.DerivingVia,
module Autodocodec.Aeson.Document,
module Autodocodec.Aeson.Encode,
)
where
import Autodocodec.Aeson.Decode
import Autodocodec.Aeson.DerivingVia ()
import Autodocodec.Aeson.Document
import Autodocodec.Aeson.Encode

View File

@ -32,6 +32,7 @@ library
, aeson
, autodocodec
, autodocodec-aeson
, autodocodec-aeson-schema
, autodocodec-yaml
, base >=4.7 && <5
, bytestring
@ -61,6 +62,7 @@ test-suite autodocodec-api-usage-test
, aeson
, autodocodec
, autodocodec-aeson
, autodocodec-aeson-schema
, autodocodec-api-usage
, autodocodec-yaml
, base >=4.7 && <5

View File

@ -18,6 +18,7 @@ library:
- aeson
- autodocodec
- autodocodec-aeson
- autodocodec-aeson-schema
- autodocodec-yaml
- bytestring
- genvalidity
@ -43,6 +44,7 @@ tests:
- aeson
- autodocodec
- autodocodec-aeson
- autodocodec-aeson-schema
- autodocodec-api-usage
- autodocodec-yaml
- bytestring

View File

@ -9,6 +9,7 @@ module Autodocodec.Aeson.DocumentSpec (spec) where
import Autodocodec
import Autodocodec.Aeson
import Autodocodec.Aeson.Document
import Autodocodec.Usage
import qualified Data.Aeson as JSON
import Data.Data

View File

@ -30,7 +30,7 @@ library
src
build-depends:
autodocodec
, autodocodec-aeson
, autodocodec-aeson-schema
, base >=4.7 && <5
, bytestring
, containers

View File

@ -15,7 +15,7 @@ library:
source-dirs: src
dependencies:
- autodocodec
- autodocodec-aeson
- autodocodec-aeson-schema
- bytestring
- containers
- safe-coloured-text

View File

@ -7,7 +7,7 @@
module Autodocodec.Yaml.Document where
import Autodocodec
import Autodocodec.Aeson
import Autodocodec.Aeson.Document
import Data.ByteString (ByteString)
import Data.List.NonEmpty (NonEmpty (..))
import qualified Data.Map as M

View File

@ -10,6 +10,7 @@ with final.haskell.lib;
final.lib.genAttrs [
"autodocodec"
"autodocodec-aeson"
"autodocodec-aeson-schema"
"autodocodec-yaml"
"autodocodec-api-usage"
]

View File

@ -2,6 +2,7 @@ resolver: nightly-2021-05-10
packages:
- autodocodec
- autodocodec-aeson
- autodocodec-aeson-schema
- autodocodec-yaml
# Test-only
- autodocodec-api-usage