Documentation for (&&) and (&&) states that they are lazy in their second argument...
[ghc.git] / testsuite / tests / th / TH_exn2.hs
1 {-# LANGUAGE TemplateHaskell #-}
2
3 -- Test error message when the code in a splice
4 -- fails in a lazy fashion (e.g. a (head [])
5 -- thunk is embedded in the returned structure).
6
7 module TH where
8
9 $( do { ds <- [d| |]
10 ; return (tail ds) }
11 )