mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2025-01-07 10:56:34 +03:00
split off a autodocodec-aeson-schema package
This commit is contained in:
parent
312149899a
commit
190d702200
2
autodocodec-aeson-schema/.gitignore
vendored
Normal file
2
autodocodec-aeson-schema/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.stack-work/
|
||||
*~
|
21
autodocodec-aeson-schema/LICENSE
Normal file
21
autodocodec-aeson-schema/LICENSE
Normal 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.
|
43
autodocodec-aeson-schema/autodocodec-aeson-schema.cabal
Normal file
43
autodocodec-aeson-schema/autodocodec-aeson-schema.cabal
Normal 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
|
27
autodocodec-aeson-schema/package.yaml
Normal file
27
autodocodec-aeson-schema/package.yaml
Normal 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
|
@ -25,7 +25,6 @@ library
|
||||
Autodocodec.Aeson
|
||||
Autodocodec.Aeson.Decode
|
||||
Autodocodec.Aeson.DerivingVia
|
||||
Autodocodec.Aeson.Document
|
||||
Autodocodec.Aeson.Encode
|
||||
other-modules:
|
||||
Paths_autodocodec_aeson
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -30,7 +30,7 @@ library
|
||||
src
|
||||
build-depends:
|
||||
autodocodec
|
||||
, autodocodec-aeson
|
||||
, autodocodec-aeson-schema
|
||||
, base >=4.7 && <5
|
||||
, bytestring
|
||||
, containers
|
||||
|
@ -15,7 +15,7 @@ library:
|
||||
source-dirs: src
|
||||
dependencies:
|
||||
- autodocodec
|
||||
- autodocodec-aeson
|
||||
- autodocodec-aeson-schema
|
||||
- bytestring
|
||||
- containers
|
||||
- safe-coloured-text
|
||||
|
@ -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
|
||||
|
@ -10,6 +10,7 @@ with final.haskell.lib;
|
||||
final.lib.genAttrs [
|
||||
"autodocodec"
|
||||
"autodocodec-aeson"
|
||||
"autodocodec-aeson-schema"
|
||||
"autodocodec-yaml"
|
||||
"autodocodec-api-usage"
|
||||
]
|
||||
|
@ -2,6 +2,7 @@ resolver: nightly-2021-05-10
|
||||
packages:
|
||||
- autodocodec
|
||||
- autodocodec-aeson
|
||||
- autodocodec-aeson-schema
|
||||
- autodocodec-yaml
|
||||
# Test-only
|
||||
- autodocodec-api-usage
|
||||
|
Loading…
Reference in New Issue
Block a user