obsidiansystems/aeson-gadt-th

Test suite does not compile

Closed this issue · 0 comments

peti commented
configureFlags: --verbose --prefix=/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/6hcacyy860yrk24r9db53fs6plq051di-aeson-gadt-th-0.2.2-doc/share/doc/aeson-gadt-th-0.2.2 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-options=-j16 +RTS -A64M -RTS --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections -f-build-readme --extra-lib-dirs=/nix/store/dgdach00xn196vjsnmisak3maab7x6w5-ncurses-6.2/lib --extra-lib-dirs=/nix/store/rdd4c4iq0f87wgm5av6g5y5n35kqpfvs-libffi-3.3/lib --extra-lib-dirs=/nix/store/7w2d4n6sndpizs87bl1vajg9whcj7s89-gmp-6.2.0/lib
Using Parsec parser
Configuring aeson-gadt-th-0.2.2...
Flags chosen: build-readme=False
Dependency aeson -any: using aeson-1.4.7.1
Dependency base -any: using base-4.14.0.0
Dependency containers -any: using containers-0.6.2.1
Dependency dependent-sum -any: using dependent-sum-0.7.1.0
Dependency template-haskell -any: using template-haskell-2.16.0.0
Dependency th-abstraction -any: using th-abstraction-0.3.2.0
Dependency th-extras -any: using th-extras-0.0.0.4
Dependency transformers -any: using transformers-0.5.6.2
Dependency HUnit -any: using HUnit-1.6.0.0
Dependency aeson -any: using aeson-1.4.7.1
Dependency aeson-gadt-th -any: using aeson-gadt-th-0.2.2
Dependency aeson-qq -any: using aeson-qq-0.8.3
Dependency base -any: using base-4.14.0.0
Dependency dependent-sum -any: using dependent-sum-0.7.1.0
Dependency hspec -any: using hspec-2.7.1
Source component graph:
    component lib
    component test:aeson-gadt-th-test dependency lib
Configured component graph:
    component aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        include aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        include base-4.14.0.0
        include containers-0.6.2.1
        include dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        include template-haskell-2.16.0.0
        include th-abstraction-0.3.2.0-4yEKsz3hkum2d9EYr8unnF
        include th-extras-0.0.0.4-EUajLGRd7XOT9sgTXOjAb
        include transformers-0.5.6.2
    component aeson-gadt-th-0.2.2-I6ejbl2qQdwEYMyTwooXQ7-aeson-gadt-th-test
        include HUnit-1.6.0.0-Hf4MZL6UJVJ4zUg6h23D6W
        include aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        include aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        include aeson-qq-0.8.3-GcMTBxcvph4Bx8zd8yBoeh
        include base-4.14.0.0
        include dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        include hspec-2.7.1-B0aamfuqE2E7AuukmQlXji
Linked component graph:
    unit aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        include aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        include base-4.14.0.0
        include containers-0.6.2.1
        include dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        include template-haskell-2.16.0.0
        include th-abstraction-0.3.2.0-4yEKsz3hkum2d9EYr8unnF
        include th-extras-0.0.0.4-EUajLGRd7XOT9sgTXOjAb
        include transformers-0.5.6.2
        Data.Aeson.GADT.TH=aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB:Data.Aeson.GADT.TH
    unit aeson-gadt-th-0.2.2-I6ejbl2qQdwEYMyTwooXQ7-aeson-gadt-th-test
        include HUnit-1.6.0.0-Hf4MZL6UJVJ4zUg6h23D6W
        include aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        include aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        include aeson-qq-0.8.3-GcMTBxcvph4Bx8zd8yBoeh
        include base-4.14.0.0
        include dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        include hspec-2.7.1-B0aamfuqE2E7AuukmQlXji
