shithub: MicroHs

ref: 9ebefcdc1b90b9e0e773b9b8f1afd01ac55c2a64
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]