shithub: MicroHs

ref: b9f2c8f2ae01ab8a0a168fd7136e94c2eb8a7b48
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]