Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data CabalPackage = CabalPackage {}
- cabalList :: [String] -> ToolM [CabalPackage]
- data Version
- data License
- = GPL (Maybe Version)
- | AGPL (Maybe Version)
- | LGPL (Maybe Version)
- | BSD2
- | BSD3
- | BSD4
- | MIT
- | ISC
- | MPL Version
- | Apache (Maybe Version)
- | PublicDomain
- | AllRightsReserved
- | UnspecifiedLicense
- | OtherLicense
- | UnknownLicense String
Documentation
data CabalPackage Source #
Instances
Eq CabalPackage Source # | |
Defined in HsDev.Tools.Cabal (==) :: CabalPackage -> CabalPackage -> Bool # (/=) :: CabalPackage -> CabalPackage -> Bool # | |
Read CabalPackage Source # | |
Defined in HsDev.Tools.Cabal readsPrec :: Int -> ReadS CabalPackage # readList :: ReadS [CabalPackage] # | |
Show CabalPackage Source # | |
Defined in HsDev.Tools.Cabal showsPrec :: Int -> CabalPackage -> ShowS # show :: CabalPackage -> String # showList :: [CabalPackage] -> ShowS # | |
ToJSON CabalPackage Source # | |
Defined in HsDev.Tools.Cabal toJSON :: CabalPackage -> Value # toEncoding :: CabalPackage -> Encoding # toJSONList :: [CabalPackage] -> Value # toEncodingList :: [CabalPackage] -> Encoding # | |
FromJSON CabalPackage Source # | |
Defined in HsDev.Tools.Cabal parseJSON :: Value -> Parser CabalPackage # parseJSONList :: Value -> Parser [CabalPackage] # |
Reexports
A Version
represents the version of a software entity.
Instances of Eq
and Ord
are provided, which gives exact
equality and lexicographic ordering of the version number
components (i.e. 2.1 > 2.0, 1.2.3 > 1.2.2, etc.).
This type is opaque and distinct from the Version
type in
Data.Version since Cabal-2.0
. The difference extends to the
Binary
instance using a different (and more compact) encoding.
Since: Cabal-2.0.0.2
Instances
Indicates the license under which a package's source code is released.
Versions of the licenses not listed here will be rejected by Hackage and
cause cabal check
to issue a warning.
GPL (Maybe Version) | |
AGPL (Maybe Version) | |
LGPL (Maybe Version) | GNU Lesser General Public License, version 2.1 or version 3. |
BSD2 | |
BSD3 | |
BSD4 | 4-clause BSD license. This license has not been approved by the OSI and is incompatible with the GNU GPL. It is provided for historical reasons and should be avoided. |
MIT | |
ISC | |
MPL Version | |
Apache (Maybe Version) | |
PublicDomain | The author of a package disclaims any copyright to its source code and dedicates it to the public domain. This is not a software license. Please note that it is not possible to dedicate works to the public domain in every jurisdiction, nor is a work that is in the public domain in one jurisdiction necessarily in the public domain elsewhere. |
AllRightsReserved | Explicitly 'All Rights Reserved', eg for proprietary software. The package may not be legally modified or redistributed by anyone but the rightsholder. |
UnspecifiedLicense | No license specified which legally defaults to 'All Rights Reserved'. The package may not be legally modified or redistributed by anyone but the rightsholder. |
OtherLicense | Any other software license. |
UnknownLicense String | Indicates an erroneous license name. |