repositories
/
cloogle-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38119fc
)
Add ABCInstructionResult and ProblemResult formats
author
Camil Staps
<info@camilstaps.nl>
Thu, 26 Apr 2018 12:21:17 +0000
(14:21 +0200)
committer
Camil Staps
<info@camilstaps.nl>
Thu, 26 Apr 2018 12:21:17 +0000
(14:21 +0200)
cloogleirc.icl
patch
|
blob
|
history
diff --git
a/cloogleirc.icl
b/cloogleirc.icl
index
534a57a
..
717cfd8
100644
(file)
--- a/
cloogleirc.icl
+++ b/
cloogleirc.icl
@@
-90,6
+90,11
@@
cloogle data w
processResult (SyntaxResult (br, re))
= "Clean syntax: " +++ re.syntax_title +++ "\n"
+++ concat (intersperse "; " re.syntax_code)
processResult (SyntaxResult (br, re))
= "Clean syntax: " +++ re.syntax_title +++ "\n"
+++ concat (intersperse "; " re.syntax_code)
+ processResult (ABCInstructionResult (br, re))
+ = "ABC instruction: " +++ re.abc_instruction
+ processResult (ProblemResult pr)
+ = "Common problem: " +++ pr.problem_title
+ +++ "; see https://github.com/clean-cloogle/common-problems/blob/master/" +++ pr.problem_key +++ ".md"
limitResults :: String -> String
limitResults s
limitResults :: String -> String
limitResults s