Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-platform
Commits
a74e11fe
Verified
Commit
a74e11fe
authored
Jun 22, 2020
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pretty-printing of non-infix maybe types in Clean.Types.Util
parent
750f8ab3
Pipeline
#43829
passed with stage
in 2 minutes and 17 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/libraries/OS-Independent/Clean/Types/Util.icl
src/libraries/OS-Independent/Clean/Types/Util.icl
+3
-3
No files found.
src/libraries/OS-Independent/Clean/Types/Util.icl
View file @
a74e11fe
...
...
@@ -147,9 +147,9 @@ typeConstructorName isInfix isArg t as
|
t
==
"_Array"
=
if
isInfix
(
"{"
--
as
--
"}"
)
(
"{}"
--
as`
)
|
t
==
"_!Array"
=
if
isInfix
(
"{!"
--
as
--
"}"
)
(
"{!}"
--
as`
)
// Maybes
|
t
==
"_Maybe"
=
if
(
isEmpty
as
)
[
"(?^)"
]
(
"(?^ "
--
as
--
")"
)
|
t
==
"_#Maybe"
=
if
(
isEmpty
as
)
[
"(?#)"
]
(
"(?# "
--
as
--
")"
)
|
t
==
"_!Maybe"
=
if
(
isEmpty
as
)
[
"(?)"
]
(
"(? "
--
as
--
")"
)
|
t
==
"_Maybe"
=
if
(
isEmpty
as
)
[
"(?^)"
]
(
if
isInfix
(
"(?^ "
--
as
--
")"
)
(
"(?^) "
--
as
)
)
|
t
==
"_#Maybe"
=
if
(
isEmpty
as
)
[
"(?#)"
]
(
if
isInfix
(
"(?# "
--
as
--
")"
)
(
"(?#) "
--
as
)
)
|
t
==
"_!Maybe"
=
if
(
isEmpty
as
)
[
"(?)"
]
(
if
isInfix
(
"(? "
--
as
--
")"
)
(
"(?) "
--
as
)
)
// Tuples
|
t
%
(
0
,
5
)
==
"_Tuple"
#
n
=
toInt
(
t
%
(
6
,
size
t
-
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment