shithub: MicroHs

ref: 11de082b61546dbd5b02bb2a5d3a389a9a716ec5
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]