shithub: MicroHs

ref: 3c4c38a565695f5d0ae07b45eff1e1cf9fe4c324
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]