forked from tweag/linear-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalize typing of Array.alloc and HashMap.empty
Replacing response type `Ur b` by simply `b` also checks and enables uses like ```haskell let (i, _) = HashMap.empty 100 (\ env -> runState (eval e) env) ``` (see issue tweag#404). Caveat: I am relying on the linea type checker (which might be in alpha state, dunno), so there might be reasons unknown to me why this generalization is invalid. Test suite passes, though.
- Loading branch information
1 parent
4668017
commit 44865c1
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters