Skip to content

Commit

Permalink
Some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmillwood committed Dec 12, 2011
1 parent c792d97 commit 6092052
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Control/Applicative/QQ/ADo.hs
Expand Up @@ -160,6 +160,8 @@ failingPattern pat = case pat of
anyFailing = fmap or . mapM failingPattern
mkQ d f x = maybe d f (cast x)

-- | Take the name of a value constructor and try to find out if it is
-- the only constructor of its type
singleCon :: Name -> Q Bool
singleCon n = do
info <- reify n
Expand Down

0 comments on commit 6092052

Please sign in to comment.