shithub: MicroHs

ref: 78b1feedbdfa6aa114bdcd7436aa9eb6a5be5d1d
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]