packages feed

aeson-typescript 0.1.0.5 → 0.1.0.6

raw patch · 11 files changed

+29/−61 lines, 11 filesdep −tastydep −tasty-ant-xmldep −tasty-hspecPVP ok

version bump matches the API change (PVP)

Dependencies removed: tasty, tasty-ant-xml, tasty-hspec

API changes (from Hackage documentation)

Files

aeson-typescript.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 0d271eb799b147b8b0ea59a4b88184936e817b9c4ef666e84cb9f09ffd30c02f+-- hash: 955d088f08ff0d1d6b9e1a389ad440845d1cf3ba994ea4da1b02c86925ccae30  name:           aeson-typescript-version:        0.1.0.5+version:        0.1.0.6 synopsis:       Generate TypeScript definition files from your ADTs description:    Please see the README on Github at <https://github.com/codedownio/aeson-typescript#readme> category:       Text, Web, JSON@@ -73,9 +73,6 @@     , interpolate     , mtl     , process-    , tasty-    , tasty-ant-xml-    , tasty-hspec     , template-haskell     , temporary     , text
test/HigherKind.hs view
@@ -12,9 +12,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  @@ -36,7 +33,7 @@ $(deriveJSON A.defaultOptions ''HigherKindWithUnary)  -tests = unsafePerformIO $ testSpec "Higher kinds" $ do+tests = describe "Higher kinds" $ do   describe "Kind * -> *" $ do     it [i|makes the declaration and types correctly|] $ do       (getTypeScriptDeclarations (Proxy :: Proxy HigherKind)) `shouldBe` ([@@ -90,7 +87,7 @@       testTypeCheckDeclarations declarations typesAndValues  -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests   main' = putStrLn $ formatTSDeclarations (
test/Misc.hs view
@@ -15,9 +15,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners  import Debug.Trace 
test/ObjectWithSingleFieldNoTagSingleConstructors.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  @@ -62,9 +59,9 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "ObjectWithSingleField with tagSingleConstructors=False" $ do+tests = describe "ObjectWithSingleField with tagSingleConstructors=False" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues  -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/ObjectWithSingleFieldTagSingleConstructors.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  @@ -63,8 +60,8 @@                  ]  -tests = unsafePerformIO $ testSpec "ObjectWithSingleField with tagSingleConstructors=True" $ do+tests = describe "ObjectWithSingleField with tagSingleConstructors=True" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/Spec.hs view
@@ -1,7 +1,7 @@  module Main where -import Test.Tasty+import Test.Hspec  import HigherKind as HigherKind import ObjectWithSingleFieldNoTagSingleConstructors as ObjectWithSingleFieldNoTagSingleConstructors@@ -12,14 +12,12 @@ import TwoElemArrayTagSingleConstructors as TwoElemArrayTagSingleConstructors import Untagged as Untagged -allTests :: TestTree-allTests = testGroup "All unit tests" [ObjectWithSingleFieldTagSingleConstructors.tests-                                      , ObjectWithSingleFieldNoTagSingleConstructors.tests-                                      , TaggedObjectTagSingleConstructors.tests-                                      , TaggedObjectNoTagSingleConstructors.tests-                                      , TwoElemArrayTagSingleConstructors.tests-                                      , TwoElemArrayNoTagSingleConstructors.tests-                                      , Untagged.tests-                                      , HigherKind.tests]--main = defaultMainWithIngredients defaultIngredients $ allTests+main = hspec $ do+  ObjectWithSingleFieldTagSingleConstructors.tests+  ObjectWithSingleFieldNoTagSingleConstructors.tests+  TaggedObjectTagSingleConstructors.tests+  TaggedObjectNoTagSingleConstructors.tests+  TwoElemArrayTagSingleConstructors.tests+  TwoElemArrayNoTagSingleConstructors.tests+  Untagged.tests+  HigherKind.tests
test/TaggedObjectNoTagSingleConstructors.hs view
@@ -13,9 +13,6 @@ import System.FilePath import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  @@ -63,8 +60,8 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "TaggedObject with tagSingleConstructors=False" $ do+tests = describe "TaggedObject with tagSingleConstructors=False" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/TaggedObjectTagSingleConstructors.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  data Unit = Unit@@ -60,8 +57,8 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "TaggedObject with tagSingleConstructors=True" $ do+tests = describe "TaggedObject with tagSingleConstructors=True" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/TwoElemArrayNoTagSingleConstructors.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  data Unit = Unit@@ -61,8 +58,8 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "TwoElemArray with tagSingleConstructors=False" $ do+tests = describe "TwoElemArray with tagSingleConstructors=False" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/TwoElemArrayTagSingleConstructors.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  data Unit = Unit@@ -61,8 +58,8 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "TwoElemArray with tagSingleConstructors=True" $ do+tests = describe "TwoElemArray with tagSingleConstructors=True" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests
test/Untagged.hs view
@@ -11,9 +11,6 @@ import Prelude hiding (Double) import System.IO.Unsafe (unsafePerformIO) import Test.Hspec-import Test.Tasty-import Test.Tasty.Hspec (testSpec)-import Test.Tasty.Runners import Util  -- Between Aeson 0.11.3.0 and 1.0.0.0, UntaggedValue was added@@ -68,13 +65,13 @@                  , (getTypeScriptType (Proxy :: Proxy TwoConstructor) , A.encode $ Con2 "asdf" 42)                  ] -tests = unsafePerformIO $ testSpec "UntaggedValue" $ do+tests = describe "UntaggedValue" $ do   it "type checks everything with tsc" $ do     testTypeCheckDeclarations declarations typesAndValues #else-tests = unsafePerformIO $ testSpec "UntaggedValue" $ do+tests = describe "UntaggedValue" $ do   it "tests are disabled for this Aeson version" $ do     2 `shouldBe` 2 #endif -main = defaultMainWithIngredients defaultIngredients tests+main = hspec tests