Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
f3d2cc60
Commit
f3d2cc60
authored
20 years ago
by
Isaac Potoczny-Jones
Browse files
Options
Downloads
Patches
Plain Diff
added docs for licenses
parent
20c33412
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Distribution/License.hs
+22
-3
22 additions, 3 deletions
Distribution/License.hs
Setup.description
+1
-1
1 addition, 1 deletion
Setup.description
with
23 additions
and
4 deletions
Distribution/License.hs
+
22
−
3
View file @
f3d2cc60
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.License
-- Copyright : Isaac Jones 2003-200
4
-- Copyright : Isaac Jones 2003-200
5
--
-- Maintainer : Isaac Jones <ijones@syntaxpolice.org>
-- Stability : alpha
-- Portability : portable
--
-- The License datatype.
-- The License datatype. For more information about these and other
-- open-source licenses, you may visit <http://www.opensource.org/>.
--
-- I am not a lawyer, but as a general guideline, most Haskell
-- software seems to be released under a BSD3 license, which is very
-- open and free. If you don't want to restrict the use of your
-- software or its source code, use BSD3 or PublicDomain.
{- All rights reserved.
...
...
@@ -43,7 +49,20 @@ module Distribution.License (
License
(
..
)
)
where
-- |This datatype indicates the license under which your package is
-- released. It is also wise to add your license to each source file.
-- The "AllRightsReserved" constructor is not actually a license, but
-- states that you are not giving anyone else a license to use or
-- distribute your work. The comments 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
=
GPL
|
LGPL
|
BSD3
|
BSD4
|
PublicDomain
|
AllRightsReserved
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
FilePath
-- ^Use another license by listing the relative path to your license file.
deriving
(
Read
,
Show
,
Eq
)
This diff is collapsed.
Click to expand it.
Setup.description
+
1
−
1
View file @
f3d2cc60
Name: Cabal
Version: 0.2
License:
AllRightsReserved
License:
BSD3
build-depends: haskell-src, posix
Extensions: CPP
Exposed-Modules:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment