Commit f69b032b authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Reformat License declaration and add related TODOs

The real difficulty with changing the license stuff is the parser in current
and older cabal versions is very fragile, it parses using Read so only
recognises those exact enum values and if parsing fails, then parsing the
whole .cabal file fails. We really need to make this more permissive for all
the enumerations so that we can make changes in future.
parent 6c981bbf
......@@ -57,12 +57,36 @@ module Distribution.License (
-- below are general guidelines. Please read the licenses themselves
-- and consult a lawyer if you are unsure of your rights to release
-- the software.
--
data License =
--TODO: * deprecate BSD4
-- * add optional gpl versions
-- * add MIT license
-- * fix parsing to be more permissive
-- | GNU Public License. Source code must accompany alterations.
GPL --(Maybe Version)
-- | Lesser GPL, Less restrictive than GPL, useful for libraries.
| LGPL --(Maybe Version)
-- | 3-clause BSD license, newer, no advertising clause. Very free license.
| BSD3
-- | 4-clause BSD license, older, with advertising clause.
| BSD4
-- -- | The MIT license, similar to the BSD3. Very free license.
-- | MIT
-- | Holder makes no claim to ownership, least restrictive license.
| PublicDomain
-- | No rights are granted to others. Undistributable. Most restrictive.
| AllRightsReserved
-- | Some other license.
| OtherLicense
deriving (Read, Show, Eq)
data License = GPL -- ^GNU Public License. Source code must accompany alterations.
| LGPL -- ^Lesser GPL, Less restrictive than GPL, useful for libraries.
| BSD3 -- ^3-clause BSD license, newer, no advertising clause. Very free license.
| BSD4 -- ^4-clause BSD license, older, with advertising clause.
| PublicDomain -- ^Holder makes no claim to ownership, least restrictive license.
| AllRightsReserved -- ^No rights are granted to others. Undistributable. Most restrictive.
| {- ... | -} OtherLicense -- ^Some other license.
deriving (Read, Show, Eq)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment