Skip to content

Build fails with GHC 8.8 #22

@ekmett

Description

@ekmett
[1 of 1] Compiling Data.Vector.Unboxed.Deriving 

Data/Vector/Unboxed/Deriving.hs:129:42: error:
    • Couldn't match expected type ‘Maybe [TyVarBndr]’
                  with actual type ‘Name’
    • In the second argument of ‘NewtypeInstD’, namely ‘''MVector’
      In the expression:
        NewtypeInstD
          []
          ''MVector
          [s, typ]
          Nothing
          (NormalC mvName [(lazy, ConT ''MVector `AppT` s `AppT` rep)])
          []
      In an equation for ‘newtypeMVector’:
          newtypeMVector
            = NewtypeInstD
                []
                ''MVector
                [s, typ]
                Nothing
                (NormalC mvName [(lazy, ConT ''MVector `AppT` s `AppT` rep)])
                []
    |
129 |     let newtypeMVector = NewtypeInstD [] ''MVector [s, typ] MAYBE_KIND
    |                                          ^^^^^^^^^

Data/Vector/Unboxed/Deriving.hs:129:52: error:
    • Couldn't match expected type ‘Type’ with actual type ‘[Type]’
    • In the third argument of ‘NewtypeInstD’, namely ‘[s, typ]’
      In the expression:
        NewtypeInstD
          []
          ''MVector
          [s, typ]
          Nothing
          (NormalC mvName [(lazy, ConT ''MVector `AppT` s `AppT` rep)])
          []
      In an equation for ‘newtypeMVector’:
          newtypeMVector
            = NewtypeInstD
                []
                ''MVector
                [s, typ]
                Nothing
                (NormalC mvName [(lazy, ConT ''MVector `AppT` s `AppT` rep)])
                []
    |
129 |     let newtypeMVector = NewtypeInstD [] ''MVector [s, typ] MAYBE_KIND
    |                                                    ^^^^^^^^

Data/Vector/Unboxed/Deriving.hs:150:41: error:
    • Couldn't match expected type ‘Maybe [TyVarBndr]’
                  with actual type ‘Name’
    • In the second argument of ‘NewtypeInstD’, namely ‘''Vector’
      In the expression:
        NewtypeInstD
          []
          ''Vector
          [typ]
          Nothing
          (NormalC vName [(lazy, ConT ''Vector `AppT` rep)])
          []
      In an equation for ‘newtypeVector’:
          newtypeVector
            = NewtypeInstD
                []
                ''Vector
                [typ]
                Nothing
                (NormalC vName [(lazy, ConT ''Vector `AppT` rep)])
                []
    |
150 |     let newtypeVector = NewtypeInstD [] ''Vector [typ] MAYBE_KIND
    |                                         ^^^^^^^^

Data/Vector/Unboxed/Deriving.hs:150:50: error:
    • Couldn't match expected type ‘Type’ with actual type ‘[Type]’
    • In the third argument of ‘NewtypeInstD’, namely ‘[typ]’
      In the expression:
        NewtypeInstD
          []
          ''Vector
          [typ]
          Nothing
          (NormalC vName [(lazy, ConT ''Vector `AppT` rep)])
          []
      In an equation for ‘newtypeVector’:
          newtypeVector
            = NewtypeInstD
                []
                ''Vector
                [typ]
                Nothing
                (NormalC vName [(lazy, ConT ''Vector `AppT` rep)])
                []
    |
150 |     let newtypeVector = NewtypeInstD [] ''Vector [typ] MAYBE_KIND
    |                                                  ^^^^^
cabal: Failed to build vector-th-unbox-0.2.1.6 (which is required by
tabulation-hash-0). See the build log above for details.

Looks like template-haskell changed under you again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions