Skip to content

Commit

Permalink
Merge pull request haskell#398 from imalsogreg/master
Browse files Browse the repository at this point in the history
Add FlexibleContexts pragma needed for building on 7.10
  • Loading branch information
dcoutts committed Aug 10, 2015
2 parents 0a70f93 + b9b3d0d commit 1ad0b63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Distribution/Server/Packages/Unpack.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
-- Unpack a tarball containing a Cabal package
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}

module Distribution.Server.Packages.Unpack (
unpackPackage,
unpackPackageRaw,
Expand Down Expand Up @@ -351,4 +353,3 @@ quote s = "'" ++ s ++ "'"
-- | Whether a UTF8 BOM is at the beginning of the input
startsWithBOM :: ByteString -> Bool
startsWithBOM bs = LBS.take 3 bs == LBS.pack [0xEF, 0xBB, 0xBF]

0 comments on commit 1ad0b63

Please sign in to comment.