jsonlogic-0.1.0.0: jsonlogic.cabal
cabal-version: 2.4
name: jsonlogic
version: 0.1.0.0
synopsis: JsonLogic Evaluation
description: JsonLogic is a library for evaluating JSON logic.
It can be extended with additional operations
category: JSON
bug-reports: https://github.com/JTeeuwissen/json-logic-haskell
license: MIT
license-file: LICENSE
author: Marien Matser, Gerard van Schie, Jelle Teeuwissen
maintainer: jelleteeuwissen@hotmail.nl
extra-source-files:
CHANGELOG.md
README.md
flag error
description: Error on ghc warnings
manual: True
default: False
library
exposed-modules:
JsonLogic.Json,
JsonLogic.IO.Evaluator,
JsonLogic.IO.Operation,
JsonLogic.IO.Type,
JsonLogic.Pure.Evaluator,
JsonLogic.Pure.Operation,
JsonLogic.Pure.Type
other-modules:
JsonLogic.IO.Mapping,
JsonLogic.IO.Operation.Misc,
JsonLogic.Pure.Mapping,
JsonLogic.Evaluator,
JsonLogic.Operation,
JsonLogic.Type,
JsonLogic.Operation.Array,
JsonLogic.Operation.Boolean,
JsonLogic.Operation.Data,
JsonLogic.Operation.Misc,
JsonLogic.Operation.Numeric,
JsonLogic.Operation.Primitive,
JsonLogic.Operation.String,
JsonLogic.Operation.Utils
default-language:
Haskell2010
ghc-options:
-Wall
hs-source-dirs:
src
build-depends:
base >= 4.14.3 && < 5,
containers >= 0.6.5 && < 0.7,
mtl >= 2.2.2 && < 2.3
if flag(error)
ghc-options:
-Werror
Test-Suite jsonlogic-tests
main-is:
Test.hs
default-language:
Haskell2010
ghc-options:
-Wall
type:
exitcode-stdio-1.0
hs-source-dirs:
test
other-modules:
-- Generators
Generator.Data,
Generator.Generic,
Generator.Logic,
Generator.Utils,
-- Operation Tests
Operation.Array.TestArrayChecks,
Operation.Array.TestFilter,
Operation.Array.TestIn,
Operation.Array.TestMerge,
Operation.Array.TestReduce,
Operation.Boolean.TestEquality,
Operation.Boolean.TestIf,
Operation.Boolean.TestNegation,
Operation.Data.TestMissing,
Operation.Data.TestMissingSome,
Operation.Data.TestPreserve,
Operation.Data.TestVar,
Operation.String.TestCat,
Operation.String.TestSubstr,
TestJson,
TestStringify,
TestToNumber,
TestTruthy,
Utils
build-depends:
base >= 4.14.3.0,
jsonlogic,
tasty,
tasty-hunit >= 0.10.0.3,
tasty-hedgehog >= 1.2.0.0,
hedgehog >= 1.1.1,
containers
if flag(error)
ghc-options:
-Werror