projekty
/
fp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afc027e
)
remove unnecessary
author
Tomáš Musil
<tomik.musil@gmail.com>
Mon, 31 Aug 2015 16:58:38 +0000
(18:58 +0200)
committer
Tomáš Musil
<tomik.musil@gmail.com>
Mon, 31 Aug 2015 16:58:38 +0000
(18:58 +0200)
src/HM.hs
patch
|
blob
|
history
diff --git
a/src/HM.hs
b/src/HM.hs
index
9c4aa76
..
8f6df2f
100644
(file)
--- a/
src/HM.hs
+++ b/
src/HM.hs
@@
-16,7
+16,6
@@
module HM
, TypedTerm(..)
-- * Type inference
, algW
- , runTI
) where
import Control.Monad.Except
@@
-123,7
+122,7
@@
ti e (NTTerm (Let x a b)) = do
return (s1 `composeSub` s2, t2)
-algW :: TypedTerm ->
TI
Type
-algW t = do
+algW :: TypedTerm ->
Either String
Type
+algW t =
fst . runTI $
do
(s, u) <- ti Map.empty t
return $ substituteT s u