Simplify Package data type (#663)
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Wed, 29 Aug 2018 01:33:21 +0000 (02:33 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Aug 2018 01:33:21 +0000 (02:33 +0100)
commit798a716b16370e359f5892f327f0bd625c08a4a0
treec6c839090a232260515db493780c93d40dfd226c
parenta820566c16e1945b02632e68bd54cc351f562ebc
Simplify Package data type (#663)

I noticed that all packages we build have Cabal files now, which means we no longer need to distinguish between C and Haskell packages. This leads to a lot of simplifications and removal of unsafe functions.
23 files changed:
hadrian.cabal
src/Context.hs
src/Context/Type.hs
src/Expression.hs
src/Hadrian/Haskell/Cabal.hs
src/Hadrian/Haskell/Cabal/CabalData.hs
src/Hadrian/Haskell/Cabal/PackageData.hs
src/Hadrian/Haskell/Cabal/Parse.hs
src/Hadrian/Oracles/TextFile.hs
src/Hadrian/Oracles/TextFile/Rules.hs
src/Hadrian/Oracles/TextFile/Type.hs
src/Hadrian/Package.hs
src/Hadrian/Package/Type.hs [deleted file]
src/Hadrian/Utilities.hs
src/Packages.hs
src/Rules/BinaryDist.hs
src/Rules/Documentation.hs
src/Rules/Library.hs
src/Rules/Selftest.hs
src/Settings/Builders/Cabal.hs
src/Settings/Builders/Ghc.hs
src/Settings/Builders/Haddock.hs
src/Utilities.hs