forked from OSS/graphql
87c92e9d6e
The current parser will fail parsing floats because it parses an int, and then stumbles on the dot. To fix I interpret the value with the scientific library which already is a dependency through attoparsec, so we're not introducing any extra downloads or compiling. I think this is still subtly wrong because "10.0" will be parsed as ValueInt, but because input argument ints are allowed to be coerced into doubles (according to the spec) this is probably acceptable.
68 lines
2.6 KiB
Plaintext
68 lines
2.6 KiB
Plaintext
name: graphql
|
|
version: 0.3
|
|
synopsis: Haskell GraphQL implementation
|
|
description:
|
|
This package provides a rudimentary parser for the
|
|
<https://facebook.github.io/graphql/ GraphQL> language.
|
|
homepage: https://github.com/jdnavarro/graphql-haskell
|
|
bug-reports: https://github.com/jdnavarro/graphql-haskell/issues
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Danny Navarro, Matthías Páll Gissurarson, Sólrún Halla Einarsdóttir
|
|
maintainer: j@dannynavarro.net
|
|
copyright: Copyright (C) 2015-2016 J. Daniel Navarro
|
|
category: Web
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
tested-with: GHC == 7.10.3, GHC==8.0.1
|
|
extra-source-files: README.md CHANGELOG.md stack.yaml
|
|
docs/tutorial/tutorial.lhs
|
|
data-files: tests/data/*.graphql
|
|
tests/data/*.min.graphql
|
|
|
|
library
|
|
default-language: Haskell2010
|
|
ghc-options: -Wall
|
|
exposed-modules: Data.GraphQL
|
|
Data.GraphQL.AST
|
|
Data.GraphQL.Encoder
|
|
Data.GraphQL.Execute
|
|
Data.GraphQL.Schema
|
|
Data.GraphQL.Parser
|
|
Data.GraphQL.Error
|
|
build-depends: aeson >= 0.7.0.3,
|
|
attoparsec >= 0.10.4.0,
|
|
base >= 4.7 && < 5,
|
|
text >= 0.11.3.1,
|
|
unordered-containers >= 0.2.5.0,
|
|
scientific >=0.3.1 && <0.4
|
|
if impl(ghc >= 8.0)
|
|
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
|
|
else
|
|
-- provide/emulate `Control.Monad.Fail` and `Data.Semigroups` API for pre-GHC8
|
|
build-depends: fail == 4.9.*, semigroups == 0.18.*
|
|
|
|
test-suite tasty
|
|
default-language: Haskell2010
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: tests
|
|
main-is: tasty.hs
|
|
ghc-options: -Wall
|
|
other-modules: Paths_graphql
|
|
Test.StarWars.Data
|
|
Test.StarWars.Schema
|
|
Test.StarWars.QueryTests
|
|
build-depends: aeson >= 0.7.0.3,
|
|
attoparsec >= 0.10.4.0,
|
|
base >= 4.6 && <5,
|
|
graphql,
|
|
raw-strings-qq >= 1.1,
|
|
tasty >= 0.10,
|
|
tasty-hunit >= 0.9,
|
|
text >= 0.11.3.1,
|
|
unordered-containers >= 0.2.5.0
|
|
|
|
source-repository head
|
|
type: git
|
|
location: git://github.com/jdnavarro/graphql-haskell.git
|