module Distribution.Hup.Types
(
IsCandidate(..)
, IsDocumentation(..)
, Package(..)
, Upload(..)
)
where
import qualified Data.ByteString.Lazy as L
data IsCandidate = NormalPkg | CandidatePkg
deriving (Show, Eq, Read)
data IsDocumentation = IsPackage | IsDocumentation
deriving (Show, Eq, Read)
data Package = Package { packageName :: String
,packageVersion :: String }
deriving (Show, Eq, Read)
data Upload =
Upload { package :: Package
,fileToUpload :: FilePath
,fileConts :: Maybe L.ByteString
,uploadType :: IsDocumentation
,isCandidate :: IsCandidate
} deriving (Show, Eq)