shithub: MicroHs

ref: 0424d9cae9e87a6c3d3ecd6d5d8e36fbac1892af
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]