Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Angelov, Georgi
cryptic-solver-haskell
Commits
2167912e
Commit
2167912e
authored
Oct 13, 2021
by
gga19
Browse files
Solve endpoint now takes /solve/<clue string>/<word length>
parent
7f7d86c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Server.hs
View file @
2167912e
...
...
@@ -14,5 +14,5 @@ myConf = Conf
clue
=
(
"Peeling paint, profit slack, upset, in a state"
,
10
)
main
=
simpleHTTP
myConf
$
msum
[
dir
"solve"
$
path
$
\
s
->
ok
$
show
(
solveReturn
(
s
,
10
))
main
=
simpleHTTP
myConf
$
msum
[
dir
"solve"
$
path
$
\
s
->
path
$
\
n
->
ok
$
show
(
solveReturn
(
s
,
n
))
]
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