Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
PLMZ
iTypes
Commits
f802b67b
Commit
f802b67b
authored
Sep 28, 2019
by
André Pacak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix minor
parent
aacb618a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
haskell/src/FORecursiveTypes/Base.hs
haskell/src/FORecursiveTypes/Base.hs
+1
-1
haskell/src/FORecursiveTypes/ContinueAfterFail.hs
haskell/src/FORecursiveTypes/ContinueAfterFail.hs
+1
-1
haskell/src/FORecursiveTypes/EliminateTypeArgumentOfCheck.hs
haskell/src/FORecursiveTypes/EliminateTypeArgumentOfCheck.hs
+1
-1
haskell/src/FORecursiveTypes/ErrorList.hs
haskell/src/FORecursiveTypes/ErrorList.hs
+1
-1
No files found.
haskell/src/FORecursiveTypes/Base.hs
View file @
f802b67b
...
...
@@ -58,7 +58,7 @@ lookupTypeVar :: TypeMap -> Name -> Infer Type
lookupTypeVar
Empty
x
=
fail
$
"Unbound type variable "
++
show
x
lookupTypeVar
(
Bind
c
x
t
)
y
|
x
==
y
=
return
t
|
otherwise
=
lookup
c
y
|
otherwise
=
lookup
TypeVar
c
y
matchTypeVar
::
TypeMap
->
Type
->
Infer
Type
matchTypeVar
tymap
(
TypeVar
x
)
=
lookupTypeVar
tymap
x
...
...
haskell/src/FORecursiveTypes/ContinueAfterFail.hs
View file @
f802b67b
...
...
@@ -103,7 +103,7 @@ lookupTypeVar :: TypeMap -> Name -> Infer Type
lookupTypeVar
Empty
x
=
fail
[
"Unbound type variable "
++
show
x
]
lookupTypeVar
(
Bind
c
x
t
)
y
|
x
==
y
=
return
t
|
otherwise
=
lookup
c
y
|
otherwise
=
lookup
TypeVar
c
y
matchTypeVar
::
TypeMap
->
Type
->
Infer
Type
matchTypeVar
tymap
(
TypeVar
x
)
=
lookupTypeVar
tymap
x
...
...
haskell/src/FORecursiveTypes/EliminateTypeArgumentOfCheck.hs
View file @
f802b67b
...
...
@@ -103,7 +103,7 @@ lookupTypeVar :: TypeMap -> Name -> Infer Type
lookupTypeVar
Empty
x
=
fail
[
"Unbound type variable "
++
show
x
]
lookupTypeVar
(
Bind
c
x
t
)
y
|
x
==
y
=
return
t
|
otherwise
=
lookup
c
y
|
otherwise
=
lookup
TypeVar
c
y
matchTypeVar
::
TypeMap
->
Type
->
Infer
Type
matchTypeVar
tymap
(
TypeVar
x
)
=
lookupTypeVar
tymap
x
...
...
haskell/src/FORecursiveTypes/ErrorList.hs
View file @
f802b67b
...
...
@@ -58,7 +58,7 @@ lookupTypeVar :: TypeMap -> Name -> Infer Type
lookupTypeVar
Empty
x
=
fail
$
"Unbound type variable "
++
show
x
lookupTypeVar
(
Bind
c
x
t
)
y
|
x
==
y
=
return
t
|
otherwise
=
lookup
c
y
|
otherwise
=
lookup
TypeVar
c
y
matchTypeVar
::
TypeMap
->
Type
->
Infer
Type
matchTypeVar
tymap
(
TypeVar
x
)
=
lookupTypeVar
tymap
x
...
...
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