summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T9938.hs
blob: f9bb13179ee4e5b1230b4cb980e0fe2a303feb01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Main where

import Control.Monad
import Control.Monad.Trans.State

solve :: Int -> StateT () [] ()
solve carry | carry > 0 =
  do guard (0 == carry)
     solve (carry -1)
solve 0 = mzero

main :: IO ()
main = return ()