winterland1989 / magic-haskell

魔力haskell官方网站
293 stars 28 forks source link

16.2 - P163 do语法糖第二段示例 #44

Open liuhk388 opened 7 years ago

liuhk388 commented 7 years ago
Just 3>>= /n ->
    Just 'x' >>= /x ->
        replicate n x

最后一行应该少了个return?

Just 3>>= /n ->
    Just 'x' >>= /x ->
        return $ replicate n x
winterland1989 commented 7 years ago

额 是的 多谢!