@@ -336,6 +336,9 @@ toPats reflect tc f = reverse (toPat reflect tc (getArgs f)) where
336toPat :: Bool -> Bool -> [Term] -> [Pat]
336toPat :: Bool -> Bool -> [Term] -> [Pat]
337toPat reflect tc tms = evalState (mapM (\x -> toPat' x []) tms) []
337toPat reflect tc tms = evalState (mapM (\x -> toPat' x []) tms) []
339+ toPat' (P (DCon t a) nm@(UN n) _) [_,_,arg]
340+ | n == txt "Delay" = do arg' <- toPat' arg []
341+ return $ PCon nm t [PAny, PAny, arg']
339 toPat' (P (DCon t a) n _) args = do args' <- mapM (\x -> toPat' x []) args
342 toPat' (P (DCon t a) n _) args = do args' <- mapM (\x -> toPat' x []) args
340 return $ PCon n t args'
343 return $ PCon n t args'