Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update code for removal of data files.

  • Loading branch information...
commit b20f686456ede968ef9e6376f2a8e17a0f95e385 1 parent 2f70386
Rémy Oudompheng authored
Showing with 6 additions and 8 deletions.
  1. +6 −7 Distribution/ArchLinux/SystemProvides.lhs
  2. +0 −1  archlinux.cabal
View
13 Distribution/ArchLinux/SystemProvides.lhs
@@ -6,7 +6,7 @@ Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
> module Distribution.ArchLinux.SystemProvides
> ( SystemProvides(..)
-> , getDefaultSystemProvides
+> , emptySystemProvides
> , parseSystemProvides
> ) where
@@ -35,14 +35,13 @@ A big structure holding data about ArchLinux
> -- A hash-map where keys are library names and values are
> -- names of the corresponding ArchLinux package.
> }
+> deriving (Show,Eq)
-Get SystemProvides from package-installed files
+Empty SystemProvides
-> getDefaultSystemProvides :: IO SystemProvides
-> getDefaultSystemProvides = do
-> fc <- readFile =<< getDataFileName ("data" </> "ghc-provides.txt")
-> ft <- readFile =<< getDataFileName ("data" </> "library-providers.txt")
-> return $ parseSystemProvides fc ft
+> emptySystemProvides = SystemProvides [] M.empty
+
+Get SystemProvides from files.
> parseSystemProvides :: String -> String -> SystemProvides
> parseSystemProvides sPkg sTranslation =
View
1  archlinux.cabal
@@ -13,7 +13,6 @@ description: Support for working with Arch Linux packages.
build-type: Simple
stability: stable
cabal-version: >= 1.8
-data-files: data/*.txt
source-repository head
type: git
Please sign in to comment.
Something went wrong with that request. Please try again.