2014-08-24 09:45:56 +00:00
|
|
|
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
|
|
|
|
2014-08-22 10:21:25 +00:00
|
|
|
{ cabal, aeson, digestiveFunctors, HUnit, lens, lensAeson, mtl
|
|
|
|
, safe, scientific, tasty, tastyHunit, text, vector
|
2014-01-11 22:16:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "digestive-functors-aeson";
|
2014-08-22 10:21:25 +00:00
|
|
|
version = "1.1.11";
|
|
|
|
sha256 = "0jf62ssyc317x070xkjdnfbb2g8mb19a83hig08j95vyqwjgk4vg";
|
|
|
|
buildDepends = [
|
|
|
|
aeson digestiveFunctors lens lensAeson safe text vector
|
|
|
|
];
|
2014-01-11 22:16:07 +00:00
|
|
|
testDepends = [
|
2014-04-16 15:39:12 +00:00
|
|
|
aeson digestiveFunctors HUnit mtl scientific tasty tastyHunit text
|
2014-01-11 22:16:07 +00:00
|
|
|
];
|
|
|
|
meta = {
|
|
|
|
homepage = "http://github.com/ocharles/digestive-functors-aeson";
|
|
|
|
description = "Run digestive-functors forms against JSON";
|
|
|
|
license = self.stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
2014-08-24 09:45:56 +00:00
|
|
|
maintainers = with self.stdenv.lib.maintainers; [ ocharles ];
|
haskell-digestive-functors-aeson: broken by update of 'text'
Jailbreaking the package makes the build succeeds, but then the test suite fails:
Running 1 test suites...
Test suite tests: RUNNING...
Tests
Pokemon tests
Submit pokeForm with valid data: OK
Submit pokeForm with invalid data/check error view
Failed validation: OK
jsonErrors shows correct errors: OK
Pokedex tests
Valid pokedex with one pokemon: OK
Valid pokedex with many pokemon: OK
Submit pokedex with a single invalid item
Failed validation: OK
jsonErrors shows correct errors: FAIL
Exception: HUnitFailure "expected: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"name\",String \"Name cannot be empty\")])]))])\n but got: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"name\",String \"Name cannot be empty\"),(\"number\",String \"Could not parse number\")])]))])"
Submit pokedex with a later invalid item
Failed validation: OK
jsonErrors shows correct errors: FAIL
Exception: HUnitFailure "expected: Object (fromList [(\"pokemon\",Array (fromList [Null,Object (fromList [(\"name\",String \"Name cannot be empty\")])]))])\n but got: Object (fromList [(\"pokemon\",Array (fromList [Object (fromList [(\"number\",String \"Could not parse number\")]),Object (fromList [(\"name\",String \"Name cannot be empty\"),(\"number\",String \"Could not parse number\")])]))])"
Top level lists: OK
Booleans work: OK
2014-11-01 15:41:19 +00:00
|
|
|
broken = true;
|
2014-01-11 22:16:07 +00:00
|
|
|
};
|
|
|
|
})
|