shithub: MicroHs

ref: 09564dfae43b6113f68b35f57b72a9c1c74a401f
dir: /tests/BindPat.hs/

View raw version
module BindPat(main) where
import Prelude

foo :: [Int] -> [Int]
foo xs = do
  1 <- xs
  pure 2

main :: IO ()
main = do
  print $ foo [1,1]
  print $ foo [2]