Skip to content

Commit

Permalink
Revert check for experimental features
Browse files Browse the repository at this point in the history
This reverts commit 770e8f9.

(cherry picked from commit 422dac0)
  • Loading branch information
hvr committed Jun 17, 2019
1 parent b4fdd67 commit 6ca0f52
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Distribution/Server/Packages/Unpack.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ import Distribution.Package
( PackageIdentifier, packageVersion, packageName, PackageName )
import Distribution.PackageDescription
( GenericPackageDescription(..), PackageDescription(..)
, allBuildInfo, allLibraries
, mixins, signatures, specVersion, licenseRaw
)
, licenseRaw, specVersion )
import Distribution.PackageDescription.Configuration
( flattenPackageDescription )
import Distribution.PackageDescription.Check
Expand Down Expand Up @@ -341,18 +339,6 @@ extraChecks genPkgDesc pkgId tarIndex = do
++ "field in their .cabal file. This is only used for "
++ "post-release revisions."

-- Check for experimental Backpack features
let usesBackpackInc = any (not . null . mixins) (allBuildInfo pkgDesc)
usesBackpackSig = any (not . null . signatures) (allLibraries pkgDesc)

when (usesBackpackInc || usesBackpackSig) $
throwError $ "Packages using experimental Backpack features "
++ "(i.e. mixins or signatures) are not yet allowed on Hackage. "
++ "Please use http://next.hackage.haskell.org:8080/ if you "
++ "want to help testing Backpack in the meantime."

return ()

-- Monad for uploading packages:
-- WriterT for warning messages
-- Either for fatal errors
Expand Down

0 comments on commit 6ca0f52

Please sign in to comment.