packages feed

modulespection 0.1.0.2 → 0.1.0.3

raw patch · 1 files changed

+4/−4 lines, 1 files

Files

modulespection.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                modulespection-version:             0.1.0.2+version:             0.1.0.3 synopsis:            Template Haskell for introspecting a module's declarations description:   Collect all of the declarations in a module using Template Haskell (via the GHC API). @@ -10,7 +10,7 @@  One can either get all the names, or just the declarations (only type declarations  are supported right now).  .- Here is a quick example+ Here is a quick example:  .   > import Language.Haskell.TH.Module.Magic (names)  > @@ -24,7 +24,7 @@  > -- toplevel declaration names of the current file.  > names >>= runIO . print >> return []  .- Which will spew the following when compiling.+ Which will spew the following when compiling:  .  > [Test,OtherTest,someFunction]  . @@ -40,7 +40,7 @@  >  > concatMapM (deriveJSON defaultOptions) =<< declarations  .- Which will makes the JSON instances for Test and OtherTest and any other types+ Which will make JSON instances for Test, OtherTest and any other types  added to the file.  .  You can also do the same thing for an existing module.