shithub: MicroHs

ref: 5c79f3d3f6e4967c1a60a9a079ab3335c3a948ec
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]