Ready component graph:
    definite aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        depends aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        depends base-4.14.0.0
        depends containers-0.6.2.1
        depends dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        depends template-haskell-2.16.0.0
        depends th-abstraction-0.3.2.0-4yEKsz3hkum2d9EYr8unnF
        depends th-extras-0.0.0.4-EUajLGRd7XOT9sgTXOjAb
        depends transformers-0.5.6.2
    definite aeson-gadt-th-0.2.2-I6ejbl2qQdwEYMyTwooXQ7-aeson-gadt-th-test
        depends HUnit-1.6.0.0-Hf4MZL6UJVJ4zUg6h23D6W
        depends aeson-1.4.7.1-PoZwsvVZAhEzlieMP6aSv
        depends aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
        depends aeson-qq-0.8.3-GcMTBxcvph4Bx8zd8yBoeh
        depends base-4.14.0.0
        depends dependent-sum-0.7.1.0-HiPf7spPyqFHB7Yuhk9b8T
        depends hspec-2.7.1-B0aamfuqE2E7AuukmQlXji
Using Cabal-3.2.0.0 compiled by ghc-8.10
Using compiler: ghc-8.10.1
Using install prefix:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2
Executables installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/bin
Libraries installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/lib/ghc-8.10.1/x86_64-linux-ghc-8.10.1/aeson-gadt-th-0.2.2-8qeLOE4l0976M9Ml6vfawB
Dynamic Libraries installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/lib/ghc-8.10.1/x86_64-linux-ghc-8.10.1
Private executables installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/libexec/x86_64-linux-ghc-8.10.1/aeson-gadt-th-0.2.2
Data files installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/share/x86_64-linux-ghc-8.10.1/aeson-gadt-th-0.2.2
Documentation installed in:
/nix/store/6hcacyy860yrk24r9db53fs6plq051di-aeson-gadt-th-0.2.2-doc/share/doc/aeson-gadt-th-0.2.2
Configuration files installed in:
/nix/store/rnrc4n5igj6sn5867mj5nal0wz14akcg-aeson-gadt-th-0.2.2/etc
No alex found
Using ar found on system at:
/nix/store/h4v5qdxlmnh7xfpl7pwzrs8js7220bz2-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 9.3.0 given by user at:
/nix/store/za1rr3fxmgfbfl6nbigqi819m3m7nkgi-gcc-wrapper-9.3.0/bin/gcc
Using ghc version 8.10.1 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/ghc
Using ghc-pkg version 8.10.1 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.0 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/iihy68ay41v0xq8yrs3xjbkl4mjgpzl4-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/6j585c9pab3lglrxqq1g9c2pa8qjgvj0-binutils-wrapper-2.31.1/bin/ld.gold
No pkg-config found
Using runghc version 8.10.1 found on system at:
/nix/store/19bwrir9y3jna13w880mqdm1a78qksab-ghc-8.10.1/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/h4v5qdxlmnh7xfpl7pwzrs8js7220bz2-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/g0j3pan49fp1nspif0zbcmr3zjzdbl8z-gnutar-1.32/bin/tar
No uhc found
building                                                                                                                                                                                                           
Preprocessing library for aeson-gadt-th-0.2.2..                                                                                                                                                                    
Building library for aeson-gadt-th-0.2.2..                                                                                                                                                                         
[1 of 1] Compiling Data.Aeson.GADT.TH ( src/Data/Aeson/GADT/TH.hs, dist/build/Data/Aeson/GADT/TH.o, dist/build/Data/Aeson/GADT/TH.dyn_o )                                                                          
[1 of 1] Compiling Data.Aeson.GADT.TH ( src/Data/Aeson/GADT/TH.hs, dist/build/Data/Aeson/GADT/TH.p_o )                                                                                                             
Preprocessing test suite 'aeson-gadt-th-test' for aeson-gadt-th-0.2.2..                                                                                                                                            
Building test suite 'aeson-gadt-th-test' for aeson-gadt-th-0.2.2..                                                                                                                                                 
[1 of 2] Compiling Expectations     ( test/Expectations.hs, dist/build/aeson-gadt-th-test/aeson-gadt-th-test-tmp/Expectations.o, dist/build/aeson-gadt-th-test/aeson-gadt-th-test-tmp/Expectations.dyn_o )         
[2 of 2] Compiling Main             ( test/Test.hs, dist/build/aeson-gadt-th-test/aeson-gadt-th-test-tmp/Main.o, dist/build/aeson-gadt-th-test/aeson-gadt-th-test-tmp/Main.dyn_o )                                 
                                                                                                                                                                                                                   
