public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Literate Haskell code and testing functions
@ 2014-06-28  4:12 Shakthi Kannan
       [not found] ` <CABG-yt2krOAyLT6c8wRmYk4ce8F9NTWRgjZcObyx7szW3MxBQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Shakthi Kannan @ 2014-06-28  4:12 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi,

Consider the literate Haskell (line numbers mentioned only for
reference) in markdown text:

=== TEXT ===

1. A list 'a' is defined as a set with five integers, 1 to 5.
2.
3. > a :: [Int]
4. > a = [1, 2, 3, 4, 5]
5.
6. > -- The contents of a are:
7. > *Test> putStrLn "Contents of a:"
8. > *Test> a
9.
=== END ===

I want to be able to load the above text in GHCi, and be able to
execute the commands mentioned in "*Test>".

But, when generating the pandoc output document, I want only lines
1..5, without the testing code in "*Test>".  Is this possible?

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-28  5:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-28  4:12 Literate Haskell code and testing functions Shakthi Kannan
     [not found] ` <CABG-yt2krOAyLT6c8wRmYk4ce8F9NTWRgjZcObyx7szW3MxBQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-28  4:29   ` Ivan Lazar Miljenovic
     [not found]     ` <CA+u6gbz2U0vXp28ikA0RVmCo-GBRZMs=_MJBqRkADMcdMo-ghA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-28  5:02       ` Shakthi Kannan
     [not found]         ` <CABG-yt24=fZUpwgXRgjGud3pcHHCBrd-3ouUUzpNDa8oerY0gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-06-28  5:19           ` Ivan Lazar Miljenovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).