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
Marc Coiffier
BHR
Commits
e5ed599f
Commit
e5ed599f
authored
Apr 30, 2019
by
Marc Coiffier
Browse files
Successful build (on Tue Apr 30 01:06:11 CEST 2019)
parent
9a7a2a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
capricon/src/Data/CaPriCon.hs
View file @
e5ed599f
...
...
@@ -172,8 +172,8 @@ instance (Show a,IsCapriconString str,MonadReader (Env str (Term str a)) m,Monad
substHyp
h
vh
=
do
ContextTerm
dm
vh'
<-
pullTerm
(
Just
h
)
vh
first
(
\
f
cv
@
(
ContextTerm
d
v
)
->
if
d
-
1
<=
dm
then
cv
else
ContextTerm
(
d
-
1
)
(
inc_depth
(
(
d
-
1
)
-
dm
)
$
f
$
inc_depth
(
1
+
dm
-
d
)
v
))
<$>
if
d
+
1
<=
dm
then
cv
else
ContextTerm
(
d
-
1
)
(
inc_depth
(
d
-
dm
)
$
f
$
inc_depth
(
dm
-
(
d
+
1
)
)
v
))
<$>
substHyp
h
vh'
insertHypBefore
h
h'
cth'
=
do
ContextTerm
dh
th'
<-
pullTerm
h
cth'
...
...
Write
Preview
Supports
Markdown
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