shithub: MicroHs

ref: 1992c9c6d3b16b6abc4d8a2ec2f32dade98b8c70
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]