test/Test.hs:61:1: error:                                                                                                                                                                                          
    • No instance for (FromJSON (Unit Char))                                                                                                                                                                       
        arising from a use of ‘parseJSON’                                                                                                                                                                          
    • In a stmt of a 'do' block: Unitx_abBZ <- parseJSON _v'_abC7                                                                                                                                                  
      In the expression:                                                                                                                                                                                           
        do Unitx_abBZ <- parseJSON _v'_abC7                                                                                                                                                                        
           return (Some (Bar x_abBZ))                                                                                                                                                                              
      In a case alternative:                                                                                                                                                                                       
          "Bar"
            -> do Unitx_abBZ <- parseJSON _v'_abC7                                                                                                                                                                 
                  return (Some (Bar x_abBZ))                                                                                                                                                                       
   |                                                                                                                                                                                                               
61 | deriveJSONGADT ''Foo
   | ^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                          
                                                                                                                                                                                                                   
test/Test.hs:61:1: error:                                                                                                                                                                                          
    • Could not deduce (ToJSON (Unit Value))                                                                                                                                                                       
        arising from a use of ‘toJSON’                                                                                                                                                                             
      from the context: a ~ Char                                                                                                                                                                                   
        bound by a pattern with constructor: Bar :: Char -> Foo Char,                                                                                                                                              
                 in a case alternative                                                                                                                                                                             
        at test/Test.hs:61:1-20                                                                                                                                                                                    
    • In the expression: toJSON ("Bar" :: String, Unit toJSON x_abBQ)                                                                                                                                              
      In a case alternative:                                                                                                                                                                                       
          Bar x_abBQ -> toJSON ("Bar" :: String, Unit toJSON x_abBQ)                                                                                                                                               
      In the expression:                                                                                                                                                                                           
        \case                                                                                                                                                                                                      
          Bar x_abBQ -> toJSON ("Bar" :: String, Unit toJSON x_abBQ)                                                                                                                                               
          Baz x_abBU -> toJSON ("Baz" :: String, Unit toJSON x_abBU)                                                                                                                                               
   |
61 | deriveJSONGADT ''Foo
   | ^^^^^^^^^^^^^^^^^^^^
                                                                                                                                                                                                                   
test/Test.hs:61:1: error:                                                                                                                                                                                          
    • Could not deduce (ToJSON (Unit Value))                                                                                                                                                                       
        arising from a use of ‘toJSON’                                                                                                                                                                             
      from the context: a ~ Float                                                                                                                                                                                  
        bound by a pattern with constructor: Baz :: Float -> Foo Float,                                                                                                                                            
                 in a case alternative                                                           
        at test/Test.hs:61:1-20                                                                                                                                                                                    
    • In the expression: toJSON ("Baz" :: String, Unit toJSON x_abBU)                                                                                                                                              
      In a case alternative:                                                                                                                                                                                       
          Baz x_abBU -> toJSON ("Baz" :: String, Unit toJSON x_abBU)                                                                                                                                               
      In the expression:                                                                                                                                                                                           
        \case                                                                                                                                                                                                      
          Bar x_abBQ -> toJSON ("Bar" :: String, Unit toJSON x_abBQ)                                                                                                                                               
          Baz x_abBU -> toJSON ("Baz" :: String, Unit toJSON x_abBU)                                                                                                                                               
   |
