porte 0.0.2.1 → 0.0.3
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Porte.Ports: type Version = ByteString
+ Porte.Ports: version :: Port -> Version
- Porte.Ports: Port :: Name -> DistributionName -> Path -> Comment -> DescriptionPath -> Maintainer -> Categories -> BuildDepends -> Website -> ExtractDepends -> Port
+ Porte.Ports: Port :: Name -> DistributionName -> Version -> Path -> Comment -> DescriptionPath -> Maintainer -> Categories -> BuildDepends -> Website -> ExtractDepends -> Port
Files
- Porte/Ports.hs +4/−0
- Porte/Tool.hs +2/−2
- porte.cabal +1/−1
Porte/Ports.hs view
@@ -13,6 +13,7 @@ type Name = B.ByteString type DistributionName = B.ByteString +type Version = B.ByteString type Path = B.ByteString type Prefix = B.ByteString type Comment = B.ByteString@@ -30,6 +31,7 @@ data Port = Port { name :: Name, distributionName :: DistributionName,+ version :: Version, path :: Path, comment :: Comment, descriptionPath :: DescriptionPath,@@ -46,6 +48,7 @@ toField :: String -> Maybe PortField toField "name" = Just name toField "package" = Just distributionName+toField "version" = Just version toField "distributionName" = Just distributionName toField "path" = Just path toField "comment" = Just comment@@ -101,6 +104,7 @@ extractDepends : _) = Port (B.tail . B.dropWhile (/= '/') $ path') (name)+ (last $ B.split '-' name) (path') (comment) (pkgDescr)
Porte/Tool.hs view
@@ -7,10 +7,10 @@ import qualified Porte.Statistics as S import qualified System.IO as I -version = "0.0.2.1"+version = "0.0.3" -- Generic port print format-printFormat = [P.path, P.comment, P.website]+printFormat = [P.path, P.version, P.comment] -- Exception raising toField toField :: String -> P.PortField
porte.cabal view
@@ -1,5 +1,5 @@ Name: porte-Version: 0.0.2.1+Version: 0.0.3 Cabal-Version: >= 1.2 Synopsis: FreeBSD ports index search and analysis tool Description: Porte provides a simple, fast and efficient interface to searching