do blocks seem to work now

This commit is contained in:
2024-10-29 21:21:53 -07:00
parent b844d0b676
commit 30648c8e9c
4 changed files with 26 additions and 19 deletions

View File

@@ -44,11 +44,10 @@ test : Maybe Int
test = pure 10
foo : Int -> Maybe Int
foo x = Just 42 >> Just x >>= (\ x => pure {_} {Maybe} 10)
foo x = Just 42 >> Just x >>= (\ x => pure 10)
bar : Int -> Maybe Int
bar x = do
let y = x
z <- Just x
-- NOW each of these implicits is a different error, fix them
pure {_} {Maybe} z
pure z