universe-th-0.0.0.2: Construct a Dec's ancestor list.

Safe HaskellNone

Language.Haskell.TH.Universe

Contents

Synopsis

Documentation

get_universe :: Name -> Q UniverseSource

Collect all the ancestor Dec's for whatever is passed in by name. For instance if we have

 data Otherthing = Otherthing Float
 data Thing = Thing OtherThing Int

then

 get_universe ''Thing

would return the Dec's for Thing, OtherThing, Int and Float

Utils ... Not sure how to hide these.

filter_dups' :: Eq a => [a] -> [(a, b)] -> [a]Source

eval_state :: Monad m => ErrorStateT e [a1] m a -> m (Either e a)Source