Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

th-utilities-0.1.1.0: test/TH/DeriveSpec/TH.hs: Couldn't match type #2

Open
juhp opened this issue Jul 15, 2016 · 1 comment
Open

Comments

@juhp
Copy link

juhp commented Jul 15, 2016

Tests failed to build in Stackage Nightly:

Preprocessing test suite 'test' for th-utilities-0.1.1.0...
[1 of 4] Compiling TH.DeriveSpec.TH ( test/TH/DeriveSpec/TH.hs, dist/build/test/test-tmp/TH/DeriveSpec/TH.o )

test/TH/DeriveSpec/TH.hs:16:9: error:
    • Couldn't match type ‘[Dec] -> Dec’ with ‘Dec’
      Expected type: Q [Dec]
        Actual type: Q [[Dec] -> Dec]
    • In a stmt of a 'do' block:
        return
          [InstanceD
             preds
             (AppT (ConT ''Show) ty)
             [ValD (VarP 'show) (NormalB expr) []]]
      In the expression:
        do { expr <- [| \ _ -> "ShowBlind" |];
             return [InstanceD preds (AppT (ConT ''Show) ty) [...]] }
      In an equation for ‘runInstantiator’:
          runInstantiator
            _
            preds
            (AppT (ConT ((== ''InstShowBlind) -> True)) ty)
            []
            = do { expr <- [| \ _ -> ... |];
                   return [InstanceD preds (AppT (ConT ...) ty) ...] }

test/TH/DeriveSpec/TH.hs:16:27: error:
    • Couldn't match type ‘[Pred]’ with ‘Maybe Overlap’
      Expected type: Maybe Overlap
        Actual type: Cxt
    • In the first argument of ‘InstanceD’, namely ‘preds’
      In the expression:
        InstanceD
          preds (AppT (ConT ''Show) ty) [ValD (VarP 'show) (NormalB expr) []]
      In the first argument of ‘return’, namely
        ‘[InstanceD
            preds
            (AppT (ConT ''Show) ty)
            [ValD (VarP 'show) (NormalB expr) []]]’

test/TH/DeriveSpec/TH.hs:16:34: error:
    • Couldn't match type ‘Type’ with ‘[Pred]’
      Expected type: Cxt
        Actual type: Type
    • In the second argument of ‘InstanceD’, namely
        ‘(AppT (ConT ''Show) ty)’
      In the expression:
        InstanceD
          preds (AppT (ConT ''Show) ty) [ValD (VarP 'show) (NormalB expr) []]
      In the first argument of ‘return’, namely
        ‘[InstanceD
            preds
            (AppT (ConT ''Show) ty)
            [ValD (VarP 'show) (NormalB expr) []]]’

test/TH/DeriveSpec/TH.hs:16:57: error:
    • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’
    • In the third argument of ‘InstanceD’, namely
        ‘[ValD (VarP 'show) (NormalB expr) []]’
      In the expression:
        InstanceD
          preds (AppT (ConT ''Show) ty) [ValD (VarP 'show) (NormalB expr) []]
      In the first argument of ‘return’, namely
        ‘[InstanceD
            preds
            (AppT (ConT ''Show) ty)
            [ValD (VarP 'show) (NormalB expr) []]]’
juhp added a commit to commercialhaskell/stackage that referenced this issue Jul 15, 2016
@mgsloan
Copy link
Collaborator

mgsloan commented Jul 20, 2016

@juhp Thanks! Fixed in 0.1.1.1

juhp added a commit to commercialhaskell/stackage that referenced this issue Jul 20, 2016
should be fixed in 0.1.1.1

This reverts commit a04766a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants