diff options
author | Eduardo Julian | 2019-03-15 00:23:49 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-03-15 00:23:49 -0400 |
commit | f9d4d316ef9666f6b122b0eec8180351216e95f8 (patch) | |
tree | 2a66da0c7552dcb3642ba37afd53f1bef44eef41 /stdlib/source/program/licentia | |
parent | 9449d89f611ba3192373fdeb6848d02707ff1292 (diff) |
Changed the convention for the structure opening separator from "/" to ";", to avoid confusion since "/" is used for relative module paths.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/program/licentia.lux | 4 | ||||
-rw-r--r-- | stdlib/source/program/licentia/document.lux | 4 | ||||
-rw-r--r-- | stdlib/source/program/licentia/license/black-list.lux | 8 | ||||
-rw-r--r-- | stdlib/source/program/licentia/license/commercial.lux | 2 | ||||
-rw-r--r-- | stdlib/source/program/licentia/license/distribution.lux | 4 | ||||
-rw-r--r-- | stdlib/source/program/licentia/license/extension.lux | 2 | ||||
-rw-r--r-- | stdlib/source/program/licentia/license/notice.lux | 4 | ||||
-rw-r--r-- | stdlib/source/program/licentia/output.lux | 14 |
8 files changed, 21 insertions, 21 deletions
diff --git a/stdlib/source/program/licentia.lux b/stdlib/source/program/licentia.lux index 0b7bca16f..87ec7a9eb 100644 --- a/stdlib/source/program/licentia.lux +++ b/stdlib/source/program/licentia.lux @@ -28,7 +28,7 @@ [format ["." json]]] ["." cli (#+ program:)] - ["." io (#+ IO) ("#/." monad)] + ["." io (#+ IO) ("#;." monad)] [world ["." file (#+ Path File)]] [host (#+ import:)]] @@ -58,7 +58,7 @@ (do (error.with io.monad) [file (!.use (:: file.system file) input) blob (!.use (:: file content) []) - document (io/wrap (do error.monad + document (io;wrap (do error.monad [raw-json (encoding.from-utf8 blob) json (|> raw-json (:coerce java/lang/String) diff --git a/stdlib/source/program/licentia/document.lux b/stdlib/source/program/licentia/document.lux index 9afbb8d7b..c04cd9d72 100644 --- a/stdlib/source/program/licentia/document.lux +++ b/stdlib/source/program/licentia/document.lux @@ -4,7 +4,7 @@ ["." text format] [collection - ["." list ("#/." functor)]]]]) + ["." list ("#;." functor)]]]]) (def: #export (quote text) (-> Text Text) @@ -24,7 +24,7 @@ (def: #export paragraph (-> (List Text) Text) - (|>> (list/map ..sentence) + (|>> (list;map ..sentence) (text.join-with text.new-line))) (do-template [<name> <word>] diff --git a/stdlib/source/program/licentia/license/black-list.lux b/stdlib/source/program/licentia/license/black-list.lux index 1b1ec2dff..ac5ab8a2c 100644 --- a/stdlib/source/program/licentia/license/black-list.lux +++ b/stdlib/source/program/licentia/license/black-list.lux @@ -1,11 +1,11 @@ (.module: [lux #* [data - ["." maybe ("#/." functor)] + ["." maybe ("#;." functor)] ["." text format] [collection - ["." list ("#/." functor)]]]] + ["." list ("#;." functor)]]]] ["." // (#+ Entity Black-List) ["_" term] [// @@ -21,11 +21,11 @@ effect "shall not be granted to the following entities, or any subsidiary thereof" justification (|> black-list (get@ #//.justification) - (maybe/map (|>> (format ", due to "))) + (maybe;map (|>> (format ", due to "))) (maybe.default "")) entities (|> black-list (get@ #//.entities) - (list/map ..entity) + (list;map ..entity) (text.join-with text.new-line))] (format scope " " effect justification ":" text.new-line entities))) diff --git a/stdlib/source/program/licentia/license/commercial.lux b/stdlib/source/program/licentia/license/commercial.lux index 37b2e2d74..787d92034 100644 --- a/stdlib/source/program/licentia/license/commercial.lux +++ b/stdlib/source/program/licentia/license/commercial.lux @@ -4,7 +4,7 @@ ["." text format] [collection - ["." list ("#/." monoid)]]]] + ["." list ("#;." monoid)]]]] ["." // (#+ Commercial) ["_" term] [// diff --git a/stdlib/source/program/licentia/license/distribution.lux b/stdlib/source/program/licentia/license/distribution.lux index a42a83ba9..077735b2c 100644 --- a/stdlib/source/program/licentia/license/distribution.lux +++ b/stdlib/source/program/licentia/license/distribution.lux @@ -4,7 +4,7 @@ ["." text format] [collection - ["." list ("#/." monoid)]]]] + ["." list ("#;." monoid)]]]] ["." // (#+ Distribution) ["_" term] [// @@ -103,7 +103,7 @@ (def: #export (extension distribution) (-> Distribution Text) - ($.paragraph ($_ list/compose + ($.paragraph ($_ list;compose (if (get@ #//.can-re-license? distribution) (list allow-re-licensing) (list)) diff --git a/stdlib/source/program/licentia/license/extension.lux b/stdlib/source/program/licentia/license/extension.lux index 7a12f45b9..83da58873 100644 --- a/stdlib/source/program/licentia/license/extension.lux +++ b/stdlib/source/program/licentia/license/extension.lux @@ -4,7 +4,7 @@ ["." text format] [collection - ["." list ("#/." monoid)]]]] + ["." list ("#;." monoid)]]]] ["." // (#+ Extension) ["_" term] ["." grant] diff --git a/stdlib/source/program/licentia/license/notice.lux b/stdlib/source/program/licentia/license/notice.lux index b1cf5658e..7e775078c 100644 --- a/stdlib/source/program/licentia/license/notice.lux +++ b/stdlib/source/program/licentia/license/notice.lux @@ -4,7 +4,7 @@ ["." text format] [collection - ["." list ("#/." functor)]]]] + ["." list ("#;." functor)]]]] ["." // #_ ["#." time] ["#." copyright] @@ -26,5 +26,5 @@ (def: #export copyright (-> (List //copyright.Holder) Text) - (|>> (list/map ..copyright-holder) + (|>> (list;map ..copyright-holder) (text.join-with text.new-line))) diff --git a/stdlib/source/program/licentia/output.lux b/stdlib/source/program/licentia/output.lux index 475c4b908..29d61dd42 100644 --- a/stdlib/source/program/licentia/output.lux +++ b/stdlib/source/program/licentia/output.lux @@ -1,11 +1,11 @@ (.module: [lux (#- Definition) [data - ["." maybe ("#/." functor)] + ["." maybe ("#;." functor)] ["." text format] [collection - ["." list ("#/." functor monoid)]]]] + ["." list ("#;." functor monoid)]]]] [// ["." license (#+ Identification Termination @@ -175,7 +175,7 @@ "")] [(get@ #license.same-license? value) "License Retention" - ($.paragraph (list/compose extension.sharing-requirement + ($.paragraph (list;compose extension.sharing-requirement extension.license-conflict-resolution))] [(get@ #license.must-be-distinguishable? value) (format _.extension " Distinctness") @@ -251,7 +251,7 @@ (-> License Text) (let [identification (|> value (get@ #license.identification) - (maybe/map ..identification) + (maybe;map ..identification) (maybe.default "")) identified? (case (get@ #license.identification value) (#.Some _) @@ -269,12 +269,12 @@ black-lists ($.block ($.section {#$.title (format "Denial of " _.license) #$.content (|> black-lists - (list/map black-list.black-list) + (list;map black-list.black-list) (text.join-with ..black-list-spacing))}))) ($.section {#$.title "Definitions" #$.content (|> definition.all - (list/map (|>> ..definition $.block)) + (list;map (|>> ..definition $.block)) (text.join-with ""))}) ($.block ($.section {#$.title (format "Acceptance of " _.license) @@ -294,7 +294,7 @@ (|> value (get@ #license.attribution) - (maybe/map (|>> ..attribution + (maybe;map (|>> ..attribution ["Attribution Information"] $.section $.block)) |