1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Correct the kind of allocType.

This commit is contained in:
Rob Rix 2018-05-23 15:44:31 -04:00
parent aa1141ad58
commit b8eae43542

View File

@ -65,7 +65,7 @@ lambda' body = do
lookup' :: (Effectful (m location), Functor (m location effects), Member (Reader (Map Name location)) effects) => Name -> m location effects (Maybe location)
lookup' name = Map.lookup name <$> ask
allocType :: Applicative (m Name effects) => Name -> m Name effects Name
allocType :: (Applicative (m Name effects), Effectful (m Name)) => Name -> m Name effects Name
allocType = pure
assignType :: (Effectful (m location), Member (State (Map location (Set Type))) effects, Monad (m location effects), Ord location, Show location) => location -> Type -> m location effects ()