infer-license-0.2.0: Infer software license from a given license file

Safe Haskell | None
Language | Haskell2010

Data.License.Infer

# Documentation

data License Source #

Constructors

MIT |
ISC |
BSD2 |
BSD3 |
BSD4 |
GPLv2 |
GPLv3 |
LGPLv2_1 |
LGPLv3 |
AGPLv3 |
MPL_2_0 |
Apache_2_0 |

#### Instances

Instances details

Bounded License Source # |
Instance details Defined in Data.License.Type Methods minBound :: License maxBound :: License
Enum License Source # |
Instance details Defined in Data.License.Type Methods succ :: License -> License pred :: License -> License toEnum :: Int -> License fromEnum :: License -> Int enumFrom :: License -> [License] enumFromThen :: License -> License -> [License] enumFromTo :: License -> License -> [License] enumFromThenTo :: License -> License -> License -> [License]
Eq License Source # |
Instance details Defined in Data.License.Type Methods (==) :: License -> License -> Bool (/=) :: License -> License -> Bool
Show License Source # |
Instance details Defined in Data.License.Type Methods showsPrec :: Int -> License -> ShowS show :: License -> String showList :: [License] -> ShowS

inferLicense :: String -> Maybe License Source #