61 | deriveJSONGADT ''Foo
   | ^^^^^^^^^^^^^^^^^^^^
                                                                                                                                                                                                                   
test/Test.hs:63:1: error:                                                                                                                                                                                          
    • No instance for (FromJSON (Unit Char))                                                                                                                                                                       
        arising from a use of ‘parseJSON’                                                                                                                                                                          
    • In a stmt of a 'do' block: Unitx_abHt <- parseJSON _v'_abHB                                                                                                                                                  
      In the expression:                                                                                                                                                                                           
        do Unitx_abHt <- parseJSON _v'_abHB                                                                                                                                                                        
           return (Some (Spam'Eggs x_abHt))                                                                                                                                                                        
      In a case alternative:                                                                                                                                                                                       
          "Eggs"
            -> do Unitx_abHt <- parseJSON _v'_abHB                                                                                                                                                                 
                  return (Some (Spam'Eggs x_abHt))                                                                                                                                                                 
   |
63 | deriveJSONGADTWithOptions                                                                                                                                                                                     
   | ^^^^^^^^^^^^^^^^^^^^^^^^^...                                                                                                                                                                                  

test/Test.hs:63:1: error:                                                                                                                                                                                          
    • Could not deduce (ToJSON (Unit Value))                                                                                                                                                                       
        arising from a use of ‘toJSON’                                                                                                                                                                             
      from the context: a ~ Char                                                                                                                                                                                   
        bound by a pattern with constructor:                                                                                                                                                                       
                   Spam'Eggs :: Char -> Spam Char,                                                                                                                                                                 
                 in a case alternative                                                                                                                                                                             
        at test/Test.hs:(63,1)-(65,8)                                                                                                                                                                              
    • In the expression: toJSON ("Eggs" :: String, Unit toJSON x_abHk)                                                                                                                                             
      In a case alternative:                                                                                                                                                                                       
          Spam'Eggs x_abHk -> toJSON ("Eggs" :: String, Unit toJSON x_abHk)                                                                                                                                        
      In the expression:                                                                                                                                                                                           
        \case                                                                                                                                                                                                      
          Spam'Eggs x_abHk -> toJSON ("Eggs" :: String, Unit toJSON x_abHk)                                                                                                                                        
          Spam'Life x_abHo -> toJSON ("Life" :: String, Unit toJSON x_abHo)                                                                                                                                        
   |
63 | deriveJSONGADTWithOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^...
                                                                                                                                                                                                                   
test/Test.hs:63:1: error:                                                                                                                                                                                          
    • Could not deduce (ToJSON (Unit Value))                                                                                                                                                                       
        arising from a use of ‘toJSON’                                                                                                                                                                             
      from the context: a ~ Float                                                    
        bound by a pattern with constructor:                                                                                                                                                                       
                   Spam'Life :: Float -> Spam Float,                                                                                                                                                               
                 in a case alternative                                                                                                                                                                             
        at test/Test.hs:(63,1)-(65,8)                                                                                                                                                                              
    • In the expression: toJSON ("Life" :: String, Unit toJSON x_abHo)                                                                                                                                             
      In a case alternative:                                                                                                                                                                                       
          Spam'Life x_abHo -> toJSON ("Life" :: String, Unit toJSON x_abHo)                                                                                                                                        
      In the expression:                                                                                                                                                                                           
        \case
          Spam'Eggs x_abHk -> toJSON ("Eggs" :: String, Unit toJSON x_abHk)                                                                                                                                        
          Spam'Life x_abHo -> toJSON ("Life" :: String, Unit toJSON x_abHo)                                                                                                                                        
   |
63 | deriveJSONGADTWithOptions
   | ^^^^^^^^^^^^^^^^^^^^^^^^^...
                                                                                                                                                                                                                   
builder for '/nix/store/6nf59zs0553xbw9ph7a3fs8b42g62711-aeson-gadt-th-0.2.2.drv' failed with exit code 1