embeddock 0.3 → 0.3.0.1
raw patch · 2 files changed
+2/−31 lines, 2 files
Files
- embeddock.cabal +2/−2
- src/Embeddock/Example.hs +0/−29
embeddock.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: embeddock-version: 0.3+version: 0.3.0.1 synopsis: Embed the values in scope in the haddock documentation of the module description: embeddock is a Haskell source-code preprocessor. It allows you to embed computer-generated @@ -24,7 +24,7 @@ library hs-source-dirs: src/ exposed-modules: Embeddock- other-modules: Embeddock.Example+-- other-modules: Embeddock.Example -- examples should just go into another package. build-depends: base >=4.5 && <5 executable embeddock
− src/Embeddock/Example.hs
@@ -1,29 +0,0 @@-{-# OPTIONS_GHC -F -pgmF embeddock -optF $EMBED$ #-}--{- | To use embeddock, place the following preprocessor pragma at the- beginning of your source code.-- > {-# OPTIONS_GHC -F -pgmF embeddock -optF $EMBED$ #-}-- You can specify the embed string by @-optF@. The default embed- string is "$" . Expressions in parenthesis that immediately follow- the embed strings are treated as embed expression. Embed- expressions are evaluated in the context of the module. The result- should be of type string.-- Please look at the source code of this module for an usecase of- @embeddock@.-- At the moment, embeddock is not compatible with one-liner comment "--"- due to the backend lexer.--}--module Embeddock.Example where---{- | An answer to the life, the universe and everything.- the answer is $EMBED$(show answer) .--}--answer :: Integer-answer = 6*7