| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
haskell-opensource is an API Wrapper that allows you to query the Open Source License API with Haskell.
import Network.Protocol.OpenSource.License (licenseById, olName)
import Control.Monad.Trans.Except (runExceptT)
main = do
gpl <- runExceptT $ licenseById "LGPL-3.0"
putStrLn $ case gpl of
Right license -> show $ olName license
Left error -> "Error during license request!" ++ show errorcabal install opensource
| Back | FazBrowse Home | New Git URL |