aboutsummaryrefslogtreecommitdiff
path: root/CLPM/Package.icl
diff options
context:
space:
mode:
authorCamil Staps2017-02-07 10:10:26 +0100
committerCamil Staps2017-02-07 10:10:26 +0100
commit78dcf0bcbf0abeb922f32e57a1763f2a2ea43fff (patch)
treeb6887e981e4759d3f97381de7acf724a873be954 /CLPM/Package.icl
parentAdd very basic installation task (diff)
Make main module optional
Diffstat (limited to 'CLPM/Package.icl')
-rw-r--r--CLPM/Package.icl4
1 files changed, 2 insertions, 2 deletions
diff --git a/CLPM/Package.icl b/CLPM/Package.icl
index fedb224..82f4dad 100644
--- a/CLPM/Package.icl
+++ b/CLPM/Package.icl
@@ -135,7 +135,7 @@ toPackage spkg = sequence (map parse depends`) >>= \ds -> Ok
, desc = fromJust $ spkg.StoredPackage.desc <|> Just DEFAULT_DESC
, author = fromJust $ spkg.StoredPackage.author <|> Just DEFAULT_AUTHOR
, url = fromJust $ spkg.StoredPackage.url <|> Just DEFAULT_URL
- , main = fromJust $ spkg.StoredPackage.main <|> Just DEFAULT_MAIN
+ , main = spkg.StoredPackage.main
, depends = ds
, paths = fromJust $ spkg.StoredPackage.paths <|> Just DEFAULT_PATHS
, options = toOptions spkg.StoredPackage.options
@@ -175,7 +175,7 @@ toStoredPackage pkg =
, desc = Just pkg.Package.desc
, author = Just pkg.Package.author
, url = Just pkg.Package.url
- , main = Just pkg.Package.main
+ , main = pkg.Package.main
, depends = listToMaybeList $ map toStoredDep pkg.Package.depends
, paths = listToMaybeList pkg.Package.paths
, options = Just $ toStoredOpts pkg.Package.options