tweag / asterius

DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc
1.98k stars 56 forks source link

Tracking issue for known to break packages with custom `Setup.hs` #343

Open TerrorJack opened 4 years ago

TerrorJack commented 4 years ago

Happens when compiling singletons-2.5.1:

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple0Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Tesrc/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple0Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple7Sym7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple6Sym6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple5Sym5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple4Sym4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple3Sym3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SList
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SNil
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SCons
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^mplate Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym1
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.Tuple2Sym2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SList
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple0
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple7
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple6
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple5
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple4
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple3
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.STuple2
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SNil
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Singletons/Prelude/Instances.hs:22:3: error:
    Cannot redefine a Name retrieved by a Template Haskell quote: <no package>:Data.Singletons.Prelude.Instances.SCons
   |
22 | $(genSingletons basicTypes)
   |   ^^^^^^^^^^^^^^^^^^^^^^^^

Possibly related to #342; this happens with a workaround patch which calls host ghc to compile the Setup.hs script of singletons, since all setup-deps are already in host ghc's global pkgdb.

TerrorJack commented 4 years ago
Starting     distributive-0.6.1 (all, legacy fallback)
cabal: Failed to build distributive-0.6.1 (which is required by
servant-0.16.2). The failure occurred during the configure step. The exception
was:
dieVerbatim: user error (cabal:
'/home/terrorjack/haskell/asterius/.stack-work/install/x86_64-linux-custom-asterius-tinfo6/9883e067de6700be2816f403c113b97139fe0c6f4f074f9d8362f6b96d5a612f/8.6.5/bin/ahc'
exited with an error:

/tmp/cabal-install.-20594/dist-newstyle/tmp/src-20594/distributive-0.6.1/dist/setup/setup.hs:24:1:
error:
Could not find module ‘Warning’
Use -v to see a list of the files searched for.
|
24 | import Warning ()
| ^^^^^^^^^^^^^^^^^
callProcess:
/home/terrorjack/.stack/programs/x86_64-linux/ghc-custom-asterius-tinfo6-8.6.5/bin/ghc
"--make" "-o"
"/tmp/cabal-install.-20594/dist-newstyle/tmp/src-20594/distributive-0.6.1/dist/setup/setup"
"-threaded"
"/tmp/cabal-install.-20594/dist-newstyle/tmp/src-20594/distributive-0.6.1/dist/setup/setup.hs"
(exit 1): failed
)