summaryrefslogtreecommitdiff
path: root/testsuite/tests/pmcheck/should_compile/T11245.hs
blob: 1f5c0fcaa03f339ee170dcbe7c861143b8dcbf97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module T11245 where


foo x = do
  let a | Just i <- x
        , odd i
        = True

        | Nothing <- x
        = False

  print x
